Configuration procedure
# On Router A, specify 10.1.1.1/24 as the IP address of GigabitEthernet 1/0/1.
<RouterA> system-view [RouterA] interface gigabitethernet 1/0/1 [RouterA-GigabitEthernet1/0/1] ip address 10.1.1.1 24 [RouterA-GigabitEthernet1/0/1] quit
# On Router A, specify 20.1.1.1/24 as the IP address of GigabitEthernet 1/0/2.
[RouterA] interface gigabitethernet 1/0/2 [RouterA-GigabitEthernet1/0/2] ip address 20.1.1.1 24 [RouterA-GigabitEthernet1/0/2] quit
# On Router B, specify 10.1.1.2/24 as the IP address of GigabitEthernet 1/0/1.
<RouterB> system-view [RouterB] interface gigabitethernet 1/0/1 [RouterB-GigabitEthernet1/0/1] ip address 10.1.1.2 24 [RouterB-GigabitEthernet1/0/1] quit
# On Router B, specify 20.1.1.2/24 as the IP address of GigabitEthernet 1/0/2.
[RouterB] interface gigabitethernet 1/0/2 [RouterB-GigabitEthernet1/0/2] ip address 20.1.1.2 24 [RouterA-GigabitEthernet1/0/2] quit
# On Router A, configure two static routes to the destination IP address.
<RouterA> system-view [RouterA] ip route-static 1.2.3.4 24 10.1.1.2 [RouterA] ip route-static 1.2.3.4 24 20.1.1.2 [RouterA] quit
# On Router A, display FIB entries matching the destination IP address 1.2.3.4.
<RouterA> display 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 GE1/0/1 Null 1.2.3.0/24 20.1.1.2 USGR GE1/0/2 Null
# On Router A, configure per-flow load sharing based on the source IP address and destination IP address.
<RouterA> system-view [RouterA] ip load-sharing mode per-flow dest-ip src-ip global [RouterA] quit