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