Virtual LAN configuration

You can create a VLAN on Linux by executing the following commands:
vconfig add
ifconfig . netmask
ifconfig . up

For example:
vconfig add eth0 6
ifconfig eth0.5 192.168.1.6 netmask 255.255.255.0
ifconfig eth0.6 up

You can view the traffic of that VLAN by executing the following command:

cat /proc/net/vlan/eth0.6

like you can configure 2048 VLANs for one physical interface.

Published in:  on January 2, 2009 at 7:53 am Leave a Comment

The URI to TrackBack this entry is: http://mylinuxz.wordpress.com/2009/01/02/virtual-lan-configuration/trackback/

RSS feed for comments on this post.

Leave a Comment