以上显示信息中,能够查看到两台成员交换机的单板状态,表示集群建立完成。
# 查看集群链路状态是否正常。
Chassis 1 || Chassis 2 ================================================================================
Num [SRUC HG] [VS08 Port(Status)] || [VS08 Port(Status)] [SRUC HG] 1 1/7 0/12 -- 1/7/0/1(UP 10G) ---||--- 2/7/0/1(UP 10G) -- 2/7 0/12 2 1/7 0/16 -- 1/7/0/2(UP 10G) ---||--- 2/7/0/2(UP 10G) -- 2/7 0/16 3 1/7 0/13 -- 1/7/0/3(UP 10G) ---||--- 2/7/0/3(UP 10G) -- 2/7 0/13 4 1/7 0/17 -- 1/7/0/4(UP 10G) ---||--- 2/7/0/4(UP 10G) -- 2/7 0/17 5 1/7 0/14 -- 1/7/0/5(UP 10G) ---||--- 2/8/0/5(UP 10G) -- 2/8 0/14 6 1/7 0/18 -- 1/7/0/6(UP 10G) ---||--- 2/8/0/6(UP 10G) -- 2/8 0/18 7 1/7 0/15 -- 1/7/0/7(UP 10G) ---||--- 2/8/0/7(UP 10G) -- 2/8 0/15 8 1/7 0/19 -- 1/7/0/8(UP 10G) ---||--- 2/8/0/8(UP 10G) -- 2/8 0/19 9 1/8 0/12 -- 1/8/0/1(UP 10G) ---||--- 2/8/0/1(UP 10G) -- 2/8 0/12 10 1/8 0/16 -- 1/8/0/2(UP 10G) ---||--- 2/8/0/2(UP 10G) -- 2/8 0/16 11 1/8 0/13 -- 1/8/0/3(UP 10G) ---||--- 2/8/0/3(UP 10G) -- 2/8 0/13 12 1/8 0/17 -- 1/8/0/4(UP 10G) ---||--- 2/8/0/4(UP 10G) -- 2/8 0/17 13 1/8 0/14 -- 1/8/0/5(UP 10G) ---||--- 2/7/0/5(UP 10G) -- 2/7 0/14 14 1/8 0/18 -- 1/8/0/6(UP 10G) ---||--- 2/7/0/6(UP 10G) -- 2/7 0/18 15 1/8 0/15 -- 1/8/0/7(UP 10G) ---||--- 2/7/0/7(UP 10G) -- 2/7 0/15 16 1/8 0/19 -- 1/8/0/8(UP 10G) ---||--- 2/7/0/8(UP 10G) -- 2/7 0/19
以上显示信息中,集群链路均为UP,表示集群链路正常,至此可以说明集群组建完全成功。
配置集群系统与上、下游设备的Eth-Trunk
# 在集群系统上行端口创建Eth-Trunk,并加入Eth-Trunk成员接口。
[SwitchA] sysname CSS //给集群系统重新命名 [CSS] interface eth-trunk 10 [CSS-Eth-Trunk10] quit
[CSS] interface gigabitethernet 1/1/0/4 [CSS-GigabitEthernet1/1/0/4] eth-trunk 10 [CSS-GigabitEthernet1/1/0/4] quit [CSS] interface gigabitethernet 2/1/0/4 [CSS-GigabitEthernet2/1/0/4] eth-trunk 10 [CSS-GigabitEthernet2/1/0/4] quit
# 在集群系统下行端口上创建与SwitchC之间的Eth-Trunk,并加入Eth-Trunk成员接口。
[CSS] interface eth-trunk 20 [CSS-Eth-Trunk20] quit
[CSS] interface gigabitethernet 1/1/0/3 [CSS-GigabitEthernet1/1/0/3] eth-trunk 20 [CSS-GigabitEthernet1/1/0/3] quit [CSS] interface gigabitethernet 2/1/0/5 [CSS-GigabitEthernet2/1/0/5] eth-trunk 20 [CSS-GigabitEthernet2/1/0/5] quit
# 在集群系统下行端口上创建与SwitchD之间的Eth-Trunk,并加入Eth-Trunk成员接口。
[CSS] interface eth-trunk 30 [CSS-Eth-Trunk30] quit
[CSS] interface gigabitethernet 1/1/0/5 [CSS-GigabitEthernet1/1/0/5] eth-trunk 30 [CSS-GigabitEthernet1/1/0/5] quit [CSS] interface gigabitethernet 2/1/0/3 [CSS-GigabitEthernet2/1/0/3] eth-trunk 30 [CSS-GigabitEthernet2/1/0/3] return
# 在SwitchE上创建Eth-Trunk,并加入Eth-Trunk成员接口。
[SwitchE] interface gigabitethernet 1/0/1 [SwitchE-GigabitEthernet1/0/1] eth-trunk 10 [SwitchE-GigabitEthernet1/0/1] quit [SwitchE] interface gigabitethernet 1/0/2 [SwitchE-GigabitEthernet1/0/2] eth-trunk 10 [SwitchE-GigabitEthernet1/0/2] quit
# 在SwitchC上创建Eth-Trunk,并加入Eth-Trunk成员接口。
[SwitchC] interface gigabitethernet 1/0/1 [SwitchC-GigabitEthernet1/0/1] eth-trunk 20
[SwitchC-GigabitEthernet1/0/1] quit [SwitchC] interface gigabitethernet 1/0/2 [SwitchC-GigabitEthernet1/0/2] eth-trunk 20 [SwitchC-GigabitEthernet1/0/2] quit
# 在SwitchD上创建Eth-Trunk,并加入Eth-Trunk成员接口。
[SwitchD] interface gigabitethernet 1/0/1 [SwitchD-GigabitEthernet1/0/1] eth-trunk 30 [SwitchD-GigabitEthernet1/0/1] quit [SwitchD] interface gigabitethernet 1/0/2 [SwitchD-GigabitEthernet1/0/2] eth-trunk 30 [SwitchD-GigabitEthernet1/0/2] quit
# 检查配置结果。
上述配置成功后,在任意视图下执行命令display trunkmembership eth-trunk,可以看到Eth-Trunk接口的成员口信息。
以集群系统上Eth-Trunk 10的显示为例。
Used status: VALID TYPE: ethernet
Working Mode : Normal Number Of Ports in Trunk = 2 Number Of Up Ports in Trunk = 2 Operate status: up
Interface GigabitEthernet1/1/0/4, valid, operate up, weight=1 Interface GigabitEthernet2/1/0/4, valid, operate up, weight=1
配置多主检测功能(此处选择代理方式进行配置,将SwitchC作为代理设备。命令行格式以V200R003C00及之后的版本为例)
# 在集群系统上配置Eth-Trunk接口的代理方式多主检测功能。
[CSS] interface eth-trunk 20
[CSS-Eth-Trunk20] mad detect mode relay //V200R002C00及之前的版本命令行格式为dual-active detect mode relay [CSS-Eth-Trunk20] quit [CSS] quit
# 配置代理设备SwitchC的代理功能。
[SwitchC] interface eth-trunk 20
[SwitchC-Eth-Trunk20] mad relay 格式为dual-active relay [SwitchC-Eth-Trunk20] quit [SwitchC] quit
# 检查配置结果。
在集群系统上查看集群多主检测的配置信息。
MAD direct detection enabled: NO MAD relay detection enabled: YES
在SwitchC上查看配置的代理信息。
配置文件
集群系统的配置文件 #
sysname CSS #
interface Eth-Trunk10 #
interface Eth-Trunk20 mad detect mode relay #
//V200R002C00及之前的版本命令行 //V200R002C00及之前的版本命令//V200R002C00及之前的版本命令行格
相关推荐: