vss配置步骤

 

----------------------------------------------------
第一步:备份
switch1:
copy running-config startup-config
copy startup-config disk0:old-startup-config
switch2:
copy running-config startup-config
copy startup-config disk0:old-startup-config

----------------------------------------------------
第二步:配置SSO(默认已经是SSO,可以不配置,NSF也可以选择不配置)

switch1 & switch2:
redundancy
mode sso
exit


show run
show redundancy states

----------------------------------
第三步:配置domain和number(domain为100,200,300,switch 1 switch 2)
switch virtual domain 100
switch 1
switch 1 priority 110
switch 1 preempt

exit

switch virtual domain 100
switch 2
switch 2 preempt
exit

-----------------------------------------
第四步:配置VSL的portchannel和port
switch1:
int port-channel 1
switch virtual link 1
no shut
exit

switch2:
int port-channel 2
switch virtual link 2
no shut
exit

switch1:
interface ten 1/1
channel-group 1 mode on
no shut

interface ten 5/4
channel-group 1 mode on
no shut

switch2:
interface ten 1/1
channel-group 2 mode on
no shut

interface ten 5/4
channel-group 2 mode on
no shut

检查命令
show switch virtual link
show switch virtual link port-channel
show switch virtual link port
----------------------------------------
第五步:切换到virtual mode

switch convert mode virtual
switch convert mode virtual

show switch virtual
show switch virtual role
show switch virtual link

------------------------------------------------

第六步:switch 2 port-channel修改

int port-channel 2
switch virtual link 2

int ten 2/1/1
channel-group 2 mode on

int ten 2/5/4
channel-group 2 mode on


----------------------------------------
第七步:配置参数,优化配置(可选)
1.MAC地址
2.BFD

-------------------------------------------------
配置路由器mac地址指派
switch1:
switch virtual domain 100
mac-address use-virtual
switch2:
switch virtual domain 100
mac-address use-virtual

-------------------------------------------------

配置BFD Dual-Active detection (需要单独的跳线)
配置步骤:

int ten 1/5/1
no switchport
ip add 200.230.230.231 255.255.255.0
bfd interval 100 min_rx 100 multiplier 3
no shutdown

int ten 2/5/1
no switchport
ip add 201.230.230.231 255.255.255.0
bfd interface 100 min_rx 100 muliplier 3
no shutdown
exit

switch virtual domain 100
dual-active detection bfd
dual-active pair interface ten5/1 interface 5/2 bfd

show switch virtual dual-active bfd

------------------------------------------------