cisco 6509 真實(shí)項(xiàng)目核心交換機(jī)配置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)將核心交換機(jī) 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
說明:將核心交換機(jī) 6F-CORE-SW01上與 6F-CORE-SW02相連的接口TenGigabitEthernet5/4和TenGigabitEthernet5/5配置為EtherChannel ,為配置VSL 作準(zhǔn)備。
(3)配置VSS 域名與VSS 主機(jī)號(hào):
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
說明:這里沒有配置搶占,因?yàn)檎也坏綋屨歼@個(gè)命令(因?yàn)閍ctive 交換幾只是在控制層面起作用,實(shí)際的數(shù)據(jù)還是各自進(jìn)行轉(zhuǎn)發(fā)所以哪臺(tái)做active 無(wú)所謂)配置VSS 的域名為100,范圍為1-255,兩臺(tái)交換機(jī)必須相同;配置VSS 的主機(jī)號(hào)碼為1,必須一臺(tái)為1,另一臺(tái)為2;并配置VSS 優(yōu)先級(jí)為200,默認(rèn)為100,數(shù)字越大,優(yōu)先級(jí)越高,便能成為主VSS 交換機(jī)。
,(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
說明:將兩臺(tái)交換機(jī)互連的EtherChannel 配置為VSL 。
(5)將交換機(jī)的工作模式改為VSS 模式(確定之后,交換機(jī)將自動(dòng)重啟): 6F-CORE-SW01#write
Building configuration...
[OK]
6F-CORE-SW01#
6F-CORE-SW01#switch convert mode virtual
(6)查看當(dāng)前交換機(jī)的工作模式:
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#
說明:交換機(jī)當(dāng)前已經(jīng)工作在VSS 模式,并顯示域名為100,本地交換機(jī)號(hào)碼為1,本地交換機(jī)的角色為Active ,即具有控制權(quán)限的主交換機(jī)。
,(7)查看當(dāng)前交換機(jī)的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#
說明:本地交換機(jī)的角色為Active ,即具有控制權(quán)限的主交換機(jī)。
(8)查看當(dāng)前交換機(jī)的VSL 鏈路狀態(tài):
6F-CORE-SW01#show switch virtual link
VSL Status : DOWN
VSL Uptime : -
VSL SCP Ping : -
VSL ICC Ping : -
VSL Control Link : -
,6F-CORE-SW01#
說明:因?yàn)檫€沒有配置第二臺(tái)交換機(jī),所以本地交換機(jī)當(dāng)前的VSL 鏈路狀態(tài)為DOWN 。
二:配置核心交換機(jī)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)將核心交換機(jī) 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
說明:將核心交換機(jī) 6F-CORE-SW02上與 6F-CORE-SW01相連的接口
,TenGigabitEthernet5/4和TenGigabitEthernet5/5配置為EtherChannel ,為配置VSL 作準(zhǔn)備,請(qǐng)注意雙方的EtherChannel 號(hào)碼不要配置相同。
(3)配置VSS 域名與VSS 主機(jī)號(hào):
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,兩臺(tái)交換機(jī)必須相同;配置VSS 的主機(jī)號(hào)碼為2,必須一臺(tái)為1,另一臺(tái)為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
說明:將兩臺(tái)交換機(jī)互連的EtherChannel 配置為VSL 。
(5)將交換機(jī)的工作模式改為VSS 模式(確定之后,交換機(jī)將自動(dòng)重啟): 6F-CORE-SW02#wr
,Building configuration...
[OK]
6F-CORE-SW02#
6F-CORE-SW02#switch convert mode virtual
之后會(huì)出現(xiàn)一個(gè)選項(xiàng):選yes
啟動(dòng)完成后:核心sw02:進(jìn)入standby 狀態(tài)
說明:由于對(duì)端交換機(jī) 6F-CORE-SW01的VSS 優(yōu)先級(jí)高于本交換機(jī),所以對(duì)方交換機(jī)已經(jīng)工作在了VSS 的Active 狀態(tài),而本地交換機(jī) 6F-CORE-SW02只能工作在Standby 狀態(tài);只有工作在Active 模式的交換機(jī)才具有配置和管理雙方交換機(jī)的權(quán)限,而工作在Standby 狀態(tài)的交換機(jī)則永遠(yuǎn)停留在用戶模式(提示符為>),enable 模式是被阻塞而不能進(jìn)入的。
并且需要注意,當(dāng)兩臺(tái)交換機(jī)通過VSS 合并成單臺(tái)交換機(jī)之后,主機(jī)名則沿用Active 交換機(jī)的主機(jī)名。
(1)查看核心交換機(jī) 6F-CORE-SW01的EtherChannel 狀態(tài):
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#
說明:核心交換機(jī) 6F-CORE-SW01當(dāng)前的EtherChannel 并未工作在正常狀態(tài),所以下面需要解決此問題。
說明:由于兩臺(tái)核心交換機(jī)之間配置了VSS ,所以兩臺(tái)交換機(jī)的配置信息將合并為一臺(tái), 6F-CORE-SW01之前的接口GigabitEthernet1/2現(xiàn)在變?yōu)镚igabitEthernet1/1/2,之前的接口GigabitEthernet2/3現(xiàn)在變?yōu)镚igabitEthernet1/2/3,之前的接口TenGigabitEthernet5/4現(xiàn)在變?yōu)門enGigabitEthernet1/5/4,而 6F-CORE-SW02之前的接口GigabitEthernet1/2現(xiàn)在變?yōu)镚igabitEthernet2/1/2,之前的接口GigabitEthernet2/3現(xiàn)在變?yōu)镚igabitEthernet2/2/3,之前的接口TenGigabitEthernet5/4現(xiàn)在變?yōu)門enGigabitEthernet2/5/4;除此之外,最重要的就是之前雙方都配置好的EtherChannel ,現(xiàn)在只剩Active 交換機(jī) 6F-CORE-SW01的TenGigabitEthernet1/5/4和TenGigabitEthernet1/5/5還正常存在,而Standby 交換機(jī) 6F-CORE-SW02的EtherChannel 配置在經(jīng)過VSS 合并之后被清空,所以必須手工添加交換機(jī) 6F-CORE-SW02上應(yīng)有的EtherChannel 配置和VSL 配置,否則雙方的VSL 將不能正常工作,那么VSS 也就不能正常工作。(也有些型號(hào)的設(shè)備不需要做這一步vsl 就up 了)
(3)手工添加交換機(jī) 6F-CORE-SW02上應(yīng)有的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 交換機(jī)上配置的,因?yàn)?6F-CORE-SW02工作在Standby 狀態(tài),是不能進(jìn)入enable 進(jìn)行配置和管理的。
(4)再次查看交換機(jī) 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#
說明:交換機(jī) 6F-CORE-SW01當(dāng)前工作在VSS 模式,并顯示域名為100,本地交換機(jī)號(hào)碼為1,本地交換機(jī)的角色為Active ,即具有控制權(quán)限的主交換機(jī),而對(duì)端交換機(jī)號(hào)碼為2,并且對(duì)端交換機(jī)角色為Standby 。
查看交換機(jī)當(dāng)前的SSO 狀態(tài):
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