Cisco VSS 配置模板
1、4500/4500X series switch (支持的引擎:Supervisor Engine 7-E, Supervisor Engine 7L-E, and Catalyst 4500-X). Cisco Release IOS XE 3.4.0SG 和之后的版本支持VSS;
6500: Cisco IOS Release 12.2(33)SXH1和之后的版本;
2、使用两台Cisco 6509(sup-2T引擎)进行测试,两台CISCO 6509形成VSS,分别使用两个引擎接口T5/4和T5/5作为VSL,使用G1/2作为双活检测线路;测试当VSL断开,使用fast-hello的机制,防止VSS双活的出现。测试拓扑如下:

3、具体配置:
6509-1配置:
(1)制定switch 1,配置优先级
switch virtual domain 1
switch 1
switch 1 priority 110
switch 2 priority 100
mac-address use-virtual
(2)配置VSL
interface port-channel 1
no shut
switch virtual link 1
exit
interface ten 5/4
no shut
channel-group 1 mode on
exit
interface ten 5/5
no shut
channel-group 1 mode on
exit
(3)特权模式下执行转换命令
switch convert mode virtual
输入“yes”
6509-2配置:
(1)制定switch 2,配置优先级
switch virtual domain 1
switch 2
switch 1 priority 110
switch 2 priority 100
mac-address use-virtual
(2)配置VSL
interface port-channel 2
no shut
switch virtual link 2
exit
interface range ten 5/4
no shut
channel-group 2 mode on
exit
interface range ten 5/5
no shut
channel-group 2 mode on
exit
(3)特权模式下执行转换命令
switch convert mode virtual
输入“yes”
完成上述配置后设备会自动重启,形成VSS。
4、两台CISCO 6509配置VSS之后设备6509-2的配置会消失需要重新配置VSL:
interface port-channel 2
no shut
switch virtual link 2
exit
interface ten 2/5/4
channel-group 2 mode on
exit
interface ten 2/5/5
channel-group 2 mode on
exit
5、配置双活检测:(使用另外的互联线路)
switch virtual domain 1
dual-active detection fast-hello
int g1/1/2
shut
dual-active fast-hello
int g2/1/2
shut
dual-active fast-hello
int g1/1/2
no shut
int g2/1/2
no shut
6、完成环境搭建配置:
(1)配置VSS-6509 vlan 1 IP地址:199.40.10.3/24,HSRP虚拟地址为199.40.10.13和199.40.10.10,具体配置如下:
interface Vlan1
ip address 199.40.10.3 255.255.255.0
standby 4 ip 199.40.10.13
standby 4 priority 40
standby 4 preempt
standby 10 ip 199.40.10.10
standby 10 timers 5 20
standby 10 priority 40
standby 10 preempt
(2)配置4510与VSS之间的channel:
CISCO 4510:
interface Port-channel 10
switchport
switchport mode trunk
interface TenGigabitEthernet5/1
switchport mode trunk
channel-group 10 mode on
interface TenGigabitEthernet6/1
switchport mode trunk
channel-group 10 mode on
CISCO VSS-6509:
interface Port-channel 10
switchport
switchport mode trunk
interface TenGigabitEthernet 1/8/1
switch
switchport mode trunk
channel-group 10 mode on
interface TenGigabitEthernet2/8/1
switch
switchport mode trunk
channel-group 10 mode on
(3)配置4510的ip地址及网关:
interface Vlan 1
ip address 199.40.10.100 255.255.255.0
ip default-gateway 199.40.10.10
(4)配置测试PC地址为199.40.10.123/24,网关为199.40.10.10;将连接PC的接口打开,并配置为access模式:
Interface g2/47
Switch
Switch mode access
Spanning-tree portfast
7、在测试PC上开长ping,断开两条VSL,进行测试:
在VSL断开时看到ping测试丢了一个包,原VSS Active设备切换为recovery模式,断开自己互联设备的接口;VSS 另一台设备转换为Active状态,如接图所示。恢复VSL,进入recovery状态的设备会自动进行设备的重启,重启完成后查看引擎为hot状态。
