H3C IRF实验

[deviceA]S5820V2-54QS-GE_1 配置

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<H3C>sys
System View: return to User View with Ctrl+Z.
[H3C]hostname deviceA
[deviceA]irf member 1 priority 5
[deviceA]interface Ten-GigabitEthernet 1/0/49
[deviceA-Ten-GigabitEthernet1/0/49]shutdown
[deviceA-Ten-GigabitEthernet1/0/49]%Jun 20 01:14:17:671 2015 deviceA IFNET/3/PHY_UPDOWN: Physical state on the interface Ten-GigabitEthernet1/0/49 changed to down.
%Jun 20 01:14:17:673 2015 deviceA IFNET/5/LINK_UPDOWN: Line protocol state on the interface Ten-GigabitEthernet1/0/49 changed to down.
%Jun 20 01:14:17:675 2015 deviceA STP/6/STP_NOTIFIED_TC: Instance 0's port Ten-GigabitEthernet1/0/50 was notified a topology change.
[deviceA-Ten-GigabitEthernet1/0/49]quit
[deviceA]irf-port 1/2
[deviceA-irf-port1/2]port group interface Ten-GigabitEthernet 1/0/49
You must perform the following tasks for a successful IRF setup:
Save the configuration after completing IRF configuration.
Execute the "irf-port-configuration active" command to activate the IRF ports.

[deviceA-irf-port1/2]quit
[deviceA]interface Ten-GigabitEthernet 1/0/49
[deviceA-Ten-GigabitEthernet1/0/49]undo shutdown
[deviceA-Ten-GigabitEthernet1/0/49]%Jun 20 01:15:09:566 2015 deviceA IFNET/3/PHY_UPDOWN: Physical state on the interface Ten-GigabitEthernet1/0/49 changed to up.
%Jun 20 01:15:09:567 2015 deviceA IFNET/5/LINK_UPDOWN: Line protocol state on the interface Ten-GigabitEthernet1/0/49 changed to up.

[deviceA-Ten-GigabitEthernet1/0/49]save
The current configuration will be written to the device. Are you sure? [Y/N]:y
Please input the file name(*.cfg)[flash:/startup.cfg]
(To leave the existing filename unchanged, press the enter key): //在此输入一个密码
Validating file. Please wait...
Saved the current configuration to mainboard device successfully.
[deviceA-Ten-GigabitEthernet1/0/49]

[deviceB]S5820V2-54QS-GE_2 配置

1
2
3
4
5
6
7
<H3C>sys
System View: return to User View with Ctrl+Z.
[H3C]sysname deviceB
[deviceB]irf member 1 renumber 2 //为了后面好区分,修改设备接口名为2开头
Renumbering the member ID may result in configuration change or loss. Continue?[Y/N]y
[deviceB]quit
<deviceB>reboot //重启生效配置

img

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<deviceB>sys                 
[deviceB]interface Ten-GigabitEthernet 2/0/49
[deviceB-Ten-GigabitEthernet2/0/49]shutdown
[deviceB-Ten-GigabitEthernet2/0/49]%Jun 20 01:19:20:797 2015 deviceB IFNET/3/PHY_UPDOWN: Physical state on the interface Ten-GigabitEthernet2/0/49 changed to down.
%Jun 20 01:19:20:798 2015 deviceB IFNET/5/LINK_UPDOWN: Line protocol state on the interface Ten-GigabitEthernet2/0/49 changed to down.
[deviceB-Ten-GigabitEthernet2/0/49]quit
[deviceB]irf-port 2/1
[deviceB-irf-port2/1]port group interface Ten-GigabitEthernet 2/0/49
You must perform the following tasks for a successful IRF setup:
Save the configuration after completing IRF configuration.
Execute the "irf-port-configuration active" command to activate the IRF ports.

[deviceB-irf-port2/1]quit
[deviceB]interface Ten-GigabitEthernet 2/0/49
[deviceB-Ten-GigabitEthernet2/0/49]undo shutdown
[deviceB-Ten-GigabitEthernet2/0/49]%Jun 20 01:20:33:930 2015 deviceB IFNET/3/PHY_UPDOWN: Physical state on the interface Ten-GigabitEthernet2/0/49 changed to up.
%Jun 20 01:20:33:931 2015 deviceB IFNET/5/LINK_UPDOWN: Line protocol state on the interface Ten-GigabitEthernet2/0/49 changed to up.

[deviceB-Ten-GigabitEthernet2/0/49]save
The current configuration will be written to the device. Are you sure? [Y/N]:y
Please input the file name(*.cfg)[flash:/startup.cfg]
(To leave the existing filename unchanged, press the enter key):
flash:/startup.cfg exists, overwrite? [Y/N]:y
Validating file. Please wait...
Saved the current configuration to mainboard device successfully.


[deviceA-Ten-GigabitEthernet1/0/49]quit

[deviceB-Ten-GigabitEthernet2/0/49]quit


[deviceA]irf-port-configuration active

[deviceB]irf-port-configuration active

此时deviceB就会重启,两台设备间会进行master竞选,竞选失败的一方会自动重启,重启完成后,IRF形成,系统名称统一为deviceA

img

在主交换机上课看到IRF形成后的增加的端口,

img

img

img

img

