
image.png
4500交換機配置VSS的一些注意事項:
1) 兩臺設(shè)備的板卡型號必須一致('WS-X44xy' 'WS-X42xy'開頭的板卡不支持 )
2)軟件要求:Cisco IOS XE 3.4.0SG 和 ROMMON IOS Version 15.0(1r) SG7以上
3)License要求:
備注:由于文檔比較老,現(xiàn)在4506的型號已經(jīng)是SUP8E,SUP8E也是支持的

image1.png
在配置VSS前,請驗證硬件、軟件和License信息
sh ver | in IOS
sh ver | in ROM
sh license image levels
配置步驟
第一步:分配虛擬交換機域和交換機編號
SW1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
SW1(config)#switch virtual domain 10
Domain ID 10 config will take effect only after the exec command 'switch convert mode virtual' is issued
SW1(config-vs-domain)#switch 1
SW1(config-vs-domain)#exit
SW1(config)#
SW2#conf t
Enter configuration commands, one per line. End with CNTL/Z.
SW2(config)#switch virtual domain 10
Domain ID 10 config will take effect only after the exec command 'switch convert mode virtual' is issued
SW2(config-vs-domain)#switch 2
SW2(config-vs-domain)#exit
SW2(config)#
第二步:配置VSL Port Channel
注意:兩臺設(shè)備的port-channel編號必須不能相同
SW1(config)#int port-channel 5
SW1(config-if)#switchport
SW1(config-if)#switch virtual link 1
SW1(config-if)#no shut
SW1(config-if)#exit
SW2(config)#int port-channel 10
SW2(config-if)#switchport
SW2(config-if)#switch virtual link 2
SW2(config-if)#no shut
SW2(config-if)#exit
第三步:配置VSL端口
SW1(config)#int range ten1/1 - 2
SW1(config-if-range)#switchport mode trunk
SW1(config-if-range)#channel-group 5 mode on
WARNING: Interface tenGigabitEthernet1/1 placed in restricted config mode. All extraneous configs removed! WARNING: Interface tenGigabitEthernet1/2 placed in restricted config mode. All extraneous configs removed!
SW1(config-if-range)#exit
SW2(config)#int range ten1/1 - 2
SW2(config-if-range)#switchport mode trunk
SW2(config-if-range)#channel-group 10 mode on
WARNING: Interface tenGigabitEthernet1/1 placed in restricted config mode. All extraneous configs removed! WARNING: Interface tenGigabitEthernet1/2 placed in restricted config mode. All extraneous configs removed!
SW2(config-if-range)#exit
第四步:將當(dāng)前的交換機模式切換為虛擬交換機(VSS)模式
SW1#switch convert mode virtual
This command will convert all interface names to naming convention "interface-type switch-number/slot/port", save the running config to startup-config and reload the switch. Do you want to proceed? [yes/no]: yes Converting interface names
SW2#switch convert mode virtual?
This command will convert all interface names to naming convention "interface-type switch-number/slot/port", save the running config to startup-config and reload the switch. Do you want to proceed? [yes/no]: yes Converting interface names
驗證
SW1#sh switch virtual
SW1#sh switch virtual role
SW1#sh switch virtual link
SW1#sh switch virtual link port-channel