6500和4500都支持VSS这个特性,与6500相同,在软硬件符合条件的前提下,通过系统配置,使得两台4500机箱成为一个逻辑上的统一整体。简单介绍下配置步骤:
一、在核心交换机4503-1上配置VSS
(1)查看核心交换机45-1当前的工作模式:
switch-1#show switch virtual
Switch Mode : Standalone
(2)配置VSS域名与VSS主机号:
switch-1(config)#switch virtual domain 100`
switch-1(config-vs-domain)#switch 1
switch-1(config-vs-domain)#switch 1 priority 150
switch-1(config-vs-domain)#exit
(3)配置VSL链路:
switch-1(config)#interface port-channel 63
switch-1(config-if)#switchport
switch-1(config-if)#switch virtual link 1
switch-1(config-if)#no shutdown
switch-1(config-if)#exit
switch-1(config)#exit
(4)将核心交换机4503-1上与4503-2相连的接口TenGigabit1/1/1到TenGigabit1/1/2配置为EtherChannel
switch-1(config)#interface range tenGigabitEthernet 1/1/1-2
switch-1(config-if-range)#switchport mode trunk
switch-1(config-if-range)#channel-group 63 mode on
switch-1(config-if-range)#no shutdown
switch-1(config-if-range)#exit
(5)将交换机的工作模式改为VSS模式(确定之后,交换机将自动重启):
switch-1#write
switch-1#switch convert mode virtual
Do you want to proceed? [yes/no]: y ``
二、在核心交换机4503-2上配置VSS
(1)查看核心交换机45-2当前的工作模式:
switch-2#show switch virtual
Switch Mode : Standalone
switch-2#
(2)配置VSS域名与VSS主机号:
switch-2(config)#switch virtual domain 100
switch-2(config-vs-domain)#switch 2
switch-2(config-vs-domain)#exit
(3)配置VSL链路:
switch-2(config)#interface port-channel 64
switch-1(config-if)#switchport
switch-2(config-if)#switch virtual link 2
switch-2(config-if)#no shutdown
switch-2(config-if)#exit
switch-2(config)#exit
(4)将核心交换机4503-2上与4503-1相连的接口TenGigabit1/1/1到TenGigabit1/1/2配置为EtherChannel
switch-2(config)#interface range tenGigabitEthernet 1/1/1-2
switch-1(config-if-range)#switchport mode trunk
switch-2(config-if-range)#channel-group 64 mode on
switch-2(config-if-range)#no shutdown
switch-2(config-if-range)#exit
(5)将交换机的工作模式改为VSS模式(确定之后,交换机将自动重启):
switch-2#write
switch-2#switch convert mode virtual
Do you want to proceed? [yes/no]: y
===============================================
最后检查:
switch virtual domain 100
switch mode virtual
switch 1 priority 150
mac-address use-virtual
===========================
查看状态:
show switch virtual #查看工作状态
show switch virtual role #查看交换机的vss角色
show switch virtual link #查看交换机的vsl链路
show etherchannel summary #查看etherchannel状态
show redundancy states #查看当前SSO状态
故障测试:
1、redundancy force-switchover #手工故障切换
2、关闭电源测试
3、VSL链路中断故障切换
==============可选==============
配置双主动检测 // 这个互联端口必须非VSL
Switch(config)# switch virtual domain 100
Switch(config-vs-domain)# dual-active detection fast-hello
Switch(config-vs-domain)# exit
Switch(config)# interface fastethernet 1/2/40
Switch(config-if)# dual-active fast-hello
WARNING: Interface FastEthernet1/2/40 placed in restricted config mode. All extraneousconfigs removed!
Switch(config-if)# no shutdown
Switch(config-if)# exit
Switch(config)# exi
检查:show run interface fastethernet 1/2/40