Layer 3 Routing Commands 1488
Default Configuration
There is no default configuration for this command.
Command Mode
Route Map mode
User Guidelines
A route-map statement used for policy based routing is configured as permit
or deny. If the statement is marked as deny, traditional destination-based
routing is performed on the packet meeting the match criteria. If the
statement is marked as permit and the packet meets all the match criteria,
the set clauses in the route-map statement are applied. If no match is found
in the route-map, the packet is forwarded using the routing decision resulting
from traditional destination-based routing. If the network administrator does
not want to revert to normal forwarding but instead want to drop packets that
do not match the specified criteria, a set clause routing the packets to
interface null0 may be configured as the last (highest numbered) route-map.
Example
console(config-route-map)#set interface null0
set ip default next-hop
Use this route map clause to override default entries in the routing table.
Packets that can routed by an active explicit route in the routing table are not
affected by this clause. Use this command to set a list of default next-hop IP
addresses to be used if no explicit route for the packet’s destination address
appears in the routing table. If more than one IP address is specified, the
reachable address in the list is used. Use the no form of this command to
remove a set command from a route map.
Syntax
set ip default next-hop ip-address [ip-address]
no set ip default next-hop ip-address [ip-address]
ip-address
—
The IP address of the next hop to which packets are routed. It must be
the address of an adjacent router.
• ip-address—A maximum of 16 next-hop IP addresses can be specified.