Friday, November 15, 2013

How to configure computer interface as a trunk (linux)

1- Install vlan package,
#apt-get install vlan

2- add vlan 20 and 30 to eth0
#vconfig add eth0 20
#vconfig add eth0 30

3- load the 8021q module
 # modprobe 8021q

4- bring up the new interface and assign IP address
#ifconfig eth0.20 up
#ifconfig eth0.20 2.2.2.2/30

#ifconfig eth0.30 up
#ifconfig eth0.30 2.2.3.2/30


 Now we have the trunk port and allow two vlan 20,30
 ---
to remove vlan using

#vconfig rem 20

No comments:

Post a Comment