一、手工配置
LSW1配置
The device is running!
<Huawei>
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys SWA
Mar 19 2021 11:43:18-08:00 SWA DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 4, the c
hange loop count is 0, and the maximum number of records is 4095.g
[SWA]interface Eth-Trunk 1
[SWA-Eth-Trunk1]int e0/0/03
[SWA-Ethernet0/0/3]e
[SWA-Ethernet0/0/3]eth-trunk 1
Info: This operation may take a few seconds. Please wait for a moment...done.
[SWA-Ethernet0/0/3]
Mar 19 2021 11:51:33-08:00 SWA %%01IFNET/4/IF_STATE(l)[0]:Interface Eth-Trunk1 h
as turned into UP state.
[SWA-Ethernet0/0/3]
[SWA-Ethernet0/0/3]int e0/0/2
[SWA-Ethernet0/0/2]e
[SWA-Ethernet0/0/2]eth-trunk 1
Info: This operation may take a few seconds. Please wait for a moment...done.
[SWA-Ethernet0/0/2]
Mar 19 2021 11:52:09-08:00 SWA DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 6, the c
hange loop count is 0, and the maximum number of records is 4095.
[SWA-Ethernet0/0/2]
[SWA-Ethernet0/0/2]q
[SWA]dis
[SWA]display interface Eth-Trunk 1 (查看链路集合信息)
Eth-Trunk1 current state : UP
Line protocol current state : UP
Description:
Switch Port, PVID : 1, Hash arithmetic : According to SIP-XOR-DIP,Maximal BW:
200M, Current BW: 200M, The Maximum Frame Length is 9216
IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 4c1f-cc50-0322
Current system time: 2021-03-19 11:54:41-08:00
Input bandwidth utilization : 0%
Output bandwidth utilization : 0%
-----------------------------------------------------
PortName Status Weight
-----------------------------------------------------
Ethernet0/0/3 UP 1
Ethernet0/0/2 UP 1
-----------------------------------------------------
The Number of Ports in Trunk : 2
The Number of UP Ports in Trunk : 2
[SWA]
<SWA> User interface con0 is available
Please Press ENTER.
<Huawei>
The device is running!
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys SWB
[SWB]
Mar 19 2021 11:52:20-08:00 SWB DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 4, the c
hange loop count is 0, and the maximum number of records is 4095.
[SWB]
[SWB]interface Eth-Trunk 1
[SWB-Eth-Trunk1]int e0/0/2
[SWB-Ethernet0/0/2]e
[SWB-Ethernet0/0/2]eth-trunk 1
Info: This operation may take a few seconds. Please wait for a moment...done.
[SWB-Ethernet0/0/2]
Mar 19 2021 11:53:05-08:00 SWB %%01IFNET/4/IF_STATE(l)[0]:Interface Eth-Trunk1 h
as turned into UP state.
[SWB-Ethernet0/0/2]
Mar 19 2021 11:53:10-08:00 SWB DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 5, the c
hange loop count is 0, and the maximum number of records is 4095.
[SWB-Ethernet0/0/2]
[SWB-Ethernet0/0/2]int e0/0/1
[SWB-Ethernet0/0/1]eth-trunk 1
Info: This operation may take a few seconds. Please wait for a moment...done.
[SWB-Ethernet0/0/1]
Mar 19 2021 11:53:50-08:00 SWB DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 6, the c
hange loop count is 0, and the maximum number of records is 4095. User interface con0 is available
Please Press ENTER.
<Huawei>
二、LACP模式
LSW5
The device is running!
<Huawei>
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys LW5
Mar 19 2021 12:30:22-08:00 LW5 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 4, the c
hange loop count is 0, and the maximum number of records is 4095.
^
Error:Incomplete command found at '^' position.
[LW5]interface e
[LW5]interface Eth-
[LW5]interface Eth-Trunk 1
[LW5-Eth-Trunk1]mode la
[LW5-Eth-Trunk1]mode lacp-static
[LW5-Eth-Trunk1]
Mar 19 2021 12:31:02-08:00 LW5 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 5, the c
hange loop count is 0, and the maximum number of records is 4095.
[LW5-Eth-Trunk1]
[LW5-Eth-Trunk1]int e0/0/3
[LW5-Ethernet0/0/3]e
[LW5-Ethernet0/0/3]eth-trunk 1
Info: This operation may take a few seconds. Please wait for a moment...done.
[LW5-Ethernet0/0/3]int
Mar 19 2021 12:32:02-08:00 LW5 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 6, the c
hange loop count is 0, and the maximum number of records is 4095.e0/0/2
[LW5-Ethernet0/0/2]e
[LW5-Ethernet0/0/2]eth-trunk 1
Info: This operation may take a few seconds. Please wait for a moment...done.
[LW5-Ethernet0/0/2]
Mar 19 2021 12:32:22-08:00 LW5 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 7, the c
hange loop count is 0, and the maximum number of records is 4095.
[LW5-Ethernet0/0/2]
[LW5-Ethernet0/0/2]int r0/0/2
^
Error: Unrecognized command found at '^' position.
[LW5-Ethernet0/0/2]int e0/0/2
[LW5-Ethernet0/0/2]int e0/0/4
[LW5-Ethernet0/0/4]e
[LW5-Ethernet0/0/4]eth-trunk 1
Info: This operation may take a few seconds. Please wait for a moment...done.
[LW5-Ethernet0/0/4]
Mar 19 2021 12:33:12-08:00 LW5 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 8, the c
hange loop count is 0, and the maximum number of records is 4095.
[LW5-Ethernet0/0/4]
[LW5-Ethernet0/0/4]la
[LW5-Ethernet0/0/4]lacp p
[LW5-Ethernet0/0/4]lacp priority 100 //(优先考虑的事)越大越好
[LW5-Ethernet0/0/4]int e
Mar 19 2021 12:33:42-08:00 LW5 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 9, the c
hange loop count is 0, and the maximum number of records is 4095.0/0/3
[LW5-Ethernet0/0/3]la
[LW5-Ethernet0/0/3]lacp p
[LW5-Ethernet0/0/3]lacp priority 100
Mar 19 2021 12:34:02-08:00 LW5 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 10, the
change loop count is 0, and the maximum number of records is 4095.
[LW5-Ethernet0/0/3]
[LW5-Ethernet0/0/3]q
[LW5]lacp priority 100 //设置本地的优先级
[LW5]
[LW5]
[LW5]info-center
[LW5]interface e
[LW5]interface Eth-
[LW5]interface Eth-Trunk 1
[LW5-Eth-Trunk1]ma
[LW5-Eth-Trunk1]max a
[LW5-Eth-Trunk1]max active-linknumber 2 //设置最大连接数
[LW5-Eth-Trunk1]
[LW5-Eth-Trunk1]
[LW5-Eth-Trunk1]
[LW5-Eth-Trunk1]
[LW5-Eth-Trunk1]
[LW5-Eth-Trunk1]
Mar 19 2021 12:34:32-08:00 LW5 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 11, the
change loop count is 0, and the maximum number of records is 4095.
<LW5>dis rth //再去查看状态
^
Error: Unrecognized command found at '^' position.
<LW5>dis eth 1
Eth-Trunk1's state information is:
Local:
LAG ID: 1 WorkingMode: STATIC
Preempt Delay: Disabled Hash arithmetic: According to SIP-XOR-DIP
System Priority: 32768 System ID: 4c1f-cc8b-70c5
Least Active-linknumber: 1 Max Active-linknumber: 2
Operate status: down Number Of Up Port In Trunk: 0
--------------------------------------------------------------------------------
ActorPortName Status PortType PortPri PortNo PortKey PortState Weight
Ethernet0/0/3 Unselect 100M 100 4 289 10100010 1
Ethernet0/0/2 Unselect 100M 32768 3 289 10100010 1
Ethernet0/0/4 Unselect 100M 100 5 289 10100010 1
Partner:
--------------------------------------------------------------------------------
ActorPortName SysPri SystemID PortPri PortNo PortKey PortState
Ethernet0/0/3 0 0000-0000-0000 0 0 0 10100011
Ethernet0/0/2 0 0000-0000-0000 0 0 0 10100011
Ethernet0/0/4 0 0000-0000-0000 0 0 0 10100011
<LW5>
Mar 19 2021 12:35:59-08:00 LW5 %%01IFNET/4/IF_STATE(l)[0]:Interface Eth-Trunk1 h
as turned into UP state.
<Huawei>
[LSW6]配置
The device is running!
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys LSW6
[LSW6]in
[LSW6]info-center
[LSW6]interface e
[LSW6]interface Eth
Mar 19 2021 12:35:23-08:00 LSW6 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.2
5.191.3.1 configurations have been changed. The current change number is 4, the
change loop count is 0, and the maximum number of records is 4095.-
[LSW6]interface Eth-Trunk 1
[LSW6-Eth-Trunk1]mo
[LSW6-Eth-Trunk1]mode la
[LSW6-Eth-Trunk1]mode lacp-static //模式;方式
[LSW6-Eth-Trunk1]int e0/
Mar 19 2021 12:35:43-08:00 LSW6 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.2
5.191.3.1 configurations have been changed. The current change number is 5, the
change loop count is 0, and the maximum number of records is 4095
[LSW6-Eth-Trunk0]int e0/0/4
[LSW6-Ethernet0/0/4]e
[LSW6-Ethernet0/0/4]eth-trunk 1
Info: This operation may take a few seconds. Please wait for a moment...done.
[LSW6-Ethernet0/0/4]
Mar 19 2021 12:35:59-08:00 LSW6 %%01IFNET/4/IF_STATE(l)[0]:Interface Eth-Trunk1
has turned into UP state.
[LSW6-Ethernet0/0/4]
[LSW6-Ethernet0/0/4]int
Mar 19 2021 12:36:03-08:00 LSW6 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.2
5.191.3.1 configurations have been changed. The current change number is 6, the
change loop count is 0, and the maximum number of records is 4095.
^
Error: Unrecognized command found at '^' position.
[LSW6-Ethernet0/0/4]int e0/0/3
[LSW6-Ethernet0/0/3]e
[LSW6-Ethernet0/0/3]eth-trunk 1
Info: This operation may take a few seconds. Please wait for a moment...done.
[LSW6-Ethernet0/0/3]int
Mar 19 2021 12:36:34-08:00 LSW6 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.2
5.191.3.1 configurations have been changed. The current change number is 7, the
change loop count is 0, and the maximum number of records is 4095.e0/0/2
[LSW6-Ethernet0/0/2]e
[LSW6-Ethernet0/0/2]eth-trunk 1
Info: This operation may take a few seconds. Please wait for a moment...done.
[LSW6-Ethernet0/0/2]i
Mar 19 2021 12:36:44-08:00 LSW6 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.2
5.191.3.1 configurations have been changed. The current change number is 8, the
change loop count is 0, and the maximum number of records is 4095.nt
^
Error: Unrecognized command found at '^' position.
[LSW6-Ethernet0/0/2]int e0/0/3
[LSW6-Ethernet0/0/3]lac
[LSW6-Ethernet0/0/3]lacp p
[LSW6-Ethernet0/0/3]lacp priority 100
[LSW6-Ethernet0/0/3]
Mar 19 2021 12:37:14-08:00 LSW6 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.2
5.191.3.1 configurations have been changed. The current change number is 9, the
change loop count is 0, and the maximum number of records is 4095.int e0/0/4
[LSW6-Ethernet0/0/4]la
[LSW6-Ethernet0/0/4]lacp pa
[LSW6-Ethernet0/0/4]lacp p
[LSW6-Ethernet0/0/4]lacp priority 100
[LSW6-Ethernet0/0/4]
Mar 19 2021 12:37:44-08:00 LSW6 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.2
5.191.3.1 configurations have been changed. The current change number is 10, the
change loop count is 0, and the maximum number of records is 4095.
[LSW6-Ethernet0/0/4]
[LSW6-Ethernet0/0/4]q
[LSW6]
[LSW6]lacp priority 100 //设置本地的优先级
[LSW6]
[LSW6]info-center
[LSW6]interface e
[LSW6]interface Eth-
[LSW6]interface Eth-Trunk 1
[LSW6-Eth-Trunk1]max a
[LSW6-Eth-Trunk1]max active-linknumber 2
[LSW6-Eth-Trunk1]q
[LSW6]d
Mar 19 2021 12:38:24-08:00 LSW6 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.2
5.191.3.1 configurations have been changed. The current change number is 11, the
change loop count is 0, and the maximum number of records is 4095.
Error: Input "dot1x enable" to enable 802.1x.
[LSW6]
[LSW6]dis eth
Eth-Trunk1's state information is:
Local:
LAG ID: 1 WorkingMode: STATIC
Preempt Delay: Disabled Hash arithmetic: According to SIP-XOR-DIP
System Priority: 32768 System ID: 4c1f-ccbb-7b01
Least Active-linknumber: 1 Max Active-linknumber: 2
Operate status: up Number Of Up Port In Trunk: 2
--------------------------------------------------------------------------------
ActorPortName Status PortType PortPri PortNo PortKey PortState Weight
Ethernet0/0/4 Selected 100M 100 5 289 10111100 1
Ethernet0/0/3 Selected 100M 100 4 289 10111100 1
Ethernet0/0/2 Unselect 100M 32768 3 289 10100000 1
Partner:
--------------------------------------------------------------------------------
ActorPortName SysPri SystemID PortPri PortNo PortKey PortState
Ethernet0/0/4 32768 4c1f-cc8b-70c5 100 5 289 10111100
Ethernet0/0/3 32768 4c1f-cc8b-70c5 100 4 289 10111100
Ethernet0/0/2 32768 4c1f-cc8b-70c5 32768 3 289 10100000
Eth-Trunk0's state information is:
WorkingMode: NORMAL Hash arithmetic: According to SIP-XOR-DIP
Least Active-linknumber: 1 Max Bandwidth-affected-linknumber: 8
Operate status: down Number Of Up Port In Trunk: 0
--------------------------------------------------------------------------------
PortName Status Weight
[LSW6]
<Huawei>
<Huawei>
交换机lacp配置
[SW1]interface Eth-Trunk 1
[SW1-Eth-Trunk1]mode lacp-static
[SW1-Ethernet0/0/4]eth-trunk 1
[SW1-Ethernet0/0/2]eth-trunk 1
[SW1-Ethernet0/0/3]eth-trunk 1
[SW1-Ethernet0/0/3]lacp priority 100C
[SW1-Ethernet0/0/2]lacp priority 100
[SW1]lacp priority 100 //设置本地的优先级
[SW1-Eth-Trunk1]max active-linknumber 2 //设置最大连接数
[SW1]dis eth 1 //再去查看状态
对端做相应的配置,不过不需要更改优先级
三、三层链路聚合配置
AR1配置
The device is running!
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys RTA
[RTA]in
[RTA]info-center
[RTA]interface e
[RTA]interface Eth-Trunk 1
[RTA-Eth-Trunk1]undo p
[RTA-Eth-Trunk1]undo port
[RTA-Eth-Trunk1]undo port-isolate
[RTA-Eth-Trunk1]undo port-security
[RTA-Eth-Trunk1]undo portswitch //把聚合链路从二层转为三层链路
[RTA-Eth-Trunk1]ip add 100.1.1.1 24 //配置三层的IP地址
[RTA-Eth-Trunk1]q
[RTA]int g0/0/1
[RTA-GigabitEthernet0/0/1]eth-trunk 1
Info: This operation may take a few seconds. Please wait for a moment...done.
[RTA-GigabitEthernet0/0/1]
Mar 19 2021 12:46:16-08:00 RTA %%01IFNET/4/IF_STATE(l)[0]:Interface Eth-Trunk1 h
as turned into UP state.
[RTA-GigabitEthernet0/0/1]
Mar 19 2021 12:46:16-08:00 RTA %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP
on the interface Eth-Trunk1 has entered the UP state.
[RTA-GigabitEthernet0/0/1]
[RTA-GigabitEthernet0/0/1]int g0/0/0
[RTA-GigabitEthernet0/0/0]eth-trunk 1
Info: This operation may take a few seconds. Please wait for a moment...done.
[RTA-GigabitEthernet0/0/0]q
[RTA]dis eth
Eth-Trunk1's state information is:
WorkingMode: NORMAL Hash arithmetic: According to SIP-XOR-DIP
Least Active-linknumber: 1 Max Bandwidth-affected-linknumber: 8
Operate status: up Number Of Up Port In Trunk: 2
--------------------------------------------------------------------------------
PortName Status Weight
GigabitEthernet0/0/1 Up 1
GigabitEthernet0/0/0 Up 1
[RTA]
<RTA>ping 100.1.1.2
PING 100.1.1.2: 56 data bytes, press CTRL_C to break
Reply from 100.1.1.2: bytes=56 Sequence=1 ttl=255 time=70 ms
Reply from 100.1.1.2: bytes=56 Sequence=2 ttl=255 time=20 ms
Reply from 100.1.1.2: bytes=56 Sequence=3 ttl=255 time=20 ms
Reply from 100.1.1.2: bytes=56 Sequence=4 ttl=255 time=10 ms
Reply from 100.1.1.2: bytes=56 Sequence=5 ttl=255 time=30 ms
--- 100.1.1.2 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 10/30/70 ms
<RTA>
AR2配置
The device is running!
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys RTA
[RTA]in
[RTA]info-center
[RTA]interface e
[RTA]interface Eth-Trunk 1
[RTA-Eth-Trunk1]undo p
[RTA-Eth-Trunk1]undo portswitch //把聚合链路从二层转为三层链路
[RTA-Eth-Trunk1]ip add 100.1.1.1 24 //配置三层的IP地址
[RTA-Eth-Trunk1]q
[RTA]int g0/0/1
[RTA-GigabitEthernet0/0/1]e
[RTA-GigabitEthernet0/0/1]eth-trunk 1
Info: This operation may take a few seconds. Please wait for a moment...done.
[RTA-GigabitEthernet0/0/1]
Mar 19 2021 12:46:16-08:00 RTA %%01IFNET/4/IF_STATE(l)[0]:Interface Eth-Trunk1 h
as turned into UP state.
[RTA-GigabitEthernet0/0/1]
Mar 19 2021 12:46:16-08:00 RTA %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP
on the interface Eth-Trunk1 has entered the UP state.
[RTA-GigabitEthernet0/0/1]
[RTA-GigabitEthernet0/0/1]int g0/0/0
[RTA-GigabitEthernet0/0/0]e
[RTA-GigabitEthernet0/0/0]efm
[RTA-GigabitEthernet0/0/0]enable
[RTA-GigabitEthernet0/0/0]energy-efficient-ethernet
[RTA-GigabitEthernet0/0/0]eth-trunk 1
Info: This operation may take a few seconds. Please wait for a moment...done.
[RTA-GigabitEthernet0/0/0]
[RTA-GigabitEthernet0/0/0]
[RTA-GigabitEthernet0/0/0]q
[RTA]dis eth
Eth-Trunk1's state information is:
WorkingMode: NORMAL Hash arithmetic: According to SIP-XOR-DIP
Least Active-linknumber: 1 Max Bandwidth-affected-linknumber: 8
Operate status: up Number Of Up Port In Trunk: 2
--------------------------------------------------------------------------------
PortName Status Weight
GigabitEthernet0/0/1 Up 1
GigabitEthernet0/0/0 Up 1
[RTA]
<RTA>ping 100.1.1.2
PING 100.1.1.2: 56 data bytes, press CTRL_C to break
Reply from 100.1.1.2: bytes=56 Sequence=1 ttl=255 time=70 ms
Reply from 100.1.1.2: bytes=56 Sequence=2 ttl=255 time=20 ms
Reply from 100.1.1.2: bytes=56 Sequence=3 ttl=255 time=20 ms
Reply from 100.1.1.2: bytes=56 Sequence=4 ttl=255 time=10 ms
Reply from 100.1.1.2: bytes=56 Sequence=5 ttl=255 time=30 ms
--- 100.1.1.2 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 10/30/70 ms
<RTA>dis interface Eth-Trunk1
Eth-Trunk1 current state : UP
Line protocol current state : UP
Last line protocol up time : 2021-03-19 12:46:16 UTC-08:00
Description:HUAWEI, AR Series, Eth-Trunk1 Interface
Route Port,Hash arithmetic : According to SIP-XOR-DIP,Maximal BW: 2G, Current BW
: 2G, The Maximum Transmit Unit is 1500
Internet Address is 100.1.1.1/24
IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 00e0-fc0f-0c40
Current system time: 2021-03-19 12:52:00-08:00
Input: 7 packets, 610 bytes
Unicast: 6, Multicast: 0
Broadcast: 1, Discard: 0
Total Error: 0
Output: 7 packets, 610 bytes
Unicast: 5, Multicast: 0
Broadcast: 2, Discard: 0
Total Error: 0
Input bandwidth utilization : 0%
Output bandwidth utilization : 0%
-----------------------------------------------------
PortName Status Weight
-----------------------------------------------------
GigabitEthernet0/0/1 UP 1
GigabitEthernet0/0/0 UP 1
-----------------------------------------------------
<RTA>