Load sharing configuration example
Network requirements
As shown in
packets through Switch B to the destination IP address 1.2.3.4/24.
Figure 50 Network diagram
Configuration procedure
# On Switch A, assign Ten-GigabitEthernet 1/1/9 to VLAN 10, and Ten-GigabitEthernet 1/1/10 to
VLAN 20.
<SwitchA> system-view
[SwitchA] vlan 10
[SwitchA-vlan10] port Ten-GigabitEthernet 1/1/9
[SwitchA-vlan10] quit
[SwitchA] vlan 20
[SwitchA-vlan20] port Ten-GigabitEthernet 1/1/10
[SwitchA-vlan20] quit
# On Switch A, configure IP addresses for VLAN-interface 10 and VLAN-interface 20.
[SwitchA] interface vlan-interface 10
[SwitchA-Vlan-interface10] ip address 10.1.1.1 24
[SwitchA-Vlan-interface10] quit
[SwitchA] interface vlan-interface 20
[SwitchA-Vlan-interface20] ip address 20.1.1.1 24
[SwitchA-Vlan-interface20] quit
# On Switch B, assign Ten-GigabitEthernet 1/1/9 to VLAN 10, and Ten-GigabitEthernet 1/1/10 to
VLAN 20.
<SwitchB> system-view
[SwitchB] vlan 10
[SwitchB-vlan10] port Ten-GigabitEthernet 1/1/9
[SwitchB-vlan10] quit
[SwitchB] vlan 20
[SwitchB-vlan20] port Ten-GigabitEthernet 1/1/10
[SwitchB-vlan20] quit
# On Switch B, configure IP addresses for VLAN-interface 10 and VLAN-interface 20.
[SwitchB] interface vlan-interface 10
[SwitchB-Vlan-interface10] ip address 10.1.1.2 24
[SwitchB-Vlan-interface10] quit
[SwitchB] interface vlan-interface 20
Figure
50, Switch A has two equal-cost routes to Switch B. Configure load sharing to forward
113