Cisco VSS(Virtual Switch System)配置步骤:
1、备份原交换机设备,SW1和SW2相同
Switch-1# copy running-config startup-config
Switch-1# copy startup-config disk0:old-startup-config
2、指定虚拟交换机名称及交换机编号
Switch-1(config)# switch virtual domain 100
Switch-1(config-vs-domain)# switch 1
Switch-1(config-vs-domain)# exit
Switch-2(config)# switch virtual domain 100
Switch-2(config-vs-domain)# switch 2
Switch-2(config-vs-domain)# exit
3、配置VSL Port Channel和端口
Switch-1(config)# interface port-channel 10
Switch-1(config)# switchport
Switch-1(config-if)# switch virtual link 1
Switch-1(config-if)# no shutdown
Switch-1(config-if)# exit
Switch-1(config)# interface range tengigabitethernet 3/1-2
Switch-1(config-if)# channel-group 10 mode on
Switch-2(config)# interface port-channel 20
Switch-2(config)# switchport
Switch-2(config-if)# switch virtual link 2
Switch-2(config-if)# no shutdown
Switch-2(config-if)# exit
Switch-2(config)# interface range tengigabitethernet 5/2-3
Switch-2(config-if)# channel-group 20 mode on
4、调整交换机到虚拟交换机模式
Switch-1# switch convert mode virtual
Switch-2# switch convert mode virtual
5、查看VSS信息
Switch# show switch virtual
Switch# show switch virtual role
Switch# show switch virtual link
6、将VSS交换机转换为stand-alone交换机
Switch-1# switch convert mode stand-alone
7、设置交换机优先级
Switch(config)# switch virtual domain 100
Switch(config-vs-domain)# switch [1 | 2] priority [priority_num] 1-255,255位最高优先级
Switch# show switch virtual role
VSS在4500和6500系列交换机上才能支持,不需要额外的堆叠子和线缆;普通接口即可支持。