华三交换机IRF + MAD BFD检测

发布于 2023-12-23  43 次阅读


IRF

SW1:

[sw] irf member 1 priority 32       //值越大,优先级越高

[sw] interface range Ten-GigabitEthernet 1/0/49 to Ten-GigabitEthernet 1/0/50 

[sw-if-range] shutdown               //现将接口shutdown,再加入irf口

[sw] irf-port 1/1

[sw-irf-port1/1] port group interface Ten-GigabitEthernet1/0/49

[sw-irf-port1/1] port group interface Ten-GigabitEthernet1/0/50

[sw] interface range Ten-GigabitEthernet 1/0/49 to Ten-GigabitEthernet 1/0/50 

[sw-if-range] undo shutdown    //接口加入irf后,恢复undo shutdown

[sw] save                                    //保存一下

[sw] irf-port-configuration active  //激活irf端口下的配置

SW2:

[sw] irf member 1 renember 2    //修改设备成员编号

<sw> reboot                                 //重启生效

[sw] irf member 2 priority 30     //配置优先级小于主机

[sw] interface range Ten-GigabitEthernet 2/0/49 to Ten-GigabitEthernet 2/0/50   //设备编号改为2以后,所有接口命名从2开始

[sw-if-range] shutdown               //现将接口shutdown,再加入irf口

[sw] irf-port 2/2                            //对端为x/1口,则本端必须为x/2口

[sw-irf-port2/2] port group interface Ten-GigabitEthernet2/0/49

[sw-irf-port2/2] port group interface Ten-GigabitEthernet2/0/50

[sw] interface range Ten-GigabitEthernet 2/0/49 to Ten-GigabitEthernet 2/0/50 

[sw-if-range] undo shutdown    //接口加入irf后,恢复undo shutdown

[sw] save                                    //保存一下

[sw] irf-port-configuration active  //激活irf端口下的配置

接口连线,交换机会进行主备选举,备机会重启

MAD BFD检测

使用Ten-GigabitEthernet X/0/51做检测口

[sw] vlan 4090

[sw] interface range Ten-GigabitEthernet 1/0/51 Ten-GigabitEthernet 2/0/51

[sw-if-range] port link-type access

[sw-if-range] port access vlan 4090

[sw-if-range] undo stp enable      //BFD与STP互斥,需关闭STP功能

[sw] interface Vlan-interface 4090

[sw-Vlan-interface4090] mad bfd enable

[sw-Vlan-interface4090] mad ip address 13.13.13.1 255.255.255.0 member 1

[sw-Vlan-interface4090] mad ip address 13.13.13.2 255.255.255.0 member 2