System information
Configuring Routing Policy
7-17
set ip next-hop defines a list of IP addresses that specify the next hop router in the
path toward the destination to which the packets should be forwarded. The first IP
address associated with a reachable interface is used to route the packets. To set the
next-hop attribute of a route, use the set ip next-hop command in Route Map
Configuration mode, as shown in the example below:
MOT(config-rmap)#set ip next-hop <addr>
set default interface defines a list of default interfaces. If there is no explicit route
available to the destination address of the packet being considered for policy routing,
then it is sent to the first reachable interface in the list of specified default interfaces.
To set the default output interface, use the set default interface command in Route
Map Configuration mode, as shown in the example below:
MOT(config-rmap)#set default interface <addr>
set ip default next-hop defines a list of default next hop IP addresses. Routing to the
interface or the next hop specified by this set command occursd only if there is no
explicit route for the destination address of the packet in the routing table. To set the
next-hop of a route, use the set ip default next-hop command in Route Map
Configuration mode, as shown in the example below:
MOT(config-rmap)#set ip default next-hop <addr>
set ip diff-serv defines a value that sets the precedence in the IP packets. To change
the differentiated service value, use the set ip diff-serv command in Route Map
Configuration mode, as shown in the example below:
Note: The set commands, described previously, will be applied in the
following order:
set interface
set ip next-hop
set default interface
set ip default next-hop
The first applicable set command in the list will be applied. For example, if the
interface specified by "set interface" is unreachable, then "set ip next-hop"
will be applied.