Wednesday, April 25, 2007

[Linux] config vlan trunking ต่อเข้ากับ Cisco catalyst2950

มาเริ่มทำเลยดีกว่า (อ้างอิง Ubuntu linux 7.04)
$sudo apt-get install vlan
ทำการ load module 802.1q
$sudo modprobe 8021q
ทำการ add tag 2 กับ physical interface eth2
$sudo vconfig add eth2 2
ทำการ create logical insterface eth2.2
$sudo ifconfig eth2.2 192.168.2.2 netmask 255.255.255.0 up

-- Switch Cisco catalyst2950
interface f0/1
des ## connect to linux box eth2 ##
no shut
switchport mode trunk

interface f0/2
switchport mode access
switchport access vlan 2
no shut