Suppose your switch is ready.
Install vlan package > add 802.1q module > config interface
1. apt-get install vlan
2. modprobe 8021q
3. vi /etc/network/interfaces
#add the following content, here I create 3 VLANs
auto vlan10 vlan20 vlan30
iface vlan10 inet static
address 192.168.10.1
netmask 255.255.255.0
mtu 1500
vlan_raw_device eth0
iface vlan20 inet static
address 192.168.20.1
netmask 255.255.255.0
mtu 1500
vlan_raw_device eth0
iface vlan30 inet static
address 192.168.30.1
netmask 255.255.255.0
mtu 1500
vlan_raw_device eth0
Labels
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言