Verifying the configuration – H3C Technologies H3C S5560 Series Switches User Manual
Page 133

118
# On Switch A, configure two static routes to the destination IP address.
[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.
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] ip load-sharing mode per-flow dest-ip src-ip
Verifying the configuration
# On Switch A, display outbound traffic statistics.
[SwitchA] display counters outbound interface GigabitEthernet
Interface Total (pkts) Broadcast (pkts) Multicast (pkts) Err (pkts)
GE1/0/1 0 0 0 0
GE1/0/2 0 0 0 0
GE1/0/3 0 0 0 0
GE1/0/4 0 0 0 0
GE1/0/5 1045 0 0 0
GE1/0/6 1044 0 0 0
The output shows that GigabitEthernet 1/0/5 and GigabitEthernet 1/0/6 receive almost the same
number of packets. Load sharing is implemented.