beautypg.com

Configuring load sharing, Configuration procedure, Enabling local-first load sharing – H3C Technologies H3C S5560 Series Switches User Manual

Page 131

background image

116

Configuring load sharing

If a routing protocol finds multiple equal-cost best routes to the same destination, the device forwards

packets over the equal-cost routes to implement load sharing.

Configuration procedure

Per-flow load sharing allows the device to forward flows over equal-cost routes. Packets of one flow travel

along the same routes. You can configure the device to identify a flow based on the source IP address,

destination IP address, source port number, destination port number, IP protocol number, and ingress

port.
In a complex network, when these criteria cannot distinguish flows, you can use the algorithm keyword

to specify an algorithm to identify flows for load sharing.
To configure per-flow load sharing:

Step Command

Remarks

1.

Enter system view.

system-view

N/A

2.

Configure per-flow load

sharing.

ip load-sharing mode per-flow
[ algorithm algorithm-number |

[ dest-ip | dest-port | ingress-port
| ip-pro | src-ip | src-port ] * ]

[ slot slot-number ]

By default, the device performs
per-flow load sharing based on the

source IP address, destination IP

address, source port number,
destination port number, IP

protocol number, ingress port, and

VLAN.

Enabling local-first load sharing

Local-first load sharing distributes traffic preferentially across the output interfaces on the receiving IRF

member device if output interfaces for multiple equal-cost routes are on different members. This feature

enhances packets forwarding efficiency.
To enable local-first load sharing:

Step Command

Remarks

1.

Enter system view.

system-view

N/A

2.

Enable local-first load
sharing.

ip load-sharing local-first enable

By default, local-first load sharing
is enabled.

This manual is related to the following products: