2900XL VLAN config

--------------------------------------------------------------------------------
Switch# vlan database
Switch(vlan)# vtp domain domain-name
Switch(vlan)# vtp domain domain-name password password-value
Switch(vlan)# vtp server
Switch(vlan)# show vtp status
若想Disable VTP,只须将VTP模式改为transparent
Switch(vlan)# vtp transparent

2.
激活VTP V2(交换机默认的是VTP V1)。

Switch# vlan database
Switch(vlan)# vtp v2-mode
Switch# show vtp status

3.
增加VLANCatalyst 2900XL系列交换机最大支持64个激活的VLAN

VLAN ID
号从11005

Switch# vlan database
Switch(vlan)# vlan vlan-id name vlan-name
Switch# show vlan name vlan-name
Switch(vlan)# no vlan vlan-id //
删除VLAN

4.
将端口加入VLAN

Switch# configure terminal
Switch(config)# interface interface
Switch(config-if)# switchport mode access
Switch(config-if)# switchport access vlan vlan-id
Switch(config-if)# show interface interface-id switchport

5.
配置trunk 端口。

Switch# configure terminal
Switch(config)# interface interface
Switch(config-if)# switchport mode trunk
Switch(config-if)# switchport trunk encapsulation isl
Switch(config-if)# end
Switch# show interface interface switchport
Switch# copy running-config startup-config

6.
配置trunk 上允许的VLAN

Switch(config)# interface interface
Switch(config-if)# switchport mode trunk
Switch(config-if)# switchport trunk allowed vlan remove vlan-id-range
Switch(config-if)# switchport trunk allowed vlan add vlan-id-range
Switch(config-if)# end
Switch# show interface interface switchport allowed-vlan

若想取消trunk端口,只需
Switch(config-if)# no switchport mode