img

img

img

在主交换机上master

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
[deviceA]interface Bridge-Aggregation 2
[deviceA-Bridge-Aggregation2]link-aggregation mode dynamic
[deviceA-Bridge-Aggregation2]mad enable
You need to assign a domain ID (range: 0-4294967295)
[Current domain is: 0]:
The assigned domain ID is: 0
MAD LACP only enable on dynamic aggregation interface.
[deviceA-Bridge-Aggregation2]quit

[deviceA]interface Ten-GigabitEthernet 1/0/50
[deviceA-Ten-GigabitEthernet1/0/50]port link-aggregation group 2
[deviceA-Ten-GigabitEthernet1/0/50]%Jun 20 01:41:58:383 2015 deviceA LAGG/6/LAGG_ACTIVE: Member port XGE1/0/50 of aggregation group BAGG2 changed to the active state.
%Jun 20 01:41:58:376 2015 deviceA STP/6/STP_NOTIFIED_TC: -Slot=2; Instance 0's port Ten-GigabitEthernet2/0/50 was notified a topology change.
%Jun 20 01:41:58:421 2015 deviceA IFNET/5/LINK_UPDOWN: Line protocol state on the interface Ten-GigabitEthernet1/0/50 changed to down.
%Jun 20 01:41:58:423 2015 deviceA IFNET/3/PHY_UPDOWN: Physical state on the interface Bridge-Aggregation2 changed to up.
%Jun 20 01:41:58:425 2015 deviceA IFNET/5/LINK_UPDOWN: Line protocol state on the interface Bridge-Aggregation2 changed to up.
%Jun 20 01:41:58:429 2015 deviceA IFNET/5/LINK_UPDOWN: Line protocol state on the interface Ten-GigabitEthernet1/0/50 changed to up.
%Jun 20 01:42:02:435 2015 deviceA STP/6/NULL: Instance 0's port Bridge-Aggregation2 detected a topology change.

[deviceA-Ten-GigabitEthernet2/0/50]quit
[deviceA]interface Ten-GigabitEthernet 2/0/50
[deviceA-Ten-GigabitEthernet2/0/50]port link-aggregation group 2
[deviceA-Ten-GigabitEthernet2/0/50]quit

[deviceC]S5820V2-54QS-GE_3 配置

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<H3C>sys
[H3C]interface Bridge-Aggregation 2
[H3C-Bridge-Aggregation2]link-aggregation mode dynamic
[H3C-Bridge-Aggregation2]quit
[H3C]interface Ten-GigabitEthernet 1/0/49
[H3C-Ten-GigabitEthernet1/0/49]port link-aggregation group 2
[H3C-Ten-GigabitEthernet1/0/49]%Jun 20 01:46:09:605 2015 H3C IFNET/5/LINK_UPDOWN: Line protocol state on the interface Ten-GigabitEthernet1/0/49 changed to down.
%Jun 20 01:46:09:632 2015 H3C LAGG/6/LAGG_ACTIVE: Member port XGE1/0/49 of aggregation group BAGG2 changed to the active state.
%Jun 20 01:46:09:654 2015 H3C IFNET/5/LINK_UPDOWN: Line protocol state on the interface Ten-GigabitEthernet1/0/49 changed to up.
%Jun 20 01:46:09:655 2015 H3C IFNET/3/PHY_UPDOWN: Physical state on the interface Bridge-Aggregation2 changed to up.
%Jun 20 01:46:09:658 2015 H3C IFNET/5/LINK_UPDOWN: Line protocol state on the interface Bridge-Aggregation2 changed to up.
%Jun 20 01:46:09:667 2015 H3C STP/6/STP_NOTIFIED_TC: Instance 0's port Ten-GigabitEthernet1/0/50 was notified a topology change.
%Jun 20 01:46:12:232 2015 H3C STP/6/STP_NOTIFIED_TC: Instance 0's port Ten-GigabitEthernet1/0/50 was notified a topology change.

[H3C-Ten-GigabitEthernet1/0/49]quit
[H3C]interface Ten-GigabitEthernet 1/0/50
[H3C-Ten-GigabitEthernet1/0/50]port link-aggregation group 2
[DeviceC-Ten-GigabitEthernet1/0/49]%Jan 15 02:06:15:567 2016 DeviceC IFNET/5/LINK_UPDOWN: Line protocol state on the interface Ten-GigabitEthernet1/0/49 changed to down.
%Jan 15 02:06:15:588 2016 DeviceC LAGG/6/LAGG_ACTIVE: Member port XGE1/0/49 of aggregation group BAGG2 changed to the active state.
%Jan 15 02:06:15:597 2016 DeviceC IFNET/5/LINK_UPDOWN: Line protocol state on the interface Ten-GigabitEthernet1/0/49 changed to up.
%Jan 15 02:06:15:598 2016 DeviceC IFNET/3/PHY_UPDOWN: Physical state on the interface Bridge-Aggregation2 changed to up.
%Jan 15 02:06:15:598 2016 DeviceC IFNET/5/LINK_UPDOWN: Line protocol state on the interface Bridge-Aggregation2 changed to up.
[H3C-Ten-GigabitEthernet1/0/50]

img

img

img

img

img

-------------本文结束感谢您的阅读-------------