Example for Configuring Link Aggregation in Manual Mode
Networking Requirements
In Figure 3-25, SwitchA and SwitchB connect to devices in VLAN 10 and VLAN 20 through Ethernet links, and heavy traffic is transmitted between SwitchA and SwitchB.
The customer hopes that SwitchA and SwitchB can provide increased link bandwidth to enable inter-VLAN communication. They also want redundancy and to ensure quality data transmission and link reliability.
Configuration Roadmap
The configuration roadmap is as follows:
Create an Eth-Trunk and add member interfaces to the Eth-Trunk to increase link bandwidth.
Create VLANs and add interfaces to the VLANs.
Configure a load balancing mode to ensure that traffic is load balanced among Eth-Trunk member interfaces.
Procedure
- Create an Eth-Trunk on SwitchA and SwitchB, and add member
interfaces to the Eth-Trunk.
<HUAWEI> system-view [HUAWEI] sysname SwitchA [SwitchA] interface eth-trunk 1 [SwitchA-Eth-Trunk1] trunkport gigabitethernet 1/0/1 to 1/0/3 [SwitchA-Eth-Trunk1] quit
<HUAWEI> system-view [HUAWEI] sysname SwitchB [SwitchB] interface eth-trunk 1 [SwitchB-Eth-Trunk1] trunkport gigabitethernet 1/0/1 to 1/0/3 [SwitchB-Eth-Trunk1] quit
- Create VLANs and add interfaces to the VLANs.
# Create VLAN 10 and VLAN 20 and add interfaces to VLAN 10 and VLAN 20. The configuration for SwitchB is the same as that for SwitchA.
[SwitchA] vlan batch 10 20 [SwitchA] interface gigabitethernet 1/0/4 [SwitchA-GigabitEthernet1/0/4] port link-type trunk [SwitchA-GigabitEthernet1/0/4] port trunk allow-pass vlan 10 [SwitchA-GigabitEthernet1/0/4] quit [SwitchA] interface gigabitethernet 1/0/5 [SwitchA-GigabitEthernet1/0/5] port link-type trunk [SwitchA-GigabitEthernet1/0/5] port trunk allow-pass vlan 20 [SwitchA-GigabitEthernet1/0/5] quit
# Configure Eth-Trunk 1 to allow packets from VLAN 10 and VLAN 20 to pass through. The configuration for SwitchB is the same as that for SwitchA.
[SwitchA] interface eth-trunk 1 [SwitchA-Eth-Trunk1] port link-type trunk [SwitchA-Eth-Trunk1] port trunk allow-pass vlan 10 20 [SwitchA-Eth-Trunk1] quit
- Configure a load balancing mode for Eth-Trunk 1. The configuration
for SwitchB is the same as that for SwitchA.
[SwitchA] interface eth-trunk 1 [SwitchA-Eth-Trunk1] load-balance src-dst-mac [SwitchA-Eth-Trunk1] quit
- Verify the configuration.
Run the display eth-trunk 1 command in any view to check whether the Eth-Trunk is created and whether member interfaces are added.
[SwitchA] display eth-trunk 1 Eth-Trunk1's state information is: WorkingMode: NORMAL Hash arithmetic: According to SA-XOR-DA Least Active-linknumber: 1 Max Bandwidth-affected-linknumber: 8 Operate status: up Number Of Up Port In Trunk: 3 -------------------------------------------------------------------------------- PortName Status Weight GigabitEthernet1/0/1 Up 1 GigabitEthernet1/0/2 Up 1 GigabitEthernet1/0/3 Up 1
The preceding command output shows that Eth-Trunk 1 has three member interfaces: GigabitEthernet1/0/1, GigabitEthernet1/0/2, and GigabitEthernet1/0/3. The member interfaces are all in Up state. The Operate status of Eth-Trunk 1 is Up.
Configuration Files
SwitchA configuration file
# sysname SwitchA # vlan batch 10 20 # interface Eth-Trunk1 port link-type trunk port trunk allow-pass vlan 10 20 load-balance src-dst-mac # interface GigabitEthernet1/0/1 eth-trunk 1 # interface GigabitEthernet1/0/2 eth-trunk 1 # interface GigabitEthernet1/0/3 eth-trunk 1 # interface GigabitEthernet1/0/4 port link-type trunk port trunk allow-pass vlan 10 # interface GigabitEthernet1/0/5 port link-type trunk port trunk allow-pass vlan 20 # return
SwitchB configuration file
# sysname SwitchB # vlan batch 10 20 # interface Eth-Trunk1 port link-type trunk port trunk allow-pass vlan 10 20 load-balance src-dst-mac # interface GigabitEthernet1/0/1 eth-trunk 1 # interface GigabitEthernet1/0/2 eth-trunk 1 # interface GigabitEthernet1/0/3 eth-trunk 1 # interface GigabitEthernet1/0/4 port link-type trunk port trunk allow-pass vlan 10 # interface GigabitEthernet1/0/5 port link-type trunk port trunk allow-pass vlan 20 # return