Name
ip policy route-map — interface
Synopsis
ip policy route-mapmap
no ip policy route-mapmap
Configures
Policy routing
Default
None
Description
This command enables policy routing for an interface. In brief,
policy routing means using criteria other than the shortest path (as
computed by a routing protocol) for route selection. The
map
parameter is the name of a route map
that specifies the routing policy. The map applies only to traffic
arriving on the interface.
Example
The following configuration applies the route map
map1
to packets arriving on the
serial1
interface. This route map selects packets
that match access list 101 and sends them to the router at 10.1.1.1
for further routing, regardless of other information in the routing
table.
access-list 101 permit ip 10.1.5.0 0.0.0.255 any ! interface serial 1 ip policy route-map map1 ! route-map map1 match ip address 101 set ip next-hop 10.1.1.1
Get CISCO IOS in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.