IRF配置思路和步骤
IRF配置和LACP MAD配置思路_第1张图片
IRF配置和LACP MAD配置思路_第2张图片
1)配置设备编号。sw1保留默认编号为1,不需要进行配置。在sw2上将设备的成员编号修改为2。

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,目的是让其在竞选时获胜。

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绑定,病保存配置。

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端口配置。

[sw1]irf-port-configuration active
[sw2]irf-port-configuration active

两台设备间会进行Master竞选,竞选失败的一方将自动重启,重启完成后,IRF形成,系统名称统一为sw1。

配置LACP MAD检测
1)在sw1上配置。

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。

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。
如:(注意要对应相应的组号)。

interface GigabitEthernet1/0/1
 port link-type trunk
 port trunk permit vlan all
 port link-aggregation group 2

4)查看IRF和MAD配置的显示和维护信息

1、display irf
2、display irf  configuration
3、display  mad  verbose
4、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