IRF配置思路和步骤
1)配置设备编号。sw1保留默认编号为1,不须要进行配置。在sw2上将设备的成员编号修改成2。ide
<sw2>system-view [sw2]irf member 1 renumber 2 [sw2]save [sw2]reboot Renumbering the member ID may result in configuration change or loss. Continue?[Y/N]y
2)将两台设备断电后,而后将两台设备上电。修改sw1的IRF优先级为5,目的是让其在竞选时获胜。ui
<sw1>system-view [sw1]irf member 1 priority 5 [sw1]int Ten-GigabitEthernet1/0/49 [sw1-Ten-GigabitEthernet1/0/49]shutdown [sw1-Ten-GigabitEthernet1/0/49]quit [sw1]irf-port 1/2 [sw1-irf-port1/2]port group int Ten-GigabitEthernet 1/0/49 [sw1-irf-port1/2]quit [sw1]int Ten-GigabitEthernet1/0/49 [sw1-Ten-GigabitEthernet1/0/49]undo shutdown [sw1-Ten-GigabitEthernet1/0/49]save
3)保存sw2上建立设备的IRF端口1,与物理端口ten-g2/0/49绑定,病保存配置。code
<H3C>system-view [sw2]int Ten-GigabitEthernet 2/0/49 [sw2-Ten-GigabitEthernet2/0/49]shutdown [sw2-Ten-GigabitEthernet2/0/49]quit [sw2]irf-port 2/1 [sw2-irf-port2/1]port group int Ten-GigabitEthernet 2/0/49 [sw2-irf-port2/1]quit [sw2]int Ten-GigabitEthernet 2/0/49 [sw2-Ten-GigabitEthernet2/0/49]undo shutdown [sw2]int Ten-GigabitEthernet 2/0/49 [sw2-Ten-GigabitEthernet2/0/49]save
4)激活sw1和sw2的IRF端口配置。blog
[sw1]irf-port-configuration active [sw2]irf-port-configuration active
两台设备间会进行Master竞选,竞选失败的一方将自动重启,重启完成后,IRF造成,系统名称统一为sw1。接口
配置LACP MAD检测
1)在sw1上配置。it
interface Bridge-Aggregation 2 port link-type trunk port trunk permit vlan all link-aggregation mode dynamic mad enable quit
interface Bridge-Aggregation 3 port link-type trunk port trunk permit vlan all link-aggregation mode dynamic mad enable quit
2)在sw3,sw4上建立相应的聚合端口组,并配置trunk。io
SW3: interface Bridge-Aggregation 2 port link-type trunk port trunk permit vlan all link-aggregation mode dynamic quit SW4: interface Bridge-Aggregation 3 port link-type trunk port trunk permit vlan all link-aggregation mode dynamic quit
3)分别在SW1,SW3,SW4上的聚合接口上添加成员,并配置trunk。
如:(注意要对应相应的组号)。ast
interface GigabitEthernet1/0/1 port link-type trunk port trunk permit vlan all port link-aggregation group 2
4)查看IRF和MAD配置的显示和维护信息class
一、display irf 二、display irf configuration 三、display mad verbose 四、display link-aggregation verbose
5)建立vlan,并将相应的接口加入vlan中:配置
vlan 2 quit vlan 3 quit int g1/0/3 port link-type access port access vlan 2 quit