注意irf-port 1/1连接1/2,1/2连接1/1
双机IRF配置
配置JS-7F-R10504-D-1:
配置交换机为IRF模式,配置完后交换机会自动重启。
chassis convert mode irf
配置IRF成员编号为1,优先级为32,让其可以在IRF角色选举过程中成功获选Master角色。
irf member 1 priority 15
priority数值越高越优先
配置IRF端口,并将物理端口与逻辑端口绑定。
interface range Ten-GigabitEthernet 1/2/0/31 Ten-GigabitEthernet 1/2/0/32 shutdown quit irf-port 1/1 port group interface Ten-GigabitEthernet 1/2/0/31 port group interface Ten-GigabitEthernet 1/2/0/32 quit irf-port-configuration active interface range Ten-GigabitEthernet 1/2/0/31 Ten-GigabitEthernet 1/2/0/32 description IRF-PORT undo shutdown
IRF配置完毕,保存设备配置。
Save
配置JS-7F-R10504-D-2:
配置IRF成员编号为2,并将交换机模式更改为IRF模式,配置完后交换机会自动重启。
irf member 2 chassis convert mode irf
配置IRF端口,并将物理端口与逻辑端口绑定。
irf member 2 priority 10 interface range Ten-GigabitEthernet 2/2/0/31 Ten-GigabitEthernet 2/2/0/32 shutdown quit irf-port 2/2 port group interface Ten-GigabitEthernet 2/2/0/31 port group interface Ten-GigabitEthernet 2/2/0/32 quit irf-port-configuration active interface range Ten-GigabitEthernet 2/2/0/31 Ten-GigabitEthernet 2/2/0/32 description IRF-PORT undo shutdown save
重启IRF Slave设备。
reboot
配置BFD MAD:
vlan 4000 port gigabitethernet 1/4/0/48 gigabitethernet 2/4/0/48 # interface vlan-interface 4000 mad bfd enable mad ip address 192.168.40.1 30 member 1 mad ip address 192.168.40.2 30 member 2 # interface gigabitethernet 1/5/0/48 undo stp enable quit interface gigabitethernet 2/5/0/48 undo stp enable quit save
三机IRF配置
配置JS-4F-C5130-A-1
system-view interface range ten-gigabitethernet 1/0/51 to ten-gigabitethernet 1/0/52 shutdown # irf-port 1/1 port group interface ten-gigabitethernet 1/0/51 # irf-port 1/2 port group interface ten-gigabitethernet 1/0/52 # irf-port-configuration active
配置JS-1F-C5130-A-2
irf member 1 renumber 2 # Reboot # interface range ten-gigabitethernet 2/0/51 to ten-gigabitethernet 2/0/52 shutdown # irf-port 1/1 port group interface ten-gigabitethernet 2/0/51 # irf-port 1/2 port group interface ten-gigabitethernet 2/0/52 # save # irf-port-configuration active
配置JS-1F-C5130-A-3
irf member 1 renumber 3 # Reboot # interface range ten-gigabitethernet 2/0/51 to ten-gigabitethernet 2/0/52 shutdown # irf-port 1/1 port group interface ten-gigabitethernet 2/0/51 # irf-port 1/2 port group interface ten-gigabitethernet 2/0/52 # save # irf-port-configuration active
配置BFD MAD
vlan 4003 port gigabitethernet 1/0/47 gigabitethernet 1/0/48 gigabitethernet 2/0/47 gigabitethernet 2/0/48 gigabitethernet 3/0/47 gigabitethernet 3/0/48 # interface vlan-interface 4003 mad bfd enable mad ip address 192.168.40.9 29 member 1 mad ip address 192.168.40.10 29 member 2 mad ip address 192.168.40.11 29 member 3 # interface gigabitethernet 1/0/47 undo stp enable quit interface gigabitethernet 1/0/48 undo stp enable quit interface gigabitethernet 2/0/47 undo stp enable quit interface gigabitethernet 2/0/48 undo stp enable quit interface gigabitethernet 3/0/47 undo stp enable quit interface gigabitethernet 3/0/48 undo stp enable quit
=======Best Practice======
配置JS-1F-C5130-A-1
system-view interface range ten-gigabitethernet 1/0/51 to ten-gigabitethernet 1/0/52 shutdown # irf-port 1/1 port group interface ten-gigabitethernet 1/0/51 port group interface ten-gigabitethernet 1/0/52 # irf-port-configuration active
配置JS-1F-C5130-A-2
irf member 1 renumber 2 # Reboot # interface range ten-gigabitethernet 2/0/51 to ten-gigabitethernet 2/0/52 shutdown # irf-port 2/2 port group interface ten-gigabitethernet 2/0/51 port group interface ten-gigabitethernet 2/0/52 # save # irf-port-configuration active