Configuration Guide Configuring IPv4/IPv6 REF
Packet forwarding path
Packets are forwarded based on their IPv4/IPv6 addresses. If the source and destination IPv4/IPv6 addresses of a packet
are specified, the forwarding path of this packet is determined.
9.3.1 Load Balancing Policies
Load balancing is configured to distribute traffic load among multiple network links.
Working Principle
REF supports two load balancing modes. In the REF model, a route prefix is associated with multiple next hops, in other
words, it is a multi-path route. The route will be associated with a load balance table and implement weight-based load
balancing. When an IPv4/IPv6 packet is matched with a load balance entry based on the longest prefix match, REF performs
hash calculation based on the IPv4/IPv6 address of the packet and selects a path to forward the packet.
IPv4/IPv6 REF supports two kinds of load balancing policies: load balancing based on destination IP address, and load
balancing based on the source and destination IP addresses.
Related Configuration
Configuring Load Balancing Based on IPv4 Source and Destination Addresses
By default, load balancing is implemented based on the IPv4 destination addresses.
Run the ip ref load-sharing original command to configure the load balancing.
After the configuration, load balancing is implemented based on the IPv4 source and destination addresses.
Configuring Load Balancing Based on IPv6 Source and Destination Addresses
By default, load balancing is implemented based on the IPv6 destination addresses.
Run the ipv6 ref load-sharing original command to configure the load balancing.
After the configuration, load balancing is implemented based on the IPv6 source and destination addresses.
9.4 Configuration
Configuring Load
Balancing Policies
ip ref load-sharing original
Enables the load balancing algorithm based on
IPv4 source and destination addresses.
ipv6 ref load-sharing original
Enables the load balancing algorithm based on
IPv6 source and destination addresses.