IRF 配置思路和步骤
1) 配置设备编号. sw1 保留默认编号为 1, 不需要进行配置. 在 sw2 上将设备的成员编号修改为 2.
- <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, 目的是让其在竞选时获胜.
- <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 绑定, 病保存配置.
- <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 端口配置.
- [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 配置的显示和维护信息
- ,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
来源: http://www.bubuko.com/infodetail-3274238.html