Linux VLAN (802.1q)

| | Comments (0)

要使用 Linux VLAN, 需載入 8021q module
modprobe 8021q

使用 vconfig 可以建立 vlan-devices
vconfig add eth1 100 # 建立 eth1 VLAN 100 vlan-device
vconfig add eth1 200 # 建立 eth1 VLAN 200 vlan-device
ifconfig eth1.100 192.168.100.1 netmask 255.255.255.0 # 設定 eth1 VLAN 100 vlan-device IP
ifconfig eth1.200 192.168.200.1 netmask 255.255.255.0 # 設定 eth1 VLAN 100 vlan-device IP
ifconfig eth1.200:0 192.168.200.2 netmask 255.255.255.0 # 設定 eth1 VLAN 100 vlan-device alias IP

需搭配網管型 Switch, Port 要帶 tag

Leave a comment

凱莉手工坊

凱莉手工坊

January 2010

Sun Mon Tue Wed Thu Fri Sat
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31            

About this Entry

This page contains a single entry by Pank published on September 30, 2009 11:15 AM.

VMware ESXi vs. VMware Server was the previous entry in this blog.

Let yppasswd update NIS password immediately is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.