1、主配置
Ruijie_1config)#switch virtual domain 102
Ruijie_1config-vs-domain)#switch 1
Ruijie_1config-vs-domain)#switch 1 priority 200 #优先级高的为主
Ruijie_1config-vs-domain)#switch 1 description Sw1
Ruijie_1config)#vsl-port
Ruijie_1config-vsl-port)#port-member interface HundredGigabitEthernet 0/51
Ruijie_1config-vsl-port)#port-member interface HundredGigabitEthernet 0/52
Ruijie_1#wr #必需先保存配置再转换模式
Ruijie_1#switch convert mode virtual #转换模式后设备自动重启
2、备配置
Ruijie_2config)#switch virtual domain 102
Ruijie_2config-vs-domain)#switch 2 priority 100 #不能先配置优先级,需先更改switch ID
% Failed to configure device priority for the reason current configured switch is 1.
Ruijie_2config-vs-domain)#switch 2
Ruijie_2config-vs-domain)#switch 2 priority 100
Ruijie_2config-vs-domain)#switch 2 description Sw2
Ruijie_2config)#vsl-port
Ruijie_2config-vsl-port)#port-member interface HundredGigabitEthernet 0/51
Ruijie_2config-vsl-port)#port-member interface HundredGigabitEthernet 0/52
Ruijie_2#wr #必需先保存配置再转换模式
Ruijie_2#switch convert mode virtual #转换模式后设备自动重启
3、堆叠优化配置,bfd检测、聚合端口检测二选一
Ruijieconfig)#switch virtual domain 102
Ruijieconfig-vs-domain)#dual-active detection bfd
Ruijieconfig-vs-domain)#dual-active bfd interface mgmt 1/0
Ruijieconfig-vs-domain)#dual-active detection aggregateport
Ruijieconfig-vs-domain)#dual-active interface aggregatePort 1
Ruijieconfig-vs-domain)#switch cfg_mode single
Ruijieconfig-vs-domain)#dual-active auto-recovery enable
4、堆叠状态检查
Ruijie#show switch virtual config #查看堆叠配置
Ruijie#show switch virtual role
Ruijieconfig)#redundancy forceswitch #锐捷主备切换
Ruijie#show switch virtual link
Ruijie#show switch virtual
配置示例
switch virtual domain 100 devid:1 sn:xxxxxxxxxx switch 1 priority 200 switch 1 description sw1 devid:2 sn:xxxxxxxxxx switch 2 priority 100 switch 2 description sw2 switch convert mode virtual switch cfg_mode single dual-active detection bfd dual-active bfd interface Mgmt 1/0 dual-active bfd interface Mgmt 2/0 dual-active auto-recovery enable ! vsl-port port-member interface FortyGigabitEthernet 1/0/53 port-member interface FortyGigabitEthernet 1/0/54 port-member interface FortyGigabitEthernet 2/0/53 port-member interface FortyGigabitEthernet 2/0/54
参考链接:
https://search.ruijie.com.cn:8447/rqs/preview.html? #VSU基本配置