思科堆叠VSS(virtual switching system虚拟交换系统)、优先级的数值越大,表示优先级越高。
思科堆叠VSS(virtual switching system虚拟交换系统)
相关名词:
VSS - Virtual Switching System
VSL - Virtual Switch Link
配置并加入VSS
您必须设置 VSS 域和交换机编号。
Note:这些信息应与先前交换机所使用的信息相同。在本示例中,域为 100,交换机编号为1。
(同一组堆叠的交换机的domain域ID要配置一样)
第一台交换机:
4500X-VSS(config)#switch virtual domain 100
4500X-VSS(config-vs-domain)#switch 1
接下来,必须设置用于VSL链路的物理接口和端口通道。(两台设备的port-channel编号必须不能相同)
4500X-VSS(config)# interface Port-channel 10
4500X-VSS(config-if)#switchport
4500X-VSS(config-if)#switch virtual link 1
4500X-VSS(config)# int range tenGigabitEthernet 1/1/15-16
4500X-VSS(config-if-range) channel-group 10 mode on
最后,必须将该交换机模式从独立转换为虚拟。执行此配置后,将重新加载该交换机。
4500X-VSS# switch convert mode virtual
当交换机 1 完成重新加载后,它将从VSL链路中检测当前活动 VSS 交换机,并自动同步配置。
第二台交换机:
4500X-VSS(config)#switch virtual domain 100
4500X-VSS(config-vs-domain)#switch 2
接下来,必须设置用于VSL链路的物理接口和端口通道。
需要在每台交换机上使用PortChannel配置 VSL。PortChannel号需要不一样,否则VSS不能正常建立将进入 RPR 模式。
为避免这种情况,请为两个交换机上的两个PortChannel分配不同编号。
4500X-VSS(config)# interface Port-channel 20
4500X-VSS(config-if)#switchport
4500X-VSS(config-if)#switch virtual link 2
4500X-VSS(config)# int range tenGigabitEthernet 1/1/15-16
4500X-VSS(config-if-range) channel-group 10 mode on
最后,必须将该交换机模式从独立转换为虚拟。执行此配置后,将重新加载该交换机。
注意:一旦使用“channel-group”命令将接口放入VSL端口通道,则接口进入“notconnect”状态。Interface status显示为UP,但line protocol将down。接口将处于up/down状态,直到交换机在步骤 4 中重新启动。
4500X-VSS# switch convert mode virtual
当交换机 1 完成重新加载后,它将从VSL链路中检测当前活动 VSS 交换机,并自动同步配置。
命令将交换机转换为 Virtual Switch模式。系统创建一个转换后的配置文件,并将配置文件保存到bootflash,并自动重启。
show switch virtual
查询virtual switch domain number和switch number及角色(Active or Standby)。
show switch virtual role
查看交换机详细角色信息
Standby Switch用console登录后无法查看和修改配置,仅能看到如下提示:
SW2-standby>
Standby console disabled
show switch virtual link
查看VSL链路状态:
show switch virtual link port-channel
查看PortChannel信息:
验证Verify:
现在,您的交换机应已在完全冗余的 VSS 中恢复正常。show switch virtual 命令可确保每台交换机均处于正常状态。要确认您是否已恢复到状态切换 (SSO) 或热备用状态,请再次输入 show
redundancy 命令。
4500X-VSS#show switch virtual
Executing the command on VSS member switch role = VSS Active, id = 2
Switch mode : Virtual Switch
Virtual switch domain number : 100
Local switch number : 2
Local switch operational role: Virtual Switch Active
Peer switch number : 1
Peer switch operational role : Virtual Switch Standby
Executing the command on VSS member switch role = VSS Standby, id = 1
Switch mode : Virtual Switch
Virtual switch domain number : 100
Local switch number : 1
Local switch operational role: Virtual Switch Standby
Peer switch number : 2
Peer switch operational role : Virtual Switch Active
4500X-VSS#show redundancy
Redundant System Information :
------------------------------Available system uptime = 1 week, 4 days, 9 hours, 27 minutes
Switchovers system experienced = 8
Standby failures = 0
Last switchover reason = user_forced
Hardware Mode = Duplex
Configured Redundancy Mode = Stateful Switchover
Operating Redundancy Mode = Stateful Switchover
Maintenance Mode = Disabled
Communications = Up
Current Processor Information :
------------------------------Active Location = slot 2/1
Current Software state = ACTIVE
Uptime in current state = 1 hours, 3 minutes
Image Version = Cisco IOS Software, IOS-XE Software, Catalyst 4500
L3 Switch Software (cat4500e-UNIVERSAL-M), Version
03.05.01.E RELEASE SOFTWARE (fc2)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2013 by Cisco Systems, Inc.
Compiled Sat 23-Nov-13 00:46 by prod_re
BOOT = bootflash:cat4500e-universal.SPA.03.05.01.E.152-1.E1.bin,1;
Configuration register = 0x2102
Peer Processor Information :
------------------------------Standby Location = slot 1/1
Current Software state = STANDBY HOT
Uptime in current state = 1 hours, 3 minutes
Image Version = Cisco IOS Software, IOS-XE Software, Catalyst 4500
L3 Switch Software (cat4500e-UNIVERSAL-M), Version
03.05.01.E RELEASE SOFTWARE (fc2)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2013 by Cisco Systems, Inc.
Compiled Sat 23-Nov-13 00:46 by prod_
BOOT = bootflash:cat4500e-universal.SPA.03.05.01.E.152-1.E1.bin,1;
Configuration register = 0x2102
Troubleshoot
要验证 VSL 链路,请输入:
4500X-VSS#show switch virtual link
Executing the command on VSS member switch role = VSS Active, id = 2
VSL Status : UP
VSL Uptime : 11 hours, 53 minutes
VSL Control Link : Te2/1/1
VSL Encryption : Configured Mode - Off, Operational Mode - Off
Executing the command on VSS member switch role = VSS Standby, id = 1
VSL Status : UP
VSL Uptime : 11 hours, 53 minutes
VSL Control Link : Te1/1/1
VSL Encryption : Configured Mode - Off, Operational Mode - Off
要使 VSS 在具有 SSO 冗余的情况下运行,该 VSS 必须满足以下条件:
两台交换机中运行的软件版本相同l
VSL 配置一致l
VSS 待机交换机按启动顺序,将虚拟交换机信息从启动配置文件发送到 VSS 活动交换机。
VSS 活动交换机可确保两台交换机中的以下信息完全匹配:
交换机虚拟域l
交换机虚拟节点l
交换机优先级(可选)l
VSL 端口通道:交换机虚拟链路标识符l
VSL 端口:通道组编号、关闭、VSL 端口总数
故障切换
现在,您了解了分别处于活动(交换机 1)和待机(交换机 2)状态的交换机。接下来,将控制平
面的职责故障切换到交换机 2,以便准备更换交换机 1。redundancy force-switchover 命令可执行
所需的操作。
Note:冗余故障切换可能导致停机,具体取决于可操作的冗余状态。需要注意的是,此步骤会
完全重新加载当前活动交换机(交换机 1),以便将控制职责转交给对等交换机(交换机
2)。
4500X-VSS#redundancy force-switchover
This will reload the active unit and force switchover to standby[confirm]
Preparing for switchover..
*Mar 2 13:38:06.553: %SYS-5-SWITCHOVER: Switchover requested by Exec. Reason:
Stateful Switchover.
<Sun Mar 2 13:38:09 2014> Message from sysmgr: Reason Code:[3] Reset Reason:
Reset/Reload requested by [console]. [Reload command]
步骤 3 - 验证故障切换
在移除出现故障的交换机之前,必须确认系统已完全执行故障切换。要验证冗余状态,请输入
show redundancy 命令。
4500X-VSS#show redundancy
Redundant System Information :
------------------------------Available system uptime = 1 week, 3 days, 22 hours, 37 minutes
Switchovers system experienced = 8
Standby failures = 0
Last switchover reason = user_forced
Hardware Mode = Duplex
Configured Redundancy Mode = Stateful Switchover
Operating Redundancy Mode = Stateful Switchover
Maintenance Mode = Disabled
Communications = Up
Current Processor Information :
------------------------------Active Location = slot 2/1
Current Software state = ACTIVE
Uptime in current state = 55 minutes
Image Version = Cisco IOS Software, IOS-XE Software, Catalyst
4500 L3 Switch Software (cat4500e-UNIVERSAL-M),
Version 03.05.01.E RELEASE SOFTWARE (fc2)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2013 by Cisco Systems, Inc.
Compiled Sat 23-Nov-13 00:46 by prod_re
BOOT = bootflash:cat4500e-universal.SPA.03.05.01.E.152-1.E1.bin,1;
Configuration register = 0x2102
Peer Processor Information :
------------------------------Standby Location = slot 1/1
Current Software state = STANDBY HOT
Uptime in current state = 0 minute
Image Version = Cisco IOS Software, IOS-XE Software,
Catalyst 4500 L3 Switch Software (cat4500e-UNIVERSAL-M),
Version 03.05.01.E RELEASE SOFTWARE (fc2)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2013 by Cisco Systems, Inc.
Compiled Sat 23-Nov-13 00:46 by prod_
BOOT = bootflash:cat4500e-universal.SPA.03.05.01.E.152-1.E1.bin,1;
Configuration register = 0x2102
在输出中,当前软件状态 = STANDBY HOT表示系统此时已稳定并完全同步。现在,您可以继续物理移除交换机。
移除交换机
此时,即可实物理移除出现故障的交换机。非常重要的是要意识到,如果您的拓扑在删除时不是完全冗余的,您的服务将会受到影响。思科建议您实施多机箱 EtherChannel (MEC),以帮助确保链路保持活动状态。
Note:MEC 是一种端口终止于 VSS 的两台交换机的 EtherChannel。 VSS MEC 可连接支持EtherChannel 的任何网络元素(例如主机、服务器、路由器或交换机)。
参考步骤:
配置步骤第一步:分配虚拟交换机域和交换机编号
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注意:两台设备的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
第四步:将当前的交换机模式切换为虚拟交换机(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
堆叠stack(列表、list、全)堆叠list
http://www.zh-cjh.com/wenzhangguilei/950.html
文章归类、所有文章列表、LISTLIST
http://www.zh-cjh.com/wangzhangonggao/2195.html
2、本资源基本为原创,部分来源其他付费资源平台或互联网收集,如有侵权请联系及时处理。
3、本站大部分文章的截图来源实验测试环境,请不要在生产环境中随意模仿,以免带来灾难性后果。
转载请保留出处: www.zh-cjh.com珠海陈坚浩博客 » 思科堆叠VSS(virtual switching system虚拟交换系统)、优先级的数值越大,表示优先级越高。
作者: cjh
手机扫一扫,手机上查看此文章: |
一切源于价值!
其他 模板文件不存在: ./template/plugins/comment/pc/index.htm