H3C 交换机6800堆叠 A B两个6800通过一条40G的光纤堆叠(建议用多条,本方案测试为主就用一条)

A交换机的配置

6800系统默认自带以上配置内容 irf mac-address persistent timer irf auto-update enable undo irf link-delay irf member 1 priority 1 irf mode normal

第一步 配置交换机的irf优先级,把主交换机设置成30,备交换机设置成10 (优先级越大,选为主的几率越大) irf member 1 priority 30

第二步 把两个交换机互联的40G端口关闭

interface FortyGigE1/0/49 shutdown

第三步 把关闭的端口加入irf-port逻辑口内 irf-port 1/1 port group interface FortyGigE1/0/49 第四步 把堆叠物理端口开启 interface FortyGigE1/0/49 undo shutdown 第五步 在全局模式下激活堆叠口 irf-port-configuration active

配置B交换机 第一步 重命名B交换机的IRF编号 默认是1 默认配置如下 irf mac-address persistent timer irf auto-update enable undo irf link-delay irf member 1 priority 1 irf mode normal

重命名B交换机的IRF编号为2 irf member 1 renumber 2

reboot 重启 B交换机,后编号生效,所有的端口都以编号2开头 如下图 interface Ten-GigabitEthernet2/0/1

第一步 配置B交换机的irf优先级备交换机设置成10 irf member 2 priority 10

第二步 连接物理堆叠线路,把B交换机的物理堆叠端口关闭 interface FortyGigE2/0/49 shutdown

第三步 把关闭的端口加入irf-port逻辑口内 irf-port 2/2 (这个地方千万不能用2/1逻辑端口,一定用2/2,否则堆叠连接不成功) port group interface FortyGigE1/0/49 第四步 把堆叠物理端口开启 interface FortyGigE2/0/49 undo shutdown

save 保存配置 第五步 在全局模式下激活堆叠口 irf-port-configuration active

这个时候A B交换机进行优先级对比,A交换机的优先级大,会选为主交换机,B交换机优先级小,会自动重启同步A交换机的配置,重启完以后,两台交换机的接口配置信息进行合并,配置信息同步A交换机的