Questions tagged [vlan]

Virtual LAN(vlan) is a technique to create isolated broadcast and multicast domains at layer2 level.

A VLAN is an administrative domain, allowing sysadmins to logically separate LANs, changing them as needed without moving cables through ports of network equipment.

It started on network switches, where vlans were assigned to ports (access mode), isolating traffic between the equipment connected to a network asset. It's a common implementation isolate layer2 with VLANs and layer3 (ip and routing) with different subnetworks, although a VLAN can have multiple subnets inside of it.

802.1Q is the standard developed by IEEE that defines the way the VLAN tag is inserted on an Ethernet frame. This allows one physical interface to pass multiple VLAN packets. It's a 32 bit field between the Source Mac Address and the EtherType fields containing information about the tag itself, priority, etc. Different network vendors use their own concepts of pvid, trunk, native, general and other words.

802.1AD is the standard called double-tagging, where a VLAN id is inserted on a frame that already has a VLAN. It is useful for internet providers to separate the traffic by client so that they can have the same VLAN ids on a specific networks.

Wikipedia - Tagging and Double-tagging

Other techniques are port-based VLANs and protocol-based VLANs. Dynamic VLAN assignment on switch ports can be achieved in conjunction with 802.1x layer2 based authentication.

135 questions
14
votes
3 answers

scp between two servers not in the same network

There are two server that I can access with 2 different VPN connections. I have managed to have both VPN working on the same time on my machine (a bit of routing rules). I want to do a scp :some/file :destination/folder from my…
Danduk82
  • 482
  • 1
  • 5
  • 13
12
votes
1 answer

Bridged interfaces and VLAN tags

I'm trying to set up a system that joins an untagged Ethernet network to a TAP tunnel, adding a VLAN tag as the traffic moves to the tunnel. So far I have: eth0 - the physical Ethernet interface carrying untagged traffic. tap1 - the TAP tunnel…
Tom
  • 464
  • 2
  • 5
  • 14
11
votes
13 answers

Centos 7: failed to bring up/down networking: configure interface for a trunk interface

The switch configured on the server (Centos 7) is configured as trunk for VLAN#115,2014. I have loaded # lsmod | grep 8021q # modprobe 8021q I would like to configure an IP address on the server using the VLAN#115 Performing the following…
nskalis
  • 685
  • 2
  • 7
  • 12
8
votes
5 answers

In which vlan am I in?

My question: are there any methods to detect that in which vlan I am? Can tcpdump show this? Or can I force a GENERAL switch to say to me?
evachristine
  • 2,603
  • 10
  • 39
  • 55
8
votes
1 answer

Creating VLANs between network namespaces

I want to implement the topology shown in the figure below using network namespaces (ns1 to ns4).                        I can implement the above topology without splitting the network into two different VLANs using the following commands (based on…
Vasilis
  • 181
  • 1
  • 4
7
votes
6 answers

Untagged interface in Linux?

I know how to create a tagged interface in linux using vconfig like eth1.10 which makes it receive and send tagged packets. Is it possible to create an interface which receives and sends untagged packet for vlan 10?
user1762571
  • 553
  • 5
  • 7
  • 12
5
votes
2 answers

Backup and restore of Centos network interfaces

I have a server running Centos 7 which needs to be rebooted to upgrade some software. Some of the physical NICs have around 5-10 VLAN interfaces each. They're subject to change on a weekly/monthly basis so storing the details in…
popcornuk
  • 97
  • 1
  • 2
  • 11
5
votes
2 answers

Add vlan to interface with unique mac - different syntax for different Linux distros

I need to add a subinterface to an existing interface, which is on a VLAN. Furthermore, the subinterface must have it's own MAC address. Through the man pages I found this syntax which works fine on CentOS/RH: /usr/sbin/ip link add link eth0 name…
TSG
  • 1,580
  • 6
  • 26
  • 42
5
votes
4 answers

Private VLAN's under Linux?

http://blog.ine.com/2008/07/14/private-vlans-revisited/ Has anyone tried private vlan's under Linux? Any experiences with them? My real question is does anybody have howtos regarding this?
LanceBaynes
  • 39,295
  • 97
  • 250
  • 349
4
votes
1 answer

Bridge interfaces with Vlan on Linux based access point

I have a Linux based wireless access point. It has eth0 interface for ethernet, ath0 for wireless and br-wan as a bridge between the two. bridge name bridge id STP enabled interfaces br-wan 8000.001567000041 no …
DoctorBurp
  • 41
  • 1
  • 2
4
votes
1 answer

Linux VLAN-aware bridges and trunk ports

I have an ethernet port attached to a bridge: $ brctl show bridge name bridge id STP enabled interfaces eth0_bridge 8000.6a612bcc4723 yes eth0 The bridge is VLAN-aware (ie /sys/class/net/eth0_bridge/bridge/vlan_filtering is 1). I…
Tom
  • 464
  • 2
  • 5
  • 14
4
votes
1 answer

What are "self" and "master" options for in "bridge vlan add"?

I'm reading "man bridge" and it says something like: bridge vlan { add | del } dev DEV vid VID [ pvid ] [ untagged ] [ self ] [ master ] What are "self" and "master" options for? man says: self the vlan is configured on the specified physical…
2c9
  • 41
  • 4
4
votes
2 answers

nftables / iptables rules to rewrite source IP by interface

I have a physical network with a Linux server (Ubuntu 16.04, kernel 4.13) and several gadgets on it. Each gadget has the same unchangeable static IP, e.g. 192.168.0.222/24. I would like to communicate with all these gadgets via an arbitrary IP…
pericynthion
  • 418
  • 4
  • 13
4
votes
1 answer

Linux bond with VLAN question

Do you think following configuration make sense? Does BONDTING_OPT supported in VLAN interface? I want to make sure my interface fails over when the upstream device down. ifcfg-bond0 $ cat…
Satish
  • 1,632
  • 3
  • 34
  • 60
4
votes
1 answer

Setup VLAN on linux bridge for virtual machines with systemd

I want to switch to systemd and with this I have to setup the linux bridge for my virtual machines in KVM to use VLAN. Having Debian GNU/Linux 9.1 (stretch), using its systemd-networkd and libvirt. NOT using oldstyle networking with ifupdown…
Ingo
  • 596
  • 1
  • 9
  • 18
1
2 3
8 9