cisco vss

cisco vss配置
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-1#switch read switch 1 校验switch ID

Switch-2(config)# switch virtual domain 100
Switch-2(config-vs-domain)# switch 2
Switch-2(config-vs-domain)# exit
Switch-2#switch read switch 2 校验switch ID

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、转换交换机状态为vss,调整交换机到虚拟交换机模式、重启
将PFC模式转换为PFC3C
Switch-1# platform hardware vsl pfc mode pfc3c
Switch-2# platform hardware vsl pfc mode pfc3c
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 priority 200 1-255,255位最高优先级
Switch# show switch virtual role

8、将设备状态改成单独模式
Switch-1# switch convert mode standalone
Switch-2# switch convert mode standalone

switch accept mode virtual 命令后, 在活动和备份交换机上的更新配置会自动保存到其startup 配置文件中.

三种双活检测方法
1.下联交换机的端口配置双活检测(pagp私有)
Switch(config)# interface port-channel 20
Switch(config-if)# shutdown
Switch(config-if)# exit
Switch(config)# switch virtual domain 100
Switch(config-vs-domain)# dual-active detection pagp
Switch(config-vs-domain)# dual-active detection pagp trust channel-group 20
Switch(config-vs-domain)# exit
Switch(config)# interface port-channel 20
Switch(config-if)# no shutdown
Switch(config-if)# exit

2.bfd检测方法
Router (config)# interface gigabitethernet 1/9/48
Router (config-if)# no switchport
Router (config-if)# ip address 200.230.230.231 255.255.255.0
Router (config-if)# bfd interval 100 min_rx 100 multiplier 3
Router (config-if)# no shutdown
Router (config-if)# interface gigabitethernet 2/1/48
Router (config-if)# no switchport
Router (config-if)# ip address 201.230.230.231 255.255.255.0
Router (config-if)# bfd interval 100 min_rx 100 multiplier 3
Router (config-if)# no shutdown
Router (config-if)# exit
Router (config)# switch virtual domain 100
Router (config-vs-domain)# dual-active detection bfd
Router (config-vs-domain)# dual-active pair interface g 1/9/48 interface g 2/1/48 bfd
adding a static route 200.230.230.0 255.255.255.0 Gi2/1/48 for this dual-active pair
adding a static route 201.230.230.0 255.255.255.0 Gi1/9/48 for this dual-active pair
Router(config-vs-domain)# exit
Router(config)# exit

3.Fast Hello 检测方法 (Cisco IOS版本12.2(33)SXI和更高版本支持)
Router(config)# switch virtual domain 255
Router(config-vs-domain)# dual-active detection fast-hello
Router(config-vs-domain)# exit
Router(config)# interface fastethernet 1/2/40
Router(config-if)# dual-active fast-hello
WARNING: Interface FastEthernet1/2/40 placed in restricted config mode. All extraneous
configs removed!
Router(config-if)# no shutdown
Router(config-if)# exit
Router(config)# exit

VSS在4500和6500系列交换机上才能支持,不需要额外的堆叠子和线缆;普通接口即可支持。

 

posted @ 2020-03-16 14:29  Me-lihu  阅读(0)  评论(0编辑  收藏  举报