华为公司
业务端口的普通电缆,堆叠设备。
1 )配置逻辑堆栈端口,加入物理成员端口。
系统视图
系统名称交换机
接口堆栈端口0/1
portinterfacegigabitethernet0/0/27启用程序
quit
接口堆栈端口0/2
portinterfacegigabitethernet0/0/28启用程序
quit
系统视图
系统名称交换机
接口堆栈端口0/1
portinterfacegigabitethernet0/0/27启用程序
quit
接口堆栈端口0/2
portinterfacegigabitethernet0/0/28启用程序
quit
系统视图
系统名称交换机
接口堆栈端口0/1
portinterfacegigabitethernet0/0/27启用程序
quit
接口堆栈端口0/2
portinterfacegigabitethernet0/0/28启用程序
quit
2 )设定堆栈ID和堆栈优先顺序。
堆栈插槽0优先级200
将SwitchA的堆栈优先级设置为200。
堆栈插槽0重新编号1
将SwitchB的堆栈ID设置为1。
堆栈插槽0重新编号2
将SwitchC的堆栈ID设置为2。
3 )接通SwitchA、SwitchB、SwitchC的电源,用SFP电缆连接后再接通电源。
4 )配置交叉设备以太网。
5 )验证构成结果。
显示display stack #堆栈系统的基本信息。
H3C
配置步骤。
1 )配置设备编号。
#Device A保持默认值1,不需要进行配置。
将#Device B设备的成员编号更改为2。
系统视图
IRF成员1重新编号2
2 )切断2台机器的电源后,连接到IRF链接,接通2台机器的电源。
在设备a上创建# # #设备的IRF端口2,绑定到物理端口的千兆以太网1/0/49,然后保存配置。
系统视图
接口千兆以太网1/0/49
关闭
射频端口1/2
portgroupinterfacegigabitethernet1/0/49
quit
接口千兆以太网1/0/49
还原关闭
保存
在设备b上创建# # #设备的IRF端口1,绑定到物理端口的千兆以太网2/0/50,然后保存配置。
系统视图
接口千兆以太网2/0/50
关闭
射频端口2/1
portgroupinterfacegigabitethernet2/0/50
quit
接口千兆以太网2/0/50
还原关闭
保存
启用设备a的IRF端口配置。
射频端口配置活动
启用设备b的IRF端口配置。
射频端口配置活动
3 )两台设备之间进行主选举,选举失败的一方自动重启。 重新启动完成后,将形成IRF,系统名称将统一为设备a。
> 4)Device A配置LACP MAD检测。#创建一个动态聚合端口,并使能LACP MAD检测功能。
system-view
interface bridge-aggregation 2
link-aggregation mode dynamic
mad enable
quit
#在聚合接口中添加成员端口Gigabitethernet1/0/1和Gigabitethernet2/0/1,专用于两台IRF成员设备与中间设备进行LACP MAD检测。
interface gigabitethernet 1/0/1
port link-aggregation group 2
quit
interface gigabitethernet 2/0/1
port link-aggregation group 2
quit
5)中间设备Device C的配置
#Device C作为一台中间设备需要支持LACP功能,用来转发、处理LACP协议报文,协助Device A和Device B进行多Active检测。
#创建一个动态聚合端口。
system-view
interface bridge-aggregation 2
link-aggregation mode dynamic
quit
#在聚合接口中添加成员端口Gigabitethernet1/0/1和Gigabitethernet2/0/1,用于进行LACP MAD检测。
interface gigabitethernet 1/0/1
port link-aggregation group 2
quit
interface gigabitethernet 2/0/1
port link-aggregation group 2
quit
锐捷
配置步骤。
1)配置Switch1。
#在Switch1配置VSU域标识,设备编号和优先级。
configure terminal
switch virtual domain 1
switch 1
switch 1 priority 200
switch 1 description switch1
exit
vsl-aggregateport 1
port-member interface TenGigabitethernet 1/1
port-member interface TenGigabitethernet 1/2
exit
2)配置Switch2。
#在Switch2配置VSU域标识,设备编号和优先级。
configure terminal
switch virtual domain 1
switch 2
switch 2 priority 150
switch 2 description switch2
exit
vsl-aggregateport 1
port-member interface TenGigabitethernet 1/1
port-member interface TenGigabitethernet 1/2
exit
3)把Switch1和Switch2转化到VSU模式。
Switch1#switch convert mode virtual
Switch2#switch convert mode virtual
4)配置VSU。
#在VSU上配置端口聚合组1
configure terminal
interface aggregateport 1
interface Gigabitethernet 1/0/1
port-group 1
interface Gigabitethernet 1/0/2
port-group 1
interface Gigabitethernet 2/0/1
port-group 1
interface Gigabitethernet 2/0/2
port-group 1
5)配置Switch A。
configure terminal
interface aggregateport 1
interface range Gigabitethernet 0/1-4
port-group 1
6)配置SVI。
#在VSU上配置SVI 1。
interface vlan 1
ip address 1.1.1.1 255.255.255.0
exit
#在Switch A上配置SVI 1。
interface vlan 1
ip address 1.1.1.2 255.255.255.0
7)配置BFD双机检测接口。
interface Gigabitethernet 1/0/12
no switchport
interface Gigabitethernet 2/0/12
no switchport
switch virtual domain 1
dual-active detection bfd
dual-active bfd interface gigabitethernet 1/0/12
dual-active bfd interface gigabitethernet 2/0/12
8)配置基于聚合口方式双主机检测。
#在VSU系统配置。
switch virtual domain 1
dual-active detection aggregateport
dual-active detection aggregateport 1
exit
#在Switch A上配置。
interface aggragateport 1
dad relay enable
exit
9)验证配置。
#查看VSU的基本信息。
Show switch virtual
show switch virtual config
#查看VSL状态信息。
show switch virtual link port
#查看双主机箱配置状态
show swtich virtual dual-active summary
#查看BFD双主机箱检查配置
show switch virtual dual-active bfd
#查看VSU组的拓扑信息
show switch virtual topology