51CTO下载-H3C IRF配置葵花宝典.doc_第1页
51CTO下载-H3C IRF配置葵花宝典.doc_第2页
51CTO下载-H3C IRF配置葵花宝典.doc_第3页
51CTO下载-H3C IRF配置葵花宝典.doc_第4页
51CTO下载-H3C IRF配置葵花宝典.doc_第5页
已阅读5页,还剩11页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

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

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论