Example for Configuring Inter-device Link Aggregation in LACP Mode (Standalone Device)
Networking Requirements
In Figure 3-26, DeviceA is dual-homed to DeviceB and DeviceC. The Eth-Trunk in LACP mode is deployed on DeviceA, and its member interfaces are connected to 10GE1/0/1 and 10GE1/0/2 of DeviceB and DeviceC. 10GE1/0/1 and 10GE1/0/2 use the same rate and duplex mode. Traffic needs to be load balanced on the two devices.
Configuration Roadmap
The configuration roadmap is as follows:
Create Eth-Trunk 1 in static LACP mode on DeviceA, DeviceB, and DeviceC and add member interfaces to Eth-Trunk 1 to implement link aggregation.
Configure the same LACP system ID on DeviceB and DeviceC.
Configure the same LACP system priority on DeviceB and DeviceC.
Configure number of Eth-Trunk member interfaces on DeviceC to increase by 32768 to prevent repeated numbers of Eth-Trunk member interfaces in LACP mode on DeviceB and DeviceC.
Procedure
- Create Eth-Trunk 1 in LACP mode on DeviceA, DeviceB, and
DeviceC and add member interfaces to Eth-Trunk 1.
<HUAWEI> system-view [~HUAWEI] sysname DeviceA [*HUAWEI] commit [~DeviceA] interface eth-trunk 1 [*DeviceA-Eth-Trunk1] mode lacp-static [*DeviceA-Eth-Trunk1] trunkport 10ge 1/0/1 to 1/0/4 [*DeviceA-Eth-Trunk1] commit [~DeviceA-Eth-Trunk1] quit
<HUAWEI> system-view [~HUAWEI] sysname DeviceB [*HUAWEI] commit [~DeviceB] interface eth-trunk 1 [*DeviceB-Eth-Trunk1] mode lacp-static [*DeviceB-Eth-Trunk1] trunkport 10ge 1/0/1 to 1/0/2 [*DeviceB-Eth-Trunk1] commit
<HUAWEI> system-view [~HUAWEI] sysname DeviceC [*HUAWEI] commit [~DeviceC] interface eth-trunk 1 [*DeviceC-Eth-Trunk1] mode lacp-static [*DeviceC-Eth-Trunk1] trunkport 10ge 1/0/1 to 1/0/2 [*DeviceC-Eth-Trunk1] commit
- Set the LACP system ID on DeviceB and DeviceC to 00e0-cf00-0000.
[~DeviceB-Eth-Trunk1] lacp system-id 00e0-cf00-0000 [*DeviceB-Eth-Trunk1] commit [~DeviceB-Eth-Trunk1] quit
[~DeviceC-Eth-Trunk1] lacp system-id 00e0-cf00-0000 [*DeviceC-Eth-Trunk1] commit [~DeviceC-Eth-Trunk1] quit
- Set the LACP system priority on DeviceB and DeviceC to
100.
[~DeviceB] lacp priority 100 [*DeviceB] commit
[~DeviceC] lacp priority 100 [*DeviceC] commit
- Configure numbers of Eth-Trunk member interfaces on DeviceC
to increase by 32768.
[~DeviceC] interface eth-trunk 1 [~DeviceC-Eth-Trunk1] lacp port-id-extension enable [*DeviceC-Eth-Trunk1] commit
- Verify the configuration.
# Check information about the Eth-Trunk of each device and check whether the negotiation is successful.
[~DeviceA] display eth-trunk 1 Eth-Trunk1's state information is: Local: LAG ID: 1 Working Mode: Static Preempt Delay: Disabled Hash Arithmetic: profile default System Priority: 100 System ID: e468-a356-0cb1 Least Active-linknumber: 1 Max Active-linknumber: 16 Operating Status: up Number Of Up Ports In Trunk: 4 Timeout Period: Slow -------------------------------------------------------------------------------- ActorPortName Status PortType PortPri PortNo PortKey PortState Weight 10GE1/0/1 Selected 10GE 32768 3 321 10111100 1 10GE1/0/2 Selected 10GE 32768 1 321 10100010 1 10GE1/0/3 Selected 10GE 32768 4 321 10111100 1 10GE1/0/4 Selected 10GE 32768 2 321 10100010 1 Partner: -------------------------------------------------------------------------------- ActorPortName SysPri SystemID PortPri PortNo PortKey PortState 10GE1/0/1 100 00e0-cf00-0000 32768 32769 321 10111100 10GE1/0/2 100 00e0-cf00-0000 32768 32770 321 10111100 10GE1/0/1 100 00e0-cf00-0000 32768 4 321 10111100 10GE1/0/2 100 00e0-cf00-0000 32768 5 321 10111100
[~DeviceB] display eth-trunk 1 Eth-Trunk1's state information is: Local: LAG ID: 1 Working Mode: Static Preempt Delay: Disabled Hash Arithmetic: profile default System Priority: 100 System ID: 00e0-cf00-0000 Least Active-linknumber: 1 Max Active-linknumber: 32 Operating Status: up Number Of Up Ports In Trunk: 2 Timeout Period: Slow -------------------------------------------------------------------------------- ActorPortName Status PortType PortPri PortNo PortKey PortState Weight 10GE1/0/1 Selected 10GE 32768 4 321 10111100 1 10GE1/0/2 Selected 10GE 32768 5 321 10111100 1 Partner: -------------------------------------------------------------------------------- ActorPortName SysPri SystemID PortPri PortNo PortKey PortState 10GE1/0/3 100 e468-a356-0cb1 32768 4 321 10111100 10GE1/0/4 100 e468-a356-0cb1 32768 2 321 10100010
[~DeviceC] display eth-trunk 1 Eth-Trunk1's state information is: Local: LAG ID: 1 Working Mode: Static Preempt Delay: Disabled Hash Arithmetic: profile default System Priority: 100 System ID: 00e0-cf00-0000 Least Active-linknumber: 1 Max Active-linknumber: 16 Operating Status: up Number Of Up Ports In Trunk: 2 Timeout Period: Slow -------------------------------------------------------------------------------- ActorPortName Status PortType PortPri PortNo PortKey PortState Weight 10GE1/0/1 Selected 10GE 32768 32769 321 10111100 1 10GE1/0/2 Selected 10GE 32768 32770 321 10111100 1 Partner: -------------------------------------------------------------------------------- ActorPortName SysPri SystemID PortPri PortNo PortKey PortState 10GE1/0/1 100 e468-a356-0cb1 32768 3 321 10111100 10GE1/0/2 100 e468-a356-0cb1 32768 1 321 10100010
The preceding information shows that the value of Operating Status on each device is up, negotiation of Eth-Trunk 1 is successful. Member interfaces on DeviceB and DeviceC are active interfaces in Selected state, member interfaces of DeviceB and DeviceC can load balance traffic. The PortNo parameter on DeviceC indicates that the numbers of Eth-Trunk member interfaces on DeviceC to increase by 32768.
Configuration Files
DeviceA configuration file
# sysname DeviceA # interface Eth-Trunk1 mode lacp-static # interface 10GE1/0/1 eth-trunk 1 # interface 10GE1/0/2 eth-trunk 1 # interface 10GE1/0/3 eth-trunk 1 # interface 10GE1/0/4 eth-trunk 1 # return
DeviceB configuration file
# sysname DeviceB # lacp priority 100 # interface Eth-Trunk1 mode lacp-static lacp system-id 00e0-cf00-0000 # interface 10GE1/0/1 eth-trunk 1 # interface 10GE1/0/2 eth-trunk 1 # return
DeviceC configuration file
# sysname DeviceC # lacp priority 100 # interface Eth-Trunk1 mode lacp-static lacp system-id 00e0-cf00-0000 lacp port-id-extension enable # interface 10GE1/0/1 eth-trunk 1 # interface 10GE1/0/2 eth-trunk 1 # return