What is private VLAN and public VLAN?
Private VLAN divides a VLAN (Primary) into sub-VLANs (Secondary) while keeping existing IP subnet and layer 3 configuration. A regular VLAN is a single broadcast domain, while private VLAN partitions one broadcast domain into multiple smaller broadcast subdomains.
What is private VLAN mapping?
Configures a virtual Ethernet interface. show interface switchport. Displays information on all interfaces configured as switch ports. show interface private-vlan mapping. Displays the information about the private VLAN mapping for VLAN interfaces or SVIs.
Do you need a NIC to use VLANs?
To be able to use VLANs you will need a switch that support the IEEE 802.1q standard on an Ethernet network. You will also need a NIC (Network Interface Card) that works with Linux and support 802.1q standard .
How to configure a VLAN in Linux?
When you want to configure a VLAN in Linux, assuming your kernel supports it (2.6+ do) you need to make sure 802.1q support is available. This is most easily done with modprobe. So the command: /sbin/modprobe 8021q. should do the trick. Then, for any given NIC interface you only have to do the following: /sbin/vconfig add eth
How to define VLANs 2-4 on Linux eth0?
For example, these commands define VLANs 2-4 on device eth0: The vconfig program can set a variety of other options, including device-naming conventions. Hereafter, these are assumed to be at their defaults. Once the virtual interfaces are defined, they can be used in the same way as other interfaces.
What does trunk mean in terms of VLANs?
A trunk is a single physical connection that can carry multiple VLANs. Each frame that crosses the trunk has a VLAN identifier attached to it, so it can be identified and kept within the correct VLAN. Trunks can be used between two switches, between a switch and a router or between a switch and a computer that supports trunking.