You are on page 1of 5

Link Aggregation Lab Guide

1 Link Aggregation Lab Guide


1.1 Lab Introduction
1.1.1 Background
A company uses the single-core deployment mode for its local area network (LAN). To
improve network stability and the bandwidth between devices, the company decides to use the
link aggregation technology between the core switch and distribution switch and between the
distribution switch and access switch.
As the network administrator of the company, you need to design, plan, and configure the
link aggregation mode.
1.1.2 Lab Purpose
(1) Master the configuration commands and status check commands of L2 link aggregation and
L3 link aggregation.
(2) Master the configurations of static aggregation and dynamic aggregation.
(3) Master the load balancing configuration in link aggregation.
1.1.3 Lab Topology
Figure 1-1 Topology of the Link Aggregation Lab

1.1.4 Lab Requirements


(1) SW1 is a core switch. SW2 is a distribution switch and serves as the gateway of the LAN.
SW3 is an access switch. Server is the LAN server and PC1 is a user terminal of the LAN.
(2) Static L3 aggregation needs to be configured for the link between SW1 and SW2, the load
balancing mode is source MAC address + destination MAC address, and the addresses for
interconnecting SW1 and SW2 are 12.0.0.1/30 and 12.0.0.2/30 respectively.
(3) Dynamic L2 aggregation needs to be configured for the link between SW2 and SW3, and the
load balancing mode is source IP address + destination IP address.
(4) PC1 belongs to VLAN 10, its IP address is 192.168.1.1/24, and its gateway address is
192.168.1.254. The IP address and gateway address of Server are 1.1.1.1/32 and 1.1.1.254
respectively. The server is used to simulate the LAN server.

1
Link Aggregation Lab Guide

(5) After link aggregation is configured, PC1 can access 1.1.1.1.


1.1.5 Configuration Ideas
(1) Configure static L3 aggregation for the link between SW1 and SW2, configure an IP address
for the aggregate port, and set the load balancing mode to source MAC address + destination
MAC address.
(2) Configure dynamic L2 aggregation for the link between SW2 and SW3, configure an IP
address for the SVI of the gateway, and set the load balancing mode to source IP address +
destination IP address.
(3) Complete static route configuration.
1.1.6 Procedure
(1) Configure static L3 aggregation for the link between SW1 and SW2, and configure an IP
address for the aggregate port, and set the load balancing mode to source MAC address +
destination MAC address.
Ruijie-SW1(config)#interface aggregatePort 1
Ruijie-SW1(config-if-AggregatePort 1)#no switchport
Ruijie-SW1(config-if-AggregatePort 1)#ip add 12.0.0.1 30
Ruijie-SW1(config-if-AggregatePort 1)#exi
Ruijie-SW1(config)#interface range gigabitEthernet 0/0-1
Ruijie-SW1(config-if-range)#no switchport
Ruijie-SW1(config-if-range)#port-group 1
Ruijie-SW1(config-if-range)#exit
Ruijie-SW1(config)#aggregateport load-balance src-dst-mac
Ruijie-SW1(config)#inter g0/2
Ruijie-SW1(config-if-GigabitEthernet 0/2)#no swit
Ruijie-SW1(config-if-GigabitEthernet 0/2)#ip add 1.1.1.254 24

Ruijie-SW2(config)#interface aggregatePort 1
Ruijie-SW2(config-if-AggregatePort 1)#no switchport
Ruijie-SW2(config-if-AggregatePort 1)#ip add 12.0.0.2 30
Ruijie-SW2(config-if-AggregatePort 1)#exi
Ruijie-SW2(config)#interface range gigabitEthernet 0/0-1
Ruijie-SW2(config-if-range)#no switchport
Ruijie-SW2(config-if-range)#port-group 1
Ruijie-SW2(config-if-range)#exit
Ruijie-SW2(config)#aggregateport load-balance src-dst-mac
(2) Configure dynamic L2 aggregation for the link between SW2 and SW3, configure an IP
address for the SVI of the gateway, and set the load balancing mode to source IP address +
destination IP address.
Ruijie-SW2(config)#interface range gigabitEthernet 0/2-3
Ruijie-SW2(config-if-range)#port-group 2 mode active
Ruijie-SW2(config-if-range)#exit
Ruijie-SW2(config)#interface aggregatePort 2
Ruijie-SW2(config-if-AggregatePort 2)#switchport mode trunk
Ruijie-SW2(config-if-AggregatePort 2)#exi
Ruijie-SW2(config)#aggregateport load-balance src-dst-ip
Ruijie-SW2(config)#vlan 10

2
Link Aggregation Lab Guide

Ruijie-SW2(config-vlan)#exi
Ruijie-SW2(config)#interface vlan 10
Ruijie-SW2(config-if-VLAN 10)#ip address 192.168.1.254 24
Ruijie-SW2(config-if-VLAN 10)#exit

Ruijie-SW3(config)#interface range gigabitEthernet 0/2-3


Ruijie-SW3(config-if-range)#port-group 2 mode active
Ruijie-SW3(config-if-range)#exit
Ruijie-SW3(config)#interface aggregatePort 2
Ruijie-SW3(config-if-AggregatePort 2)#switchport mode trunk
Ruijie-SW3(config-if-AggregatePort 2)#exit
Ruijie-SW3(config)#aggregateport load-balance src-dst-ip
Ruijie-SW3(config)#interface gigabitEthernet 0/0
Ruijie-SW3(config-if-GigabitEthernet 0/0)#switchport access vlan 10
(3) Complete static route configuration.
Ruijie-SW1(config)#ip route 192.168.1.0 255.255.255.0 AggregatePort 1 12.0.0.2
Ruijie-SW2(config)#ip route 1.1.1.0 255.255.255.0 aggregatePort 1 12.0.0.1
1.1.7 Result Verification
(1) On PC1, ping the gateway address and 1.1.1.1 to check the link connectivity after link
aggregation. As shown in the figure below, the connectivity is normal.
PC1> ip 192.168.1.1 255.255.255.0 192.168.1.254
Server> ip 1.1.1.1 255.255.255.0 1.1.1.254

(2) Shut down one member port (port G0/3) of the L2 aggregate link between SW2 and SW3.
The device logs show that the member port exits the aggregate port. The ping operation
succeeds and no packet loss occurs.
PC1> ping 1.1.1.1 –t

3
Link Aggregation Lab Guide

(3) Run the no shutdown command on port G0/3. The device logs show that the member port
joins the aggregate port. The ping operation succeeds and no packet loss occurs.

(4) Verify the result when a member port of the L3 aggregate port between SW1 and SW2 is
faulty.
1.2 Key Points of the Lab
(1) An L2 port can be added only to an L2 aggregate port. Likewise, an L3 port can be added
only to an L3 aggregate port.

4
Link Aggregation Lab Guide

(2) Member ports of an aggregate port must have the same rate and must work in full-duplex
mode. Otherwise, the aggregation will fail.
(3) In L2 aggregation, member ports must belong to the same VLAN. Otherwise, the aggregation
will fail.

You might also like