H3CIRF堆叠典型配置举例
H3C S5600系列交换机IRF堆叠的配置
H3C S5600系列交换机IRF堆叠的配置2009年11月14日星期六下午 3:09一、组网需求:配置4台交换机的Unit ID、Unit name、Fabric name,使它们相互连接可以构成Fabric。
具体需求如下:1. 4台交换机SwitchA、B、C、D的Unit ID依次分别为1、2、3、4;2. 4台交换机SwitchA、B、C、D的Unit name分别是Unit1、Unit2、Unit3、Unit4;Fabric name 为hello。
二、组网图:三、配置步骤:Switch A上的配置:1. 配置Unit ID为1system-view[Switch] change unit-id 1 to 12. 配置Unit name为Unit1[Switch] set unit 1 name Unit13. 配置Fabric name为hello[Switch] sysname helloSwitch B上的配置:4. 配置Unit ID为2system-view[Switch] change unit-id 1 to 25. 配置Unit name为Unit2[Switch] set unit 2 name Unit26. 配置Fabric name为hello[Switch] sysname helloSwitch C和Switch D上的配置与上述配置相似,这里不再赘述。
四、配置关键点:1. 堆叠的成员交换机需要保证具有相同的软件版本。
在堆叠连接时,必须保证线缆连接正确。
2. 该配置在堆叠进行前进行,如果在同一个Fabric内存在相同的Unit ID,FTM模块将对相同编号的设备进行自动编号操作。
3. 在Fabric正常工作时,用户可以将Fabric视作一台独立设备进行配置。
由于Fabric是由多台设备组成,会存在因设备间数据传输或同步执行程序造成的繁忙状态。
如果用户在进行配置时收到Fabric繁忙的提示“Fabric system is busy, please try later...”,表示Fabric 没有正常执行用户的操作,这时需要用户对之前操作的结果进行验证或重新进行配置。
H3C IRF堆叠典型配置举例
典型配置举例一IRF检测方式)1.1.1 IRF典型配置举例(LACP MAD 1. 组网需求现的接入需求。
由于公司人员激增,接入层交换机提供的端口数目已经不能满足PC 需要在保护现有投资的基础上扩展端口接入数量,并要求网络易管理、易维护。
组网图2.典型配置组网图(LACP MAD1-13 IRF检测方式)图3. 配置思路Device A提供的接入端口数目已经不能满足网络需求,需要另外增加一台设备?Device B。
(本文以两台设备组成IRF为例,在实际组网中可以根据需要,将多台设备组成IRF,配置思路和配置步骤与本例类似)鉴于第二代智能弹性架构IRF技术具有管理简便、网络扩展能力强、可靠性高等?优点,所以本例使用IRF技术构建接入层(即在Device A和Device B上配置IRF功能)。
为了防止万一IRF链路故障导致IRF分裂、网络中存在两个配置冲突的IRF,需?要启用MAD 检测功能。
因为接入层设备较多,我们采用LACP MAD检测。
4. 配置步骤为便于区分,下文配置中假设IRF形成前Device A的系统名称为DeviceA,Device B的系统名称为Device B;中间设备Device C的系统名称为DeviceC。
(1)配置设备编号# Device A保留缺省编号为1,不需要进行配置。
2上将设备的成员编号修改为Device B在#<DeviceB> system-view[DeviceB] irf member 1 renumber 2Warning: Renumbering the switch number may result in configuration change or loss. Continue? [Y/N]:y [DeviceB](2)将两台设备断电后,按图1-13所示连接IRF链路,然后将两台设备上电。
# 在Device A上创建设备的IRF端口2,与物理端口Ten-GigabitEthernet1/0/25绑定,并保存配置。
H3C交换机IRF典型配置指导
目录1 IRF典型配置举例 ······························································································································· 1-11.1 简介 ··················································································································································· 1-11.2 使用限制············································································································································ 1-11.2.1 硬件限制 ································································································································· 1-11.2.2 软件限制 ································································································································· 1-11.2.3 单板使用限制 ·························································································································· 1-11.2.4 IRF端口连接限制 ···················································································································· 1-11.3 选择MAD检测方式····························································································································· 1-21.4 使用四台设备搭建IRF典型配置举例(LACP MAD检测方式) ························································· 1-21.4.1 适用产品和版本 ······················································································································ 1-21.4.2 组网需求 ································································································································· 1-21.4.3 搭建IRF的配置························································································································ 1-31.4.4 LACP MAD配置 ······················································································································ 1-81.4.5 业务配置 ······························································································································· 1-101.4.6 验证配置 ······························································································································· 1-141.4.7 配置文件 ······························································································································· 1-161.5 使用四台设备搭建IRF典型配置举例(BFD MAD检测方式)·························································· 1-211.5.1 适用产品和版本 ···················································································································· 1-211.5.2 组网需求 ······························································································································· 1-211.5.3 搭建IRF的配置······················································································································ 1-221.5.4 BFD MAD配置 ······················································································································ 1-261.5.5 业务配置 ······························································································································· 1-281.5.6 验证配置 ······························································································································· 1-331.5.7 配置文件 ······························································································································· 1-351 IRF典型配置举例本手册中的举例仅适用于S10500系列交换机。
vrrpmstpIRF的配置全解
IRF的堆叠(V5版系统)对于多台设备,可通过虚拟化,堆叠成一台设备,可以实现集中化管理,不同域之间的irf 还可以相互堆叠,也大大提高了设备的处理能力。
IRF的Master选举要根据设备优先级和系统运行时间成员号大小mac地址大小来选举。
组网:两台h3c 5800要求:通过irf把两台设备堆叠成一台,成员1的优先级为10 成员2的优先级为5IRF1配置#sysname IRF#系统视图下irf domain 10 (指定irf的域号,同一域号下属于同一组堆叠设备,也可以不同组之间堆叠)irf member 1 priority 10 (1-32,数值越高优先级越高,优先成为master)#interface Ten-GigabitEthernet 1/0/27(进入堆叠的端口)Shutdown(关闭)interface Ten-GigabitEthernet 1/0/28Shutdown#irf-port 1/1(进入IRF堆叠端口进行配置)port group interface Ten-GigabitEthernet 1/0/27port group interface Ten-GigabitEthernet 1/0/28#interface Ten-GigabitEthernet 1/0/27undo shutdown(激活端口)interface Ten-GigabitEthernet 1/0/28undo shutdownsaveirf-port-configuration active (激活irf的配置)IRF 2配置#系统视图下irf member 1 renumber 2(修改irf成员号)SaveReboot(保存并重启后修改的成员号生效可以display current-configuration 查看当前配置可以看到端口号为原来的GigabitEthernet 1/0/1变为GigabitEthernet 2/0/1)#irf domain 10 (指定irf的域号,同一域号下属于同一组堆叠设备,也可以不同组之间堆叠)irf member 2 priority 5 (1-32,数值越高优先级越高,优先成为master)#interface Ten-GigabitEthernet 1/0/27(进入堆叠的端口)Shutdown(关闭)interface Ten-GigabitEthernet 1/0/28Shutdown#irf-port 1/1(进入IRF堆叠端口进行配置)port group interface Ten-GigabitEthernet 1/0/27port group interface Ten-GigabitEthernet 1/0/28#interface Ten-GigabitEthernet 1/0/27Un shut(激活端口)interface Ten-GigabitEthernet 1/0/28Un shutSave(此时这台作为优先级较低的设备务必要保存配置后再激活irf否则经过选举后重启将清空配置)irf-port-configuration active (激活irf的配置)可以通过查看配置同时可以看到两台机器的端口或者测试:display irf topologydisplay irf configuration可以看到IRF配置成功。
H3C交换机IRF堆叠做MQC引流 IPS
undo port trunk permit vlan 1
port trunk permit vlan 100 to 102 901 to 906
stp disable
packet-filter 4000 outbound
mac-address mac-learning disable
traffic classifier s1 operator and
if-match acl 3002
if-match destination-mac 3c8c-405d-8fd1
traffic classifier s0 operator and
if-match acl 3001
if-match destination-mac 3c8c-405d-8fd1
acl number 3003
rule 0 permit ip destination 0.0.0.0 255.255.255.254
acl number 3004
rule 0 permit ip destination 0.0.0.1 255.255.255.254
#
acl number 4000
#
interface GigabitEthernet1/3/0/1
port link-mode bridge
description to网闸-1
port access vlan 905
qos apply policy in inbound
#
interface GigabitEthernet1/3/0/4
undo port trunk permit vlan 1
port trunk permit vlan 100 to 102 901 to 906
二层以太网链路聚合IRF典型配置举例(H3C)
二层以太网链路聚合IRF典型配置举例(H3C)网工圈网络工程师阿龙圈内最早的公益公众号,本号已认证!学网络关注我一个就够了!(关注近5w )关注听说99%的网工都来这里充电吖1 简介本文档介绍以太网链路聚合特性的配置举例。
2 配置前提本文档中的配置均是在实验室环境下进行的配置和验证,配置前设备的所有参数均采用出厂时的缺省配置。
如果您已经对设备进行了配置,为了保证配置效果,请确认现有配置和以下举例中的配置不冲突。
本文档假设您已了解以太网链路聚合特性。
3 二层以太网链路聚合配合IRF典型配置举例3.1 组网需求如图2所示,接入层和汇聚层都有两台设备,现要求使用链路聚合特性和IRF特性实现以下需求:由于公司人员不断增加,要求接入层具有易管理能力和强扩展能力,可以提供更多的端口来满足PC的接入需求。
由于接入层的流量增加,要求增强接入层到汇聚层的链路具有较高可靠性,且可实现流量的负载分担。
图2 以太网链路聚合配置IRF配置组网图3.2 配置思路要使接入层具有易管理能力和强扩展能力,可通过配置IRF功能,轻松扩展接入层端口数量、带宽。
为了提高链路可靠性,可通过配置链路聚合配合IRF功能实现,每台接入层设备双上行连到汇聚层上,并且将四条上行链路进行聚合,当某个成员设备离开IRF,其它成员设备上的链路仍能收发报文,从而提高了链路的可靠性。
可以在汇聚层IRF和接入层IRF上同时开启LACP MAD功能,使两个IRF相互作为中间设备,完成各自的LACP MAD检测。
以快速排查IRF分裂原因并及时恢复成员设备IRF状态。
3.3 配置注意事项IRF物理端口必须工作在二层模式下,才能与IRF端口进行绑定。
与同一个IRF端口绑定的多个IRF物理端口必须工作在相同模式。
IRF中成员设备间相连的IRF物理端口必须配置为同一种工作模式配置聚合组的成员端口过程中,建议配置顺序:在端口视图下使用display this命令查看端口上是否存在属性类配置(包括端口隔离配置、QinQ配置、VLAN配置、VLAN映射),如果有这类配置,请使用对应的undo命令删除这些配置,使端口保持在缺省属性类配置状态,然后再把端口加入到新创建的聚合组内。
H3C IRF典型配置举例
5.2 使用版本 ············································································································································· 20 5.3 搭建IRF的配置 ··································································································································· 20
H3C S5830V2&S5820V2 IRF 配置举例
Copyright © 2015 杭州华三通信技术有限公司 版权所有,保留一切权利。 非经本公司书面许可,任何单位和个人不得擅自摘抄、中的信息可能变动,恕不另行通知。
目录
1 简介 ······················································································································································ 1 2 配置前提 ··············································································································································· 1 3 使用限制 ··············································································································································· 1
H3C交换机IRF配置指导
[H3C -irf-port 2/1]绑定后出现reboot重启提示,Y跳过继续
[H3C -irf-port 2/1]quit #完成后退出配置窗口,继续
激活irf端口配置,此步骤也是必须得,记得在激活之前保存配置,此时第二台将自动重启。
二、还有就是好几台设备之间的堆叠,如下图所示:
配置方法和上面基本差不多,只是需要注意接口irf-port名称的定义,需严格按照图上所显示的名称来配置,否则irf将无法生效。
图中:1/2和2/1为配置里面的虚拟IRF接口号.
将交换机同一模块的第一个堆叠口与创建的虚接口进行绑定
[H3C -irf-port 1/2] port group interface Ten-GigabitEthernet1/0/51mode normal
[H3C -irf-port 1/2]绑定后出现reboot重启提示,Y跳过继续
[H3C -irf-port 1/2]quit #完成后退出配置窗口,继续
undo shut
#
interface Ten-GigabitEthernet1/0/30
undo shut
#
Save
#
Irf-port-configuration active //激活irf端口配置
在配置第二台设备之前就可以按照预先规划的接口将两台设备互联起来,等两台IRF端口配置都激活后备机会自动重启,所以保存配置也很关键。
#
irf-port 2/1
port group interface Ten-GigabitEthernet2/0/51mode normal
H3C交换机堆叠配置
#关闭堆叠端口
irf-port 1/1 #创建IRF端口组1/1 port group interface Ten-GigabitEthernet 1/0/1
irf-port 1/2 port group interface Ten-GigabitEthernet 1/0/2
#将端口1/0/1添加到IRF端口组1/1
Switch1 irf member 1 priority 32
H3C交换机堆叠配置 #将1号交换机IRF优先级调整至最高32
interface Ten-GigabitEthernet 1/0/1 shutdown interface Ten-GigabitEthernet 1/0/2 shutdown
save # 这里记得要保存,激活IRF后交换机会自动重启 irf-port-configuration active BFD检测 vlan 4000 interface vlan 4000 description ==Bfd-Mad-Detect== mad bfd1.1.1.1 255.255.255.252 member 1 mad ip address 1.1.1.2 255.255.255.252 member 2
#激活IRF端口配置 #修改member号为2
save reboot
# 保存重启交换机,接口编号会改变
interface Ten-GigabitEthernet 2/0/1 shutdown interface Ten-GigabitEthernet 2/0/2 shutdown
irf-port 2/1 port group interface Ten-GigabitEthernet 2/0/1
irfmember1priority32将1号交换机irf优先级调整至最高32interfacetengigabitethernet101关闭堆叠端口shutdowninterfacetengigabitethernet102shutdownirfport11创建irf端口组11portgroupinterfacetengigabitethernet101将端口101添加到irf端口组11irfport12portgroupinterfacetengigabitethernet102interfacetengigabitethernet101开启堆叠端口undoshutdowninterfacetengigabitethernet102undoshutdownirfportconfigurationactive激活irf端口配置
H3C交换机IRF堆叠做MQC引流 IPS
port link-type trunk
undo port trunk permit vlan 1
port trunk permit vlan 100 to 102 901 to 906
stp disable
mac-address mac-learning disable
port link-type trunk
undo port trunk permit vlan 1
port trunk permit vlan 100 to 102 901 to 906
stp disable
packet-filter 4000 outbound
mac-address mac-learning disable
traffic classifier s1 operator and
if-match acl 3002
if-match destination-mac 3c8c-405d-8fd1
traffic classifier s0 operator and
if-match acl 3001
if-match destination-mac 3c8c-405d-8fd1
#
interface GigabitEthernet2/3/0/4
port link-mode bridge
description to专线业务接入区FW-2
port access vlan 904
qos apply policy in inbound
#
interface GigabitEthernet2/3/0/5
stp disable
packet-filter 4000 outbound
H3C IRF堆叠典型配置举例
一IRF典型配置举例1.1.1 IRF典型配置举例(LACP MAD检测方式)1. 组网需求由于公司人员激增,接入层交换机提供的端口数目已经不能满足PC的接入需求。
现需要在保护现有投资的基础上扩展端口接入数量,并要求网络易管理、易维护。
2. 组网图图1-13 IRF典型配置组网图(LACP MAD检测方式)3. 配置思路●Device A提供的接入端口数目已经不能满足网络需求,需要另外增加一台设备Device B。
(本文以两台设备组成IRF为例,在实际组网中可以根据需要,将多台设备组成IRF,配置思路和配置步骤与本例类似)●鉴于第二代智能弹性架构IRF技术具有管理简便、网络扩展能力强、可靠性高等优点,所以本例使用IRF技术构建接入层(即在Device A和Device B上配置IRF功能)。
●为了防止万一IRF链路故障导致IRF分裂、网络中存在两个配置冲突的IRF,需要启用MAD检测功能。
因为接入层设备较多,我们采用LACP MAD检测。
4. 配置步骤为便于区分,下文配置中假设IRF形成前Device A的系统名称为DeviceA,Device B的系统名称为Device B;中间设备Device C的系统名称为DeviceC。
(1)配置设备编号# Device A保留缺省编号为1,不需要进行配置。
# 在Device B上将设备的成员编号修改为2。
<DeviceB> system-view[DeviceB] irf member 1 renumber 2Warning: Renumbering the switch number may result in configuration change or loss. Continue? [Y/N]:y [DeviceB](2)将两台设备断电后,按图1-13所示连接IRF链路,然后将两台设备上电。
# 在Device A上创建设备的IRF端口2,与物理端口Ten-GigabitEthernet1/0/25绑定,并保存配置。
H3C交换机配置堆叠(IRF)
H3C交换机配置堆叠(IRF)今年遇到过⼏次这样的配置需求,这⾥加以总结记录⼀下。
以H3C S12500系列以及S5100系列交换机为例,配置的步骤⼤致相同,只是个别命令的写法可能稍有区别。
需求举例:两台H3C交换机配置IRF,交换机A的万兆接⼝Ti1/0/47、Ti1/0/48⽤于互联链路,Ti1/0/46⽤于BFD(分裂检测)链路。
交换机B同样以47、48、46为例。
BFD(分裂检测)就是在IRF失效的时候会主动down掉⼀台交换机,防⽌出现双活的现象。
配置交换机SW-A<Sysname> system-view[Sysname] irf member 1Info: Member ID change will take effect after the switch reboots and operates in IRF mode.[Sysname] irf priority 32[Sysname] interface range Ten-GigabitEthernet 1/0/47 to Ten-GigabitEthernet 1/0/48[Sysname-Ten-GigabitEthernet] shutdown[Sysname-Ten-GigabitEthernet] quit[Sysname] irf-port 2[Sysname-irf-port 2] port group interface Ten-GigabitEthernet 1/0/47[Sysname-irf-port 2] port group interface Ten-GigabitEthernet 1/0/48[Sysname-irf-port 2] quit[Sysname] interface range Ten-GigabitEthernet 1/0/47 to Ten-GigabitEthernet 1/0/48[Sysname-Ten-GigabitEthernet] undo shutdown[Sysname-Ten-GigabitEthernet] quit[Sysname] save # 保存配置[Y/N]:y# 将设备的运⾏模式切换到 IRF 模式:[Sysname] chassis convert mode irf[Y/N]:yNow rebooting, please wait... # 等待设备重启重启后,交换机SW-A组成了只有⼀台成员设备的 IRF;配置交换机SW-B<Sysname> system-view[Sysname] irf member 2Info: Member ID change will take effect after the switch reboots and operates in IRF mode.[Sysname] irf priority 1[Sysname] interface range Ten-GigabitEthernet 1/0/47 to Ten-GigabitEthernet 1/0/48[Sysname-Ten-GigabitEthernet] shutdown[Sysname-Ten-GigabitEthernet] quit[Sysname] irf-port 1[Sysname-irf-port 1] port group interface Ten-GigabitEthernet 1/0/47[Sysname-irf-port 1] port group interface Ten-GigabitEthernet 1/0/48[Sysname-irf-port 1] quit[Sysname] interface range Ten-GigabitEthernet 1/0/47 to Ten-GigabitEthernet 1/0/48[Sysname-Ten-GigabitEthernet] undo shutdown[Sysname-Ten-GigabitEthernet] quit[Sysname] save # 保存配置[Y/N]:y# 将设备的运⾏模式切换到 IRF 模式:<Sysname> system-view[Sysname] chassis convert mode irf[Y/N]:yNow rebooting, please wait... # 等待设备重启设备 B 重启后与设备 A 形成 IRF;配置 BFD MAD 检测<Sysname> system-view[Sysname] vlan 2021[Sysname-vlan2021] description MAD_for_IRF[Sysname-vlan2021] port Ten-GigabitEthernet 1/1/0/46 Ten-GigabitEthernet 2/1/0/46[Sysname-vlan2021] quit# 创建 VLAN 接⼝2021,并配置 MAD IP 地址[Sysname] interface vlan-interface 2021[Sysname-Vlan-interface2021] mad bfd enable[Sysname-Vlan-interface2021] mad ip address 10.50.50.130 member 1[Sysname-Vlan-interface2021] mad ip address 10.50.50.230 member 2[Sysname-Vlan-interface2021] quit# 因为 BFD MAD 和⽣成树功能互斥,所以在检测链路 Ten-GigabitEthernet 1/1/0/46和 Ten-GigabitEthernet 2/1/0/46上关闭⽣成树协议。
H3C交换机IRF配置指导
#
Reboot
重启,重启之后设备
#
in terface Ten-GigabitEthernet2/0/29
shut
#
in terface Ten-GigabitEthernet2/0/30
shut
#
irf-port 2/2
port group in terface Ten-GigabitEther net2/0/29
port group in terface Ten-GigabitEther net2/0/30
此处必须写为
如果还有第三台的话,则可以新增
#
in terface Ten-GigabitEthernet2/0/29
undo shut
#
in terface Ten-GigabitEthernet2/0/30
undo shut
#
in terface Ten-GigabitEthernet1/0/30
undo shut
#
Save
#
Irf-port-configuration active//激活irf端口配置
在配置第二台设备之前就可以按照预先规划的接口将两台设备互联起来,等两台
IRF
2.
irf member1remember 2
#
irf-port 1/1
port group in terface Ten-GigabitEthernet1/0/29 mode enhan ced
port group in terface Ten-GigabitEthernet1/0/30 mode enhan ced
#
02-IRF配置举例-S12500_IRF
H3C S12500 IRF典型配置举例1 简介IRF配置举例。
IRF(Intelligent Resilient Framework,智能弹性架构)是 H3C 自主研发的软件虚拟化技术,它的核心思想是将多台设备通过物理 IRF端口连接在一起,进行必要的配置后,虚拟化成一台“虚拟设备”,通过该“虚拟设备”来实现多台设备的协同工作、统一管理和不间断维护。
为了便于描述,本文把这个虚拟化形成的设备称为 IRF。
2 配置前提本文档中的配置均是在实验室环境下进行的配置和验证,配置前设备的所有参数均采用出厂时的缺省配置。
如果您已经对设备进行了配置,为了保证配置效果,请确认现有配置和以下举例中的配置不冲突。
请确保成员设备间的 IRF物理连线正确连接,与配置组网图保持一致。
本文假设您已了解 IRF特性。
3 使用限制1. IRF形成条件在配置 IRF前,S12500必须满足以下条件,否则不能形成 IRF:• S12500只能与 S12500组成 IRF,不能与其他产品组成 IRF;•组成 IRF的设备上主控板类型必须相同,不同的主控板类型不能形成 IRF;•组成 IRF的设备的系统工作模式必须相同;•组成 IRF的设备主机软件版本必须相同;•组成 IRF的设备上 acl hardware-mode ipv6命令必须配置一致,即都为 acl hardware-mode ipv6 enable或都为 acl hardware-mode ipv6 disable;•组成 IRF的设备上 vpn popgo命令必须配置一致,即都为 vpn popgo或都为 undo vpn popgo。
2. IRF连接限制本设备上与IRF-Port1绑定的 IRF物理端口只能和邻居成员设备 IRF-Port2口上绑定的IRF物理端口相连,本设备上与 IRF-Port2口绑定的IRF物理端口只能和邻居成员设备 IRF-Port1口上绑定的 IRF物理端口相连,如表 1所示。
H3C堆叠配置实例
H3C交换机堆叠设置实例一、主交换机:1.进入配置模式:<H3C>system-view2.指定管理VLAN,默认管理VLAN为VLAN1如果要指定管理VLAN为100:[H3C]vlan 100[H3C]management-vlan 1003.进入堆叠端口[H3C]intface g1/1/2激活端口[H3C-GigabitEthernet1/1/2]undo shutdown将端口配置为中继模式[H3C-GigabitEthernet1/1/2]port link-type trunk配置允许管理VLAN通过[H3C-GigabitEthernet1/1/2]port trunk permit vlan 1004.在配置模式下,配置堆叠使用的IP地址范围[H3C]stacking ip-pool 192.168.1.1 2 255.255.240.05.建立堆叠[H3C]stacking enable6.进入连接光纤的端口,并配置为中继,设置允许通过的VLAN[H3C]intface g1/2/2[H3C-GigabitEthernet1/2/2]undo shutdown[H3C-GigabitEthernet1/2/2]port link-type trunk[H3C-GigabitEthernet1/2/2]port trunk permit vlan 允许的VLAN串连交换机设置1.进入配置模式:<H3C>system-view2.指定管理VLAN,默认管理VLAN为VLAN1如果要指定管理VLAN为100[H3C]management-vlan 1003.进入堆叠端口[H3C]intface g1/1/2激活端口[H3C-GigabitEthernet1/1/2]undo shutdown将端口配置为中继模式[H3C-GigabitEthernet1/1/2]port link-type trunk配置允许管理VLAN通过[H3C-GigabitEthernet1/1/2]port trunk permit vlan 1004.建立堆叠[H3C]stacking enable这样两台交换机堆叠就设置完成,如果还需要增加堆叠,则需要更改堆叠数:[H3C]stacking ip-pool 192.168.1.1 X 255.255.240.0同时串连交换机设置不变。
H3C_S5500-EI_IRF及以太口堆叠的典型配置
H3C S5500-EI IRF堆叠的典型配置一、组网需求:配置两台S5500-EI交换机进行链型堆叠,并分别配置成员编号为1、2线缆连接方式如图所示二、组网图:三、配置步骤:(1) 两台设备不连堆叠线缆,分别上电,分别配置# 在Switch 1上的配置。
#[Switch-01]dis versionH3C Comware Platform SoftwareComware Software, Version 5.20, Release 2202 ------查看版本#[Switch-01]irf member 1 renumber 1Warning: Renumbering the switch number may result in configuration change or loss. Continue?(Y/N)y#[Switch-01]irf member 1 irf-port 1 port 1#[Switch-01]irf member 1 irf-port 1 port 2# 在Switch 1上的配置。
#[Switch-01]dis versionH3C Comware Platform SoftwareComware Software, Version 5.20, Release 2202 ------查看版本#[Switch-01]irf member 1 renumber 1Warning: Renumbering the switch number may result in configuration change or loss. Continue?(Y/N)y#[Switch-01]irf member 1 irf-port 2 port 3#[Switch-01]irf member 1 irf-port 2 port 4(2) 关闭三台设备电源,将三台设备按照组网图连接堆叠电缆,然后全部上电,堆叠形成。
H3C 交换机 配置堆叠irf
interface ten-g 1/0/25
undo shutdown
save
在视图模式下
irf-port-configuration active激活端口
irf member member-id priority priority值 配置IRF设备优先级
irf member member-id description text 描述IRF设备成员
irf-port load-sharing mode {d-ip|d-mac|s-ip|s-mac}全局或者IRF端口模式,IRF端口负载分担模式
irf mac-address persistent 【timer|always】配置IRF桥mac保留时间
irf auto-update enable 使能IRF系统启动文件的自动家在功能
irf link-delay interval配置IRF链路down延迟上报时间
LACP MAD检测.....................................
H3C 交换机 配置堆叠stack
系统视图
display stack
display stack members
stack ip-pool 192.168.0.1 24
stack role master
stack stack-port 1 port ethernet 0/1/0
stack enable 建立堆叠
用户视图
stack switch-to 2(member-id)切换到从设备2上。
IRF配置指导
irf domain domain-id 配置IRF域编号
H3C交换机堆叠配置
H3C交换机堆叠配置配置过程中出现的问题:现在⽤户需要对所有存在两台交换机以上机柜中的交换机进⾏堆叠,最多堆叠数有4台H3C 交换机,同型号。
其IP地址信息如下图:交换机管理ip :10.58.9.3 。
⽤此管理ip 登陆。
以下是我从⽹上抄录的配置命令,请杨⼯指导。
烦请做⼀个案例,谢谢!⼀、主交换机:1.进⼊配置模式:system-view2.指定管理VLAN,默认管理VLAN为VLAN1如果要指定管理VLAN为100:[H3C]vlan 100[H3C]management-vlan 1003.进⼊堆叠端⼝[H3C]intface g1/1/2激活端⼝[H3C-GigabitEthernet1/1/2]undo shutdown将端⼝配置为中继模式[H3C-GigabitEthernet1/1/2]port link-type trunk配置允许管理VLAN通过[H3C-GigabitEthernet1/1/2]port trunk permit vlan 1004.在配置模式下,配置堆叠使⽤的IP地址范围[H3C]stacking ip-pool 192.168.1.1 2 255.255.240.05.建⽴堆叠[H3C]stacking enable6.进⼊连接光纤的端⼝,并配置为中继,设置允许通过的VLAN[H3C]intface g1/2/2[H3C-GigabitEthernet1/2/2]undo shutdown[H3C-GigabitEthernet1/2/2]port link-type trunk[H3C-GigabitEthernet1/2/2]port trunk permit vlan 允许的VLAN串连交换机设置1.进⼊配置模式:system-view2.指定管理VLAN,默认管理VLAN为VLAN1如果要指定管理VLAN为100[H3C]management-vlan 1003.进⼊堆叠端⼝[H3C]intface g1/1/2激活端⼝[H3C-GigabitEthernet1/1/2]undo shutdown将端⼝配置为中继模式[H3C-GigabitEthernet1/1/2]port link-type trunk配置允许管理VLAN通过[H3C-GigabitEthernet1/1/2]port trunk permit vlan 1004.建⽴堆叠[H3C]stacking enable这样两台交换机堆叠就设置完成,如果还需要增加堆叠,则需要更改堆叠数:[H3C]stacking ip-pool 192.168.1.1 X 255.255.240.0同时串连交换机设置不变。
H3C-IRF配置典型案例
H3C-IRF配置典型案例
H3C IRF配置典型案例
●进入系统模式
●切换IRF模式
●配置成员编号
●配置成员优先级
●配置IRF端口
●使能BFD MAD检测
●使能LACP MAD检测
●配置保留端口
●手动恢复处于Recovery 状态的设备
●重定向到指定的Slave 设备
●IRF 显示和维护
●配置举例(BFD/LACP MAD)
1.进入系统模式
2.切换IRF模式
3.配置成员编号
注:配置完成员编号后需要重启该设备。
4.配置成员优先级
IRF2配置前应该将接口手工SHUT(没连线都不行);12500系
统默认都是SHUT的,95E以下必须手工SHUT
5.配置IRF端口
IRF2端口配置后应该将接口手工undo shutdown;然后关闭电源,连接IRF线缆,重启,IRF 形成。
6.使能BFD MAD检测
注:此项与弟7项LACP MAD检测只能二选一,一般情况下使用BFD MAD检测。
7.使能LACP MAD检测。
H3CIRF2的三种堆叠配置情况
H3CIRF2的三种堆叠配置情况原⽂:H3C-IRF2-虚拟交换技术-强列⿐视看我⽂档不下载的呵呵。
看了下⾯的东西你就会配IRF了。
H3C-5120-HI H3C-5120S H3C5800先到H3C官⽹上⾯看那些交换机⽀持IRF,配有堆叠线的就堆叠线,没有的可以⽤万兆模块加万兆光纤线成⼀条⼼跳线。
如图:5210配带的堆叠线。
5800配带的⼤⼝堆叠线。
万兆光纤。
下⾯我介绍⼏种⽅式进⾏IRF配置,着急要配的可以直接看第⼆种常⽤的按上⾯配就可以。
图中:1/2和2/1为配置⾥⾯的虚拟IRF接⼝号.1⼝和2⼝为万兆光⼝XG1/0/51 XG1/0/52.⼀、单物理接⼝连接⽅式:只⽤到每个交换机的⼀个万兆接⼝:配置:第⼀台交换机的配置1、⾸先进⼊并关闭万兆堆叠⼝[H3C]interface ten-gigabitethernet1/0/51[H3C – Ten-GigabitEthernet1/0/51]shutdown[H3C – Ten-GigabitEthernet1/0/51]quit2、启动IRF模式并重命名主机序号H3C []irf member 1 renumber 1 #将1号机重命名为1号机[H3C]重命名后出现告警信息,选Y跳过继续。
[H3C]irf-port 1/2 #创建1号机的第⼀个虚拟堆叠⼝将交换机同⼀模块的第⼀个堆叠⼝与创建的虚接⼝进⾏绑定[H3C -irf-port 1/2] port group interface Ten-GigabitEthernet1/0/51 mode normal[H3C -irf-port 1/2]绑定后出现reboot重启提⽰,Y跳过继续[H3C -irf-port 1/2]quit #完成后退出配置窗⼝,继续3、进⼊并打开万兆堆叠⼝[H3C]interface ten-gigabitethernet1/0/51[H3C – Ten-GigabitEthernet1/0/51]undo shutdown[H3C – Ten-GigabitEthernet1/1/2]quit[ H3C]save #保存Reboot重启后启⽤IRF irf-port-c actice 命令激活IRF:第⼆台交换机的配置1、⾸先进⼊并关闭万兆堆叠⼝[H3C]interface ten-gigabitethernet1/0/51[H3C – Ten-GigabitEthernet1/0/51]shutdown[H3C – Ten-GigabitEthernet1/0/51]quit2、启动IRF模式并重命名主机序号H3C []irf member 1 renumber 2 #将1号机重命名为2号机[H3C]重命名后出现告警信息,选Y跳过继续。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
一IRF典型配置举例1.1.1IRF典型配置举例(LACP MAD检测方式)1.组网需求由于公司人员激增,接入层交换机提供的端口数目已经不能满足PC的接入需求。
现需要在保护现有投资的基础上扩展端口接入数量,并要求网络易管理、易维护。
2.组网图图1-13 IRF典型配置组网图(LACP MAD 检测方式)3.配置思路Device A提供的接入端口数目已经不能满足网络需求,需要另外增加一台设备Device B。
(本文以两台设备组成IRF为例,在实际组网中可以根据需要,将多台设备组成IRF,配置思路和配置步骤与本例类似)鉴于第二代智能弹性架构IRF技术具有管理简便、网络扩展能力强、可靠性高等优点,所以本例使用IRF技术构建接入层(即在Device A和Device B上配置IRF 功能)。
为了防止万一IRF链路故障导致IRF分裂、网络中存在两个配置冲突的IRF,需要启用MAD检测功能。
因为接入层设备较多,我们采用LACP MAD检测。
4.配置步骤老说明为便于区分,下文配置中假设IRF形成前Device A的系统名称为DeviceA ,Device B的系统名称为Device B ;中间设备Device C的系统名称为DeviceC。
(1)配置设备编号# Device A 保留缺省编号为1,不需要进行配置。
#在Device B上将设备的成员编号修改为2。
<DeviceB> system-view[DeviceB] irf member 1 renumber 2Warning: Renumbering the switch number may result in configuration change or loss.Continue? [Y/N]:y[DeviceB](2)将两台设备断电后,按图1-13所示连接IRF链路,然后将两台设备上电。
#在Device A 上创建设备的IRF 端口2,与物理端口Ten-GigabitEthernet1/0/25 绑定,并保存配置。
<DeviceA> system-view[DeviceA] in terface ten-gigabitethernet 1/0/25[DeviceA-Te n-GigabitEthernet1/0/25] shutdow n[DeviceA] irf-port 1/2[DeviceA-irf-port 1/2] port group in terfaceten-gigabitethernet 1/0/25[DeviceA-irf-port 1/2] quit[DeviceA] in terface ten-gigabitethernet 1/0/25[DeviceA-Te n-GigabitEthernet1/0/25] un do shutdow n[DeviceA-Te n-GigabitEthernet1/0/25] save#在Device B 上创建设备的IRF 端口1,与物理端口Ten-GigabitEthernet2/0/26 绑定,并保存配置。
<DeviceB> system-view[DeviceB] in terface ten-gigabitethernet 2/0/26[DeviceB-Te n-GigabitEthernet2/0/26] shutdow n[DeviceB] irf-port 2/1[DeviceB-irf-port 2/1] port group in terfaceten-gigabitethernet 2/0/26[DeviceB-irf-port 2/1] quit[DeviceB] in terface ten-gigabitethernet 2/0/26[DeviceB-Te n-GigabitEthernet2/0/26] un do shutdow n[DeviceB-Te n-GigabitEthernet2/0/26] save#激活DeviceA的IRF端口配置。
[DeviceA-Te n-GigabitEthernet1/0/25] quit[DeviceA] irf-port-co nfiguratio n active#激活DeviceB的IRF端口配置。
[DeviceB-Te n-GigabitEthernet2/0/26] quit[DeviceB] irf-port-co nfigurati on active(3)两台设备间会进行Master竞选,竞选失败的一方将自动重启,重启完成后,IRF形成,系统名称统一为DeviceA 。
(4)配置LACP MAD检测#创建一个动态聚合端口,并使能LACP MAD检测功能。
<DeviceA> system-view[DeviceA] in terface bridge-aggregatio n 2[DeviceA-Bridge-Aggregatio n2] li nk-aggregatio n mode dyn amic[DeviceA-Bridge-Aggregatio n2] mad en able[DeviceA-Bridge-Aggregation2] quit#在聚合接口中添加成员端口GigabitEthernet1/0/1 和GigabitEthernet2/0/1 ,专用于两台IRF成员设备与中间设备进行LACP MAD检测。
[DeviceA] in terface gigabitether net 1/0/1[DeviceA-GigabitEthernet1/0/1] port lin k-aggregatio ngroup 2[DeviceA-GigabitEthernet1/0/1] quit[DeviceA] in terface gigabitethernet 2/0/1[DeviceA-GigabitEthernet2/0/1] port lin k-aggregatio ngroup 2(5)中间设备Device C的配置Device C作为一台中间设备需要支持LACP功能,用来转发、处理LACP协议报文,协助Device A和Device B进行多Active检测。
从节约成本的角度考虑,使用一台支持LACP功能的交换机即可。
#创建一个动态聚合端口。
<DeviceC> system-view[DeviceC] in terface bridge-aggregatio n 2[DeviceC-Bridge-Aggregatio n2] li nk-aggregatio n mode dyn amic [DeviceC-Bridge-Aggregation2] quit#在聚合端口中添加成员端口GigabitEthernet1/0/1 和GigabitEthernet1/0/2 ,用于进行LACP MAD检测。
[DeviceC] in terface gigabitethernet 1/0/1[DeviceC-GigabitEthernet1/0/1] port link-aggregation group 2 [DeviceC-GigabitEthernet1/0/1] quit[DeviceC] in terface gigabitethernet 1/0/2[DeviceC-GigabitEthernet1/0/2] port lin k-aggregatio ngroup 2[Irf-ovn订出.Irf TOfoTopal agy InfoIHF-PWE1 IRF-PWl?•血m HIM nelgtitH* Li** rwlghlxv 釈i1 &IS ---[Irf-MrUjUAH 1 00:14154:^7^ 2011 irf rtwnl IFKT 1i/Ro_uF£P0m. FiriyOigE l .-'O 49 Hnk 订机”15 些pj1 W: 2011 Irf-wml 1 FMtT/! Line pratwail cfi the InterfAtr Fortyi;fS up”1 M: 14: Mid IS 2011 Irf-mwl 5W 4/ 5iw_L : I*? porl ? 助 |>・鶯」an 1 00:14:H20L1 1rf-meal 1 fT/1■■■fwT-UPtmffl-;宇奸巧毗CVM Hr* 5iatLrs> is up.hl An J. 34: M irf - RWH I ttNffT / l/t : 11n* pratoca4 an ¥ tint iirf JIC ■>iflJEl/O'50 ii wp P% J AM 1 OD:15115 20U irT D£v 2. B0A MJ_STAT£_F^LLT S Buaf d chjiiyes tti- F *LL.T an $1D C 1+ type Is LiKRuwH,1 Irf-wml MV55/- B<Mrd sx»t G K MMML gfi 3, Cv^t 1, wAiw_«i*iip_Twt_5&-知an 1 00£15:24:709 20U OPIWC*4/WOULUIN:0/19: The transcelYer 1s- ST^tluqfWPJPLU5,電皿n 1 OD: 'I?? irf ww«il QFmM3 4/K«jiLE a tN:fvrvGi«i Q J W; th*(riFKc«lv*r in $T A C1 2011 Fart^ci gF i口運0 T-lhk 3t4tvs Is轴*n 1 [Oil irf irh<TZ$ L,LIi*_UP-OOfc*!; lint x tM up.^3ATI 1 51 :07^ 2011 firf -RHK I IFNET/ J. PM¥_UFDOtaW 1 FoTtyGlgEl CL »D I Ink ILAthii fJi up.% J AH i W:1S^1:O77 2011 iFNtr/5 LI«* UTOWM: L W芦mxol b TM RM 野Qi#儿OF 1l up.功肿1 QQ泡9汚空1 贈2^11 1rf-me<L 鼻34代》4>蚊亶"■贾呼廉欽Ititch 如宀叩orf standby in sl^t J started,帕1 W:>1:11:24J JQL1 IrfM/1 KU F J F 1 N E: iJTch bicliup of iTArwy board In I I KH I 1s flplihid-#按图1-13所示连接LACP MAD 链路。