配置过程中注意事项:
1.最好提前定义好IRF的主从设备,可通过IRF优先级进行定义,越大越优
2.一定要在使能IRF之前就保存配置(因为使能过程中,会出现设备重启的情况,如果设备重启后配置丢失,会导致使能失败
配置过程:
一、配置Device A的物理接口加入IRF
1.先关闭A设备的这些物理端口。
<Sysname> system-view
[Sysname] interface range Ten-GigabitEthernet 1/0/49 to Ten-GigabitEthernet 1/0/50
[Sysname-if-range] shutdown
[Sysname-if-range] quit
2.配置IRF虚拟端口1/1,并将它与物理端口Ten-GigabitEthernet1/0/49和Ten-GigabitEthernet1/0/50绑定。
[Sysname] irf-port 1/1
[Sysname-irf-port1/1] port group interface Ten-GigabitEthernet 1/0/49
[Sysname-irf-port1/1] port group interface Ten-GigabitEthernet 1/0/50
[Sysname-irf-port1/1] quit
3.打开物理接口并保存
[Sysname] interface range Ten-GigabitEthernet 1/0/49 to Ten-GigabitEthernet 1/0/50
[Sysname-if-range] undo shutdown
[Sysname-if-range] qu
[Sysname] save
二、配置Device B的物理接口加入IRF
1.先关闭B设备的这些物理端口
[Sysname] interface range Ten-GigabitEthernet 2/0/49 to Ten-GigabitEthernet 2/0/50
[Sysname-if-range] shutdown
[Sysname-if-range] quit
2.配置IRF虚拟端口2/1,并将它与物理端口Ten-GigabitEthernet2/0/49和Ten-GigabitEthernet2/0/50绑定。
[Sysname] irf-port 2/1
[Sysname-irf-port2/1] port group interface Ten-GigabitEthernet 2/0/49
[Sysname-irf-port2/1] port group interface Ten-GigabitEthernet 2/0/50
[Sysname-irf-port2/1] quit
3.打开物理接口并保存
[Sysname] interface range Ten-GigabitEthernet 2/0/49 to Ten-GigabitEthernet 2/0/50
[Sysname-if-range] undo shutdown
[Sysname-irf-port2/1] quit
[Sysname] save
三、物理线路连接好
四、在两台设备上依次使能IRF
[Sysname] irf-port-configuration active
五、这时候设备会重启,堆叠成功后,两台设备虚拟成一台,两台设备配置相同,可在一台设备上看到两台交换机的端口,然后进行MAD配置
[Sysname] interface range GigabitEthernet 1/0/48 GigabitEthernet 2/0/48
[Sysname-if-range] port access vlan 44
[Sysname-if-range] des MAD port
[Sysname-if-range] quit
[Sysname] int vlan 44
[Sysname-Vlan-interface44] mad bfd enable
[Sysname-Vlan-interface44] mad ip add 192.168.0.1 24 member 1
[Sysname-Vlan-interface44] mad ip add 192.168.0.2 24 member 2
[Sysname-Vlan-interface44] quit
六、检测MAD状态(如果状态为NO,代表IRF没有分离,这时候断开IRF线,查看MAD状态是否为YES就可以)
[Sysname] show mad verbose