星期四, 11月 07, 2013

SMC8126L2 vlan tag設定筆記


port23帶tag id 66

Vty-0#configure
Vty-0(config)#interface ethernet 1/23

Vty-0(config-if)#switchport allowed vlan add 66 tag
 

儲存設定
Vty-0(config-if)#exit
Vty-0(config)#exit
Vty-0#copy running-config startup-config
Startup configuration file name [startup1.cfg]:按enter
Write to FLASH Programming.
Write to FLASH finish.
Success.




重開機
Vty-0#reload
System will be restarted. Continue ?


port 23設為trunk mode 並帶多個tag id

interface ethernet 1/23
 switchport allowed vlan add 1 untagged
 switchport native vlan 1
 switchport mode trunk
 switchport allowed vlan add 1-2,6,11,22,33,44,55,66,77,88,99,101,4093 tagged

##################################################################


port2要下接另外一台網管交換器,

port2要加vlan tag,則必須設為trunk

設定如下:

先進入交換器的console

 

Vty-0#configure

Vty-0(config)#interface ethernet 1/2

Vty-0(config-if)#switchport mode trunk

Vty-0(config-if)#switchport allowed vlan add 11,22,33,44,55,66,99,101 tagged

Vty-0(config-if)#exit

Vty-0(config)#exit


儲存設定檔的指令

Vty-0#copy run startup-config

好了按enter


 
Startup configuration file name [startup1.cfg]:

Write to FLASH Programming.

Write to FLASH finish.

Success.

沒有留言: