H3C盒式交换机业务口堆叠
H3C两台交换机通过业务口TG51~52堆叠起来,物理层面还是两台设备,逻辑层面合并为一台设备。
注意:必须用10G或更大的口来堆叠
irf-port 逻辑堆叠口每台交换机最多只有两个
MemberID |
成员设备的编号 · 如果编号前带“*”,表示该设备是主设备 · 如果编号前带“+”,表示该设备是用户当前登录的、正在操作的设备 |
Role |
成员设备的角色,可能为: · Standby:从设备 · Master:主设备 · Loading:正在自动加载系统启动文件 |
Priority | 成员设备的优先级(数字越大越优先) |
CPU-MAC | 设备的CPU MAC地址 |
Description |
设备的描述信息 · 没有描述信息时,Description字段显示为"-----" · 如果描述信息较多,无法在一行中完全显示,则以“…”结尾,省略后面的信息。此时可以使用display current-configuration来查询完整的描述信息 |
Bridge MAC of the IRF is | IRF的桥MAC |
Auto upgrade |
是否开启自动加载系统启动文件功能 · yes表示开启 · no表示未开启 |
MAC persistent |
是否开启IRF桥MAC保留功能 · 6 min表示IRF的桥MAC保留时间为6分钟 · always表示IRF的桥MAC永久保留不改变 · no表示立即改变IRF的桥MAC |
Domain ID |
IRF的域编号 当网络中存在多个IRF时,用来唯一标识一个IRF |
[SW2]irf member 1 renumber 2 #更改sw2的编号为2 #SW1堆叠配置 [SW1]irf member 1 priority 32 #更改sw1的优先级为32,使它成为主设备 #先把堆叠口shutdown [SW1-Ten-GigabitEthernet1/0/51]shutdown [SW1-Ten-GigabitEthernet1/0/52]shutdown #进入堆叠组1,加入1/0/51端口 [SW1]irf-port 1/1 #这里1/1第一个1指的是端口编号1 [SW1-irf-port1/1]port group interface Ten-GigabitEthernet 1/0/51 #进入堆叠组12,加入1/0/52端口 [SW1]irf-port 1/2 [SW1-irf-port1/2]port group interface Ten-GigabitEthernet 1/0/52 #SW2堆叠配置(sw2上的堆叠口需要和sw1的顺序反过来) #先把堆叠口shutdown [SW2-Ten-GigabitEthernet2/0/51]shutdown [SW2-Ten-GigabitEthernet2/0/52]shutdown #进入堆叠组1,加入1/0/51端口 [SW2]irf-port 2/1 [SW2-irf-port2/1]port group interface Ten-GigabitEthernet 2/0/52 #进入堆叠组12,加入1/0/52端口 [SW2]irf-port 2/2 [SW2-irf-port2/2]port group interface Ten-GigabitEthernet 2/0/51 #开启刚才shutdown端口 #激活堆叠配置,激活配置后从设备会自动重启,主设备不会重启,重启完成后将合并为一台逻辑设备 [SW1]irf-port-configuration active [SW2]irf-port-configuration active
堆叠后效果:
两台设备有同一个名字sw1, 因为sw1是主设备。 并且拥有同一份配置文件,能同时看到两台设备的业务端口。
【相关命令】
display irf configuration #命令用来显示IRF中所有成员设备的IRF配置,显示信息包括:当前成员编号、新配置的成员编号、IRF端口的物理端口。
<SW1>dis irf configuration MemberID NewID IRF-Port1 IRF-Port2 1 1 Ten-GigabitEthernet1/0/51 Ten-GigabitEthernet1/0/52 2 2 Ten-GigabitEthernet2/0/52 Ten-GigabitEthernet2/0/51
display irf link #命令用来显示IRF链路信息。
<SW1>display irf link Member 1 IRF Port Interface Status 1 Ten-GigabitEthernet1/0/51 UP 2 Ten-GigabitEthernet1/0/52 UP Member 2 IRF Port Interface Status 1 Ten-GigabitEthernet2/0/52 UP 2 Ten-GigabitEthernet2/0/51 UP
三台交换机做环形堆叠:(需要注意一个细节,物理口直连,逻辑口交叉)
[sw1]dis irf MemberID Role Priority CPU-Mac Description *+1 Master 30 7482-3c49-0104 --- 2 Standby 20 7482-4d2b-0204 --- 3 Standby 1 7482-54bb-0304 --- -------------------------------------------------- * indicates the device is the master. + indicates the device through which the user logs in. The bridge MAC of the IRF is: 7482-3c49-0100 Auto upgrade : yes Mac persistent : 6 min Domain ID : 0
[sw1]dis irf configuration MemberID NewID IRF-Port1 IRF-Port2 1 1 FortyGigE1/0/53 FortyGigE1/0/54 2 2 FortyGigE2/0/54 FortyGigE2/0/53 3 3 FortyGigE3/0/53 FortyGigE3/0/54
[sw1]dis irf link Member 1 IRF Port Interface Status 1 FortyGigE1/0/53 UP 2 FortyGigE1/0/54 UP Member 2 IRF Port Interface Status 1 FortyGigE2/0/54 UP 2 FortyGigE2/0/53 UP Member 3 IRF Port Interface Status 1 FortyGigE3/0/53 UP 2 FortyGigE3/0/54 UP
[sw1]dis irf topology Topology Info ------------------------------------------------------------------------- IRF-Port1 IRF-Port2 MemberID Link neighbor Link neighbor Belong To 1 UP 2 UP 3 7482-3c49-0104 2 UP 3 UP 1 7482-3c49-0104 3 UP 1 UP 2 7482-3c49-0104
开启mad双主检测,可以检测并处理堆叠分裂时网络中出现的多主冲突。
如果堆叠分裂,选举失败的交换机将down掉所有端口
注意:mad enable 需要跑在动态模式的链路聚合口上
End