H3C IRF配置典型案例.docx
H3C IRF配置典型案例H3C IRF配置典型案例 l l l l l l l l l l l l 1. 进入系统模式 切换IRF模式 配置成员编号 配置成员优先级 配置IRF端口 使能BFD MAD检测 使能LACP MAD检测 配置保留端口 手动恢复处于Recovery 状态的设备 重定向到指定的Slave 设备 IRF 显示和维护 配置举例 进入系统模式 2. 切换IRF模式 3. 配置成员编号 注:配置完成员编号后需要重启该设备。 4. 配置成员优先级 IRF2配置前应该将接口手工SHUT;12500系统默认都是SHUT的,95E以下必须手工SHUT 5. 配置IRF端口 1 / 16 IRF2端口配置后应该将接口手工undo shutdown;然后关闭电源,连接IRF线缆,重启,IRF形成。 6. 使能BFD MAD检测 注:此项与弟7项LACP MAD检测只能二选一,一般情况下使用BFD MAD检测。 7. 使能LACP MAD检测 2 / 16 8. 配置保留端口 9. 手动恢复处于Recovery 状态的设备 注:缺省状态下设备会自动恢复,只有Master设备产生故障且无法自动恢复时才进行手动恢复,正常配置中无须配置此项。 10. 重定向到指定的Slave 设备 注:此命令用于配置备用主控板,如: “<系统名-Slave#成员编号/槽位号>”,例如“<Sysname-Slave#1/0>”,正常配置中无须配置此项。 11. IRF 显示和维护 3 / 16 12. 配置举例 一IRF典型配置举例 1. 组网需求 由于网络规模迅速扩大,当前中心交换机转发能力已经不能满足需求,现需要在保护现有投资的基础上将网络转发能力提高一倍,并要求网络易管理、易维护。 2. 组网图 图1-1 IRF典型配置组网图 IRFDevice AXGE1/3/0/1GE1/4/0/1Device B堆叠线缆此链路用于BFD检测XGE2/3/0/1GE2/4/0/13. 配置思路 为了减少IRF形成过程中系统重启的次数,可以在独立运行模式下预配置IRF端口、成员编号、以及成员优先级,配置保存后切换运行模式到IRF模式,可直接与其它设备形成IRF。 4. 配置步骤 (1) 请按组网图所示完成Device A和Device B之间的物理连接,分别上电,分别配置。 # 在Device A上的配置。 4 / 16 登录设备后配置IRF成员编号为1,成员优先级为12,创建IRF端口2,并将它与物理端口Ten-GigabitEthernet3/0/1绑定。 <Sysname> system-view Sysname irf member 1 Sysname irf priority 12 Sysname irf-port 1/2 Sysname-irf-port 2 port group interface ten-gigabitethernet 3/0/1 Sysname-irf-port 2 quit l 将当前配置保存到下次启动配置文件。 Sysname quit <Sysname> save l 将设备的运行模式切换到IRF模式。3069 <Sysname> system-view Sysname chassis convert mode irf The device will switch to IRF mode and reboot. You are recommended to save the current running configuration and specify the configuration file for the next startup. Continue? Y/N:y Do you want to convert the content of the next startup configuration file flash:/startup.cfg to make it available in IRF mode? Y/N:y Please wait. Saving the converted configuration file to the main board succeeded. Slot 1: Saving the converted configuration file succeeded. Now rebooting, please wait. 设备重启后运行在IRF模式。 # 在Device B上的配置。 登录设备后配置IRF成员编号为2,成员优先级为26,创建IRF端口1,并将它与物理端口Ten-GigabitEthernet3/0/1绑定。 <Sysname> system-view Sysname irf member 2 Sysname irf priority 26 Sysname irf-port 2/1 Sysname-irf-port 1 port group interface ten-gigabitethernet 3/0/1 Sysname-irf-port 1 quit l 将当前配置保存到下次启动配置文件。 Sysname quit <Sysname> save l 将设备的运行模式切换到IRF模式。 <Sysname> system-view Sysname chassis convert mode irf The device will switch to IRF mode and reboot. You are recommended to save the current running configuration and specify the configuration file for the next startup. Continue? Y/N:y 5 / 16 Do you want to convert the content of the next startup configuration file flash:/startup.cfg to make it available in IRF mode? Y/N:y Please wait. Saving the converted configuration file to the main board succeeded. Slot 1: Saving the converted configuration file succeeded. Now rebooting, please wait. 设备B重启后与设备A形成IRF。 (2) 配置BFD MAD检测 # 创建VLAN 3,并将Device A上的端口4/0/1和Device B上的端口4/0/1加入VLAN中。 <Sysname> system-view Sysname vlan 3 Sysname-vlan3 port gigabitethernet 1/4/0/1 gigabitethernet 2/4/0/1 Sysname-vlan3 quit # 创建VLAN接口3,并配置MAD IP地址。 Sysname interface vlan-interface 3 Sysname-Vlan-interface3 mad bfd enable Sysname-Vlan-interface3 mad ip add 192.168.2.1 24 member 1 Sysname-Vlan-interface3 mad ip add 192.168.2.2 24 member 2 Sysname-Vlan-interface3 quit 二IRF典型配置举例 1. 组网需求 由于公司人员激增,接入层交换机提供的端口数目已经不能满足PC的接入需求。现需要在保护现有投资的基础上扩展端口接入数量,并要求网络易管理、易维护。 2. 组网图 图1-8 IRF典型配置组网图 6 / 16 配置思路 l Device A提供的接入端口数目已经不能满足网络需求,需要另外增加一台设备Device B。 IRF技术具有管理简便、网络扩展能力强、可靠性高等优点,l 鉴于第二代智能弹性架构所以本例使用IRF技术构建接入层。 l 为了防止万一IRF链路故障导致IRF分裂、网络中存在两个配置冲突的IRF,需要启用MAD检测功能。因为设备的下行没有聚合组网,这里采用BFD MAD检测。 3. 配置步骤 (1) 在Device A和Device B间不连IRF线缆,分别上电,分别配置。 # 在Device A上的配置。 <Sysname> system-view Sysname chassis convert mode irf This command will convert the device to IRF mode and the device will reboot. Are you sure? Y/N: y 设备自动重启来完成模式的切换。重新登录设备后创建设备的IRF-port1/2端口,并将它与物理端口Ten-GigabitEthernet1/3/0/25绑定,完成后保存配置。 <Sysname> system-view Sysname interface ten-gigabitethernet 1/3/0/25 7 / 16 Sysname-Ten-GigabitEthernet1/3/0/25 shutdown Sysname-Ten-GigabitEthernet1/3/0/25 quit Sysname irf-port 1/2 Sysname-irf-port 1/2 port group interface ten-gigabitethernet 1/3/0/25 Sysname-irf-port 1/2 quit Sysname interface ten-gigabitethernet 1/3/0/25 Sysname-Ten-GigabitEthernet1/3/0/25 undo shutdown Sysname-Ten-GigabitEthernet1/3/0/25 save # 在Device B上的配置。 <Sysname> system-view Sysname chassis convert mode irf This command will convert the device to IRF mode and the device will reboot. Are you sure? Y/N: y 设备自动重启来完成模式的切换,重新登录设备后将设备的成员编号修改为2。 <Sysname> system-view Sysname irf member 1 renumber 2 Warning: Renumbering the switch number may result in configuration change or loss. Continue? Y/N:y Sysname quit <Sysname> reboot 设备重启使新的成员编号生效,重新登录设备后创建设备的IRF-port2/1口,并将它与物理端口Ten-GigabitEthernet2/3/0/25绑定,完成后保存配置。 <Sysname> system-view Sysname interface ten-gigabitethernet 2/3/0/25 Sysname-Ten-GigabitEthernet2/3/0/25 shutdown 8 / 16 Sysname-Ten-GigabitEthernet2/3/0/25 quit Sysname irf-port 2/1 Sysname-irf-port 2/1 port group interface ten-gigabitethernet 2/3/0/25 Sysname-irf-port 2/1 quit Sysname interface ten-gigabitethernet 2/3/0/25 Sysname-Ten-GigabitEthernet2/3/0/25 undo shutdown Sysname-Ten-GigabitEthernet2/3/0/25 save (2) 关闭设备电源,将两台设备按照组网图连接IRF线缆,然后全部上电,IRF形成。 (3) 配置BFD MAD检测 # 创建VLAN 3,并将Device A上的端口1/3/0/1和Device B上的端口2/3/0/1加入VLAN中。 <Sysname> system-view Sysname vlan 3 Sysname-vlan3 port gigabitethernet 1/3/0/1 gigabitethernet 2/3/0/1 Sysname-vlan3 quit # 创建VLAN接口3,并配置MAD IP地址。 Sysname interface vlan-interface 3 Sysname-Vlan-interface3 mad bfd enable Sysname-Vlan-interface3 mad ip add 192.168.2.1 24 chassis 1 Sysname-Vlan-interface3 mad ip add 192.168.2.2 24 chassis 2 Sysname-Vlan-interface3 quit 三IRF典型配置举例 1. 组网需求 由于公司人员激增,接入层交换机提供的端口数目已经不能满足PC的接入需求。现需要在 9 / 16 保护现有投资的基础上扩展端口接入数量,并要求网络易管理、易维护。 2. 组网图 图1-2 IRF典型配置组网图 IP networkGE4/0/1GE4/0/2GE1/4/0/2XGE1/3/0/1GE2/4/0/2XGE2/3/0/1Device AIRFDevice B说明:橙色实线表示IRF链路;紫色实线表示专用于LACP检测的链路;黑色实线表示普通以太网链路3. 配置思路 为了减少IRF形成过程中系统重启的次数,可以在独立运行模式下预配置IRF端口、成员编号、以及成员优先级,配置保存后切换运行模式到IRF模式,可直接与其它设备形成IRF。 4. 配置步骤 (1) 请按组网图所示完成Device A和Device B之间的物理连接,分别上电,分别配置。 # 在Device A上的配置。 登录设备后配置IRF成员编号为1,成员优先级为12,创建IRF端口2,并将它与物理端口Ten-GigabitEthernet3/0/1绑定。 <Sysname> system-view Sysname irf member 1 Sysname irf priority 12 Sysname irf-port 2 Sysname-irf-port 2 port group interface ten-gigabitethernet 3/0/1 Sysname-irf-port 2 quit l 将当前配置保存到下次启动配置文件。 Sysname quit <Sysname> save l 将设备的运行模式切换到IRF模式。 <Sysname> system-view Sysname chassis convert mode irf 10 / 16 The device will switch to IRF mode and reboot. You are recommended to save the current running configuration and specify the configuration file for the next startup. Continue? Y/N:y Do you want to convert the content of the next startup configuration file flash:/startup.cfg to make it available in IRF mode? Y/N:y Please wait. Saving the converted configuration file to the main board succeeded. Slot 1: Saving the converted configuration file succeeded. Now rebooting, please wait. 设备重启后运行在IRF模式。 # 在Device B上的配置。 登录设备后配置IRF模式下的成员编号为2,成员优先级为26,创建IRF端口1,并将它与物理端口Ten-GigabitEthernet3/0/1绑定。 <Sysname> system-view Sysname irf member 2 Sysname irf priority 26 Sysname irf-port 1 Sysname-irf-port 1 port group interface ten-gigabitethernet 3/0/1 Sysname-irf-port 1 quit l 将当前配置保存到下次启动配置文件。 Sysname quit <Sysname> save l 将设备的运行模式切换到IRF模式。 <Sysname> system-view Sysname chassis convert mode irf The device will switch to IRF mode and reboot. You are recommended to save the current running configuration and specify the configuration file for the next startup. Continue? Y/N:y Do you want to convert the content of the next startup configuration file flash:/startup.cfg to make it available in IRF mode? Y/N:y Please wait. Saving the converted configuration file to the main board succeeded. Slot 1: Saving the converted configuration file succeeded. Now rebooting, please wait. 设备B重启后与设备A形成IRF模式。 (2) 配置LACP MAD检测 # 创建一个动态聚合接口,并使能LACP MAD检测功能。 <Sysname> system-view Sysname interface bridge-aggregation 2 Sysname-Bridge-Aggregation2 link-aggregation mode dynamic Sysname-Bridge-Aggregation2 mad enable Sysname-Bridge-Aggregation2 quit 11 / 16 # 在聚合接口中添加成员端口1/4/0/2和2/4/0/2,专用于Device A和Device B实现LACP MAD检测。 Sysname interface gigabitethernet 1/4/0/2 Sysname-GigabitEthernet1/4/0/2 port link-aggregation group 2 Sysname-GigabitEthernet1/4/0/2 quit Sysname interface gigabitethernet 2/4/0/2 Sysname-GigabitEthernet2/4/0/2 port link-aggregation group 2 (3) 中间设备Device C的配置 Device C作为一台中间设备需要支持LACP功能,用来转发、处理LACP协议报文,协助Device A和Device B进行多Active检测。从节约成本的角度考虑,使用一台支持LACP功能的交换机即可。 # 创建一个动态聚合接口。 <Sysname> system-view Sysname interface bridge-aggregation 2 Sysname-Bridge-Aggregation2 link-aggregation mode dynamic Sysname-Bridge-Aggregation2 quit # 在聚合接口中添加成员端口GigabitEthernet4/0/1和GigabitEthernet4/0/2,用于帮助LACP MAD检测。 Sysname interface gigabitethernet 4/0/1 Sysname-GigabitEthernet4/0/1 port link-aggregation group 2 Sysname-GigabitEthernet4/0/1 quit Sysname interface gigabitethernet 4/0/2 Sysname-GigabitEthernet4/0/2 port link-aggregation group 2 四IRF典型配置举例 1. 组网需求 由于网络规模迅速扩大,当前中心交换机转发能力已经不能满足需求,现需要在保护现有投资的基础上将网络转发能力提高一倍,并要求网络易管理、易维护。 2. 组网图 图1-9 IRF典型配置组网图 12 / 16 3. 配置思路 l Device A处于局域网的汇聚层,为了将汇聚层的转发能力提高一倍,需要另外增加一台设备Device B。 l 鉴于第二代智能弹性架构IRF技术具有管理简便、网络扩展能力强、可靠性高等优点,所以本例使用IRF技术构建网络汇聚层,接入层设备通过聚合双链路上行。 l 为了防止万一IRF链路故障导致IRF分裂、网络中存在两个配置冲突的IRF,需要启用MAD检测功能。因为接入层设备采用了聚合方式上行,我们采用LACP MAD检测方式来监测IRF的状态。 4. 配置步骤 (1) 在Device A和Device B间不连IRF线缆,分别上电,分别配置 # 在Device A上的配置。 <Sysname> system-view Sysname chassis convert mode irf 13 / 16 This command will convert the device to IRF mode and the device will reboot. Are you sure? Y/N: y 设备自动重启来完成模式的切换。重新登录设备后创建设备的IRF-port2端口,并将它与物理端口Ten-GigabitEthernet1/3/0/25绑定,完成后保存配置。 <Sysname> system-view Sysname interface ten-gigabitethernet 1/3/0/25 Sysname-Ten-GigabitEthernet1/3/0/25 shutdown Sysname-Ten-GigabitEthernet1/3/0/25 quit Sysname irf-port 1/2 Sysname-irf-port 1/2 port group interface ten-gigabitethernet 1/3/0/25 Sysname-irf-port 1/2 quit Sysname interface ten-gigabitethernet 1/3/0/25 Sysname-Ten-GigabitEthernet1/3/0/25 undo shutdown Sysname-Ten-GigabitEthernet1/3/0/25 save # 在Device B上的配置。 <Sysname> system-view Sysname chassis convert mode irf This command will convert the device to IRF mode and the device will reboot. Are you sure? Y/N: y 设备自动重启来完成模式的切换,重新登录设备后将设备的成员编号修改为2。 <Sysname> system-view Sysname irf member 1 renumber 2 Warning: Renumbering the switch number may result in configuration change or loss. Continue? Y/N:y Sysname quit 14 / 16 <Sysname> reboot 设备重启使新的成员编号生效,重新登录设备后创建设备的IRF-port1口,并将它与物理端口Ten-GigabitEthernet2/3/0/25绑定,完成后保存配置。 <Sysname> system-view Sysname interface ten-gigabitethernet 2/3/0/25 Sysname-Ten-GigabitEthernet2/3/0/25 shutdown Sysname-Ten-GigabitEthernet2/3/0/25 quit Sysname irf-port 2/1 Sysname-irf-port 2/1 port group interface ten-gigabitethernet 2/3/0/25 Sysname-irf-port 2/1 quit Sysname interface ten-gigabitethernet 2/3/0/25 Sysname-Ten-GigabitEthernet2/3/0/25 undo shutdown Sysname-Ten-GigabitEthernet2/3/0/25 save (2) 关闭设备电源,将两台设备按照组网图连接IRF线缆,然后全部上电,IRF形成。 (3) 配置LACP MAD检测 # 创建一个动态聚合端口,并使能LACP MAD检测功能。 <Sysname> system-view Sysname interface bridge-aggregation 2 Sysname-Bridge-Aggregation2 link-aggregation mode dynamic Sysname-Bridge-Aggregation2 mad enable Sysname-Bridge-Aggregation2 quit # 在聚合端口中添加成员端口GigabitEthernet1/3/0/2和GigabitEthernet2/3/0/2,专用于Device A和Device B实现LACP MAD检测。 Sysname interface gigabitethernet 1/3/0/2 Sysname-GigabitEthernet1/3/0/2 port link-aggregation group 2 15 / 16 Sysname-GigabitEthernet1/3/0/2 quit Sysname interface gigabitethernet 2/3/0/2 Sysname-GigabitEthernet2/3/0/2 port link-aggregation group 2 (4) 中间设备的配置 # 创建一个动态聚合端口。 <Sysname> system-view Sysname interface bridge-aggregation 2 Sysname-Bridge-Aggregation2 link-aggregation mode dynamic Sysname-Bridge-Aggregation2 quit # 在聚合端口中添加成员端口GigabitEthernet3/0/1和GigabitEthernet3/0/2,用于帮助LACP MAD检测。 Sysname interface gigabitethernet 3/0/1 Sysname-GigabitEthernet3/0/1 port link-aggregation group 2 Sysname-GigabitEthernet3/0/1 quit Sysname interface gigabitethernet 3/0/2 Sysname-GigabitEthernet3/0/2 port link-aggregation group 2 16 / 16