114
[SwitchB-Vlan-interface20] ip address 20.1.1.2 24
[SwitchB-Vlan-interface20] quit
# On Switch A, configure two static routes to the destination IP address.
<SwitchA> system-view
[SwitchA] ip route-static 1.2.3.4 24 10.1.1.2
[SwitchA] ip route-static 1.2.3.4 24 20.1.1.2
[SwitchA] quit
# On Switch A, display FIB entries matching the destination IP address 1.2.3.4.
<SwitchA>dis fib 1.2.3.4
Destination count: 1 FIB entry count: 2
Flag:
U:Useable G:Gateway H:Host B:Blackhole D:Dynamic S:Static
R:Relay F:FRR
Destination/Mask Nexthop Flag OutInterface/Token Label
1.2.3.0/24 10.1.1.2 USGR Vlan10 Null
1.2.3.0/24 20.1.1.2 USGR Vlan20 Null
# On Switch A, configure per-flow load sharing based on the source IP address and destination IP
address.
<SwitchA> system-view
[SwitchA] ip load-sharing mode per-flow dest-ip src-ip
Verifying the configuration
# Verify that Switch A implements load sharing.
[SwitchA] display counters outbound interface Ten-GigabitEthernet
Interface Total (pkts) Broadcast (pkts) Multicast (pkts) Err (pkts)
XGE1/1/5 0 0 0 0
XGE1/1/6 0 0 0 0
XGE1/1/7 0 0 0 0
XGE1/1/8 0 0 0 0
XGE1/1/9 1045 0 0 0
XGE1/1/10 1044 0 0 0