cisco 6509 真实项目核心交换机配置vss配置
初始配置enconf tno ip domain lookupline con 0loginexec-timeout 0 30logging synchronousexitusername et pa
初始配置
en
conf t
no ip domain lookup
line con 0
login
exec-timeout 0 30
logging synchronous
exit
username et password et6f
enable secret et6f
hostname 6F-CORE-SW
(2)将核心交换机 6F-CORE-SW01上与 6F-CORE-SW02相连的接口TenGigabitEthernet5/4和TenGigabitEthernet5/5配置为EtherChannel :

6F-CORE-SW01(config)#interface range tenGigabitEthernet 5/4 - 5
,6F-CORE-SW01(config-if-range)#channel-group 1 mode on
6F-CORE-SW01(config-if-range)#no shutdown
Range command terminated because it failed on TenGigabitEthernet5/4
6F-CORE-SW01(config-if-range)#exit
说明:将核心交换机 6F-CORE-SW01上与 6F-CORE-SW02相连的接口TenGigabitEthernet5/4和TenGigabitEthernet5/5配置为EtherChannel ,为配置VSL 作准备。
(3)配置VSS 域名与VSS 主机号:
6F-CORE-SW01(config)#switch virtual domain 100
Domain ID 100 config will take effect only
after the exec command 'switch convert mode virtual' is issued
6F-CORE-SW01(config-vs-domain)#switch 1
6F-CORE-SW01(config-vs-domain)#switch 1 priority 200
6F-CORE-SW01(config-vs-domain)#exit
说明:这里没有配置抢占,因为找不到抢占这个命令(因为active 交换几只是在控制层面起作用,实际的数据还是各自进行转发所以哪台做active 无所谓)配置VSS 的域名为100,范围为1-255,两台交换机必须相同;配置VSS 的主机号码为1,必须一台为1,另一台为2;并配置VSS 优先级为200,默认为100,数字越大,优先级越高,便能成为主VSS 交换机。
,(4)配置VSL 链路:
6F-CORE-SW01(config)#interface port-channel 1
6F-CORE-SW01(config-if)#switch virtual link 1
6F-CORE-SW01(config-if)#no shutdown
6F-CORE-SW01(config-if)#exit
6F-CORE-SW01(config)#exit
说明:将两台交换机互连的EtherChannel 配置为VSL 。
(5)将交换机的工作模式改为VSS 模式(确定之后,交换机将自动重启): 6F-CORE-SW01#write
Building configuration...
[OK]
6F-CORE-SW01#
6F-CORE-SW01#switch convert mode virtual
(6)查看当前交换机的工作模式:
6F-CORE-SW01#show switch virtual
Switch mode : Virtual Switch
Virtual switch domain number : 100
Local switch number : 1
Local switch operational role: Virtual Switch Active
6F-CORE-SW01#
说明:交换机当前已经工作在VSS 模式,并显示域名为100,本地交换机号码为1,本地交换机的角色为Active ,即具有控制权限的主交换机。
,(7)查看当前交换机的VSS 角色:
6F-CORE-SW01#show switch virtual role
Switch Switch Status Preempt Priority Role Session ID Number Oper(Conf) Oper(Conf) Local Remote ------------------------------------------------------------------
LOCAL 1 UP TRUE (Y*) 200(200) ACTIVE 0 0
Active configured preempt timer(switch 1): 5 minutes
In dual-active recovery mode: No
6F-CORE-SW01#
说明:本地交换机的角色为Active ,即具有控制权限的主交换机。
(8)查看当前交换机的VSL 链路状态:
6F-CORE-SW01#show switch virtual link
VSL Status : DOWN
VSL Uptime : -
VSL SCP Ping : -
VSL ICC Ping : -
VSL Control Link : -
,6F-CORE-SW01#
说明:因为还没有配置第二台交换机,所以本地交换机当前的VSL 链路状态为DOWN 。
二:配置核心交换机SW02
en
conf t
no ip domain lookup
line con 0
exec-timeout 0 0
logging synchronous
exit
username et password et6f
enable secret et6f
hostname 6FF-CORE-SW02
(2)将核心交换机 6F-CORE-SW02上与 6F-CORE-SW01相连的接口TenGigabitEthernet5/4和TenGigabitEthernet5/5配置为EtherChannel : 6F-CORE-SW02(config)#int range tenGigabitEthernet 5/4 - 5
6F-CORE-SW02(config-if-range)#channel-group 2 mode on
6F-CORE-SW02(config-if-range)#no shutdown
Range command terminated because it failed on TenGigabitEthernet5/4 6F-CORE-SW02(config-if-range)#exit
说明:将核心交换机 6F-CORE-SW02上与 6F-CORE-SW01相连的接口
,TenGigabitEthernet5/4和TenGigabitEthernet5/5配置为EtherChannel ,为配置VSL 作准备,请注意双方的EtherChannel 号码不要配置相同。
(3)配置VSS 域名与VSS 主机号:
6F-CORE-SW02(config)#switch virtual domain 100
Domain ID 100 config will take effect only
after the exec command 'switch convert mode virtual' is issued
6F-CORE-SW02(config-vs-domain)#switch 2
6F-CORE-SW02(config-vs-domain)#exit
说明:配置VSS 的域名为100,范围为1-255,两台交换机必须相同;配置VSS 的主机号码为2,必须一台为1,另一台为2。
(4)配置VSL 链路:
6F-CORE-SW02(config)#int port-channel 2
6F-CORE-SW02(config-if)#switch virtual link 2
6F-CORE-SW02(config-if)#no shutdown
6F-CORE-SW02(config-if)#exi
6F-CORE-SW02(config)#exi
说明:将两台交换机互连的EtherChannel 配置为VSL 。
(5)将交换机的工作模式改为VSS 模式(确定之后,交换机将自动重启): 6F-CORE-SW02#wr
,Building configuration...
[OK]
6F-CORE-SW02#
6F-CORE-SW02#switch convert mode virtual
之后会出现一个选项:选yes
启动完成后:核心sw02:进入standby 状态
说明:由于对端交换机 6F-CORE-SW01的VSS 优先级高于本交换机,所以对方交换机已经工作在了VSS 的Active 状态,而本地交换机 6F-CORE-SW02只能工作在Standby 状态;只有工作在Active 模式的交换机才具有配置和管理双方交换机的权限,而工作在Standby 状态的交换机则永远停留在用户模式(提示符为>),enable 模式是被阻塞而不能进入的。
并且需要注意,当两台交换机通过VSS 合并成单台交换机之后,主机名则沿用Active 交换机的主机名。
(1)查看核心交换机 6F-CORE-SW01的EtherChannel 状态:
6F-CORE-SW01#sh etherchannel summary
Flags: D - down P - bundled in port-channel
I - stand-alone s - suspended
H - Hot-standby (LACP only)
R - Layer3 S - Layer2
U - in use N - not in use, no aggregation
f - failed to allocate aggregator
M - not in use, no aggregation due to minimum links not met
m - not in use, port not aggregated due to minimum links not met
u - unsuitable for bundling
,d - default port
w - waiting to be aggregated
Number of channel-groups in use: 1
Number of aggregators: 1
Group Port-channel Protocol Ports
------ ------------- ----------- -----------------------------------------------
1 Po1(RD) - Te1/5/4(w) Te1/5/5(D)
6F-CORE-SW01#
说明:核心交换机 6F-CORE-SW01当前的EtherChannel 并未工作在正常状态,所以下面需要解决此问题。
说明:由于两台核心交换机之间配置了VSS ,所以两台交换机的配置信息将合并为一台, 6F-CORE-SW01之前的接口GigabitEthernet1/2现在变为GigabitEthernet1/1/2,之前的接口GigabitEthernet2/3现在变为GigabitEthernet1/2/3,之前的接口TenGigabitEthernet5/4现在变为TenGigabitEthernet1/5/4,而 6F-CORE-SW02之前的接口GigabitEthernet1/2现在变为GigabitEthernet2/1/2,之前的接口GigabitEthernet2/3现在变为GigabitEthernet2/2/3,之前的接口TenGigabitEthernet5/4现在变为TenGigabitEthernet2/5/4;除此之外,最重要的就是之前双方都配置好的EtherChannel ,现在只剩Active 交换机 6F-CORE-SW01的TenGigabitEthernet1/5/4和TenGigabitEthernet1/5/5还正常存在,而Standby 交换机 6F-CORE-SW02的EtherChannel 配置在经过VSS 合并之后被清空,所以必须手工添加交换机 6F-CORE-SW02上应有的EtherChannel 配置和VSL 配置,否则双方的VSL 将不能正常工作,那么VSS 也就不能正常工作。(也有些型号的设备不需要做这一步vsl 就up 了)
(3)手工添加交换机 6F-CORE-SW02上应有的EtherChannel 配置和VSL 配置: 6F-CORE-SW01(config)#int range tenGigabitEthernet 2/5/4 - 5
,6F-CORE-SW01(config-if-range)#channel-group 2 mode on
6F-CORE-SW01(config-if-range)#no shutdown
Range command terminated because it failed on TenGigabitEthernet2/5/4 6F-CORE-SW01(config-if-range)#exit
00:10:36: �-5-STAYDOWN: Te2/5/4 will remain down as its port-channel Po2 is admin-down
6F-CORE-SW01(config)#
6F-CORE-SW01(config)#int port-channel 2
6F-CORE-SW01(config-if)#switch virtual link 2
6F-CORE-SW01(config-if)#no shutdown
6F-CORE-SW01(config-if)#exit
6F-CORE-SW01(config)#exit
6F-CORE-SW01#
00:11:03: SYS-5-CONFIG_I: Configured from console by consolewr
6F-CORE-SW01#write
Building configuration...
00:14:16: PFINIT-SW1_SP-5-CONFIG_SYNC: Sync'ing the startup configuration to the standby Router. [OK]
6F-CORE-SW01#
说明:虽然是配置 6F-CORE-SW02的EtherChannel 和VSL ,但还是在VSS 的Active 交换机上配置的,因为 6F-CORE-SW02工作在Standby 状态,是不能进入enable 进行配置和管理的。
(4)再次查看交换机 6F-CORE-SW01的工作模式:
,6F-CORE-SW01#show switch virtual
Switch mode : Virtual Switch
Virtual switch domain number : 100
Local switch number : 1
Local switch operational role: Virtual Switch Active
Peer switch number : 2
Peer switch operational role : Virtual Switch Standby
Conversion completed : No
Perform exec command 'switch accept mode virtual' to complete the VSS conversion 6F-CORE-SW01#
说明:交换机 6F-CORE-SW01当前工作在VSS 模式,并显示域名为100,本地交换机号码为1,本地交换机的角色为Active ,即具有控制权限的主交换机,而对端交换机号码为2,并且对端交换机角色为Standby 。
查看交换机当前的SSO 状态:
6F-CORE-SW01#
6F-CORE-SW01#show redundancy states
my state = 13 -ACTIVE
peer state = 8 -STANDBY HOT
Mode = Duplex
Unit = Primary
Unit ID = 21
Redundancy Mode (Operational) = sso