ip policy load-policy (S-, K-Series)

Use this command to configure priority-based routing next hop behavior.

Syntax

ip policy load-policy {first-available | round-robin | ip-hash {source | destination | both}}
no ip policy load-policy

Parameters

first-available Uses the first available next hop from the list of next hops. (Default).
round-robin Uses a round robin algorithm to select from the list of next hops.
ip-hash Selects the next hop behavior based on a random equal distribution possible next hops.
sip Selects the next hop based upon a random equal distribution of IP source addresses.
dip Selects the next hop based upon a random equal distribution of IP destination addresses.
both Selects the next hop based upon a random equal distribution of both the IP source addresses and the IP destination addresses.

Defaults

None.

Mode

Interface configuration.

Usage

When more than one next hop is configured (using the set next hop command as described in set next-hop (policy)) the load policy specifies choosing one next hop from among the sequence of next hops in the map matching the current packet. A next hop is considered available by default unless a route-map probe is monitoring the next hop and has flagged it as unavailable.

The “no” form of this command resets the next hop behavior to first-available.

Example

This example shows how to set the load policy behavior on VLAN 1 to “round-robin”:

System(rw-config)->interface vlan 1
System(rw-config-intf-vlan.0.1)->ip policy load-policy round-robin