ip policy route-map
ip policy route-map map-tag
no ip policy route-map map-tag
map-tag Name of the route map to use for policy routing. The name must match a map-tag value specified by a route-map command.
To identify a route map to use for policy routing on an interface, use the ip policy route-map command in interface configuration mode. To disable policy routing on the interface, use the no form of this command.
By default, no policy routing occurs on the interface.
You might enable policy routing if you want your packets to take a route other than the obvious shortest path.
The ip policy route-map command identifies a route map to use for policy routing. Each route-map command has a list of match and set commands associated with it. The match commands specify the match criteria the conditions under which policy routing is allowed for the interface. The set commands specify the set actions the particular policy routing actions to perform if the criteria enforced by the match commands are met. The no ip policy route-map command deletes the pointer to the route map.
Policy routing can be performed on any match criteria that can be defined in an extended IP access list when using the match ip address command and referencing an extended IP access list.
The following example sends packets with the destination IP address of 184.108.40.206 to a router at IP address 220.127.116.11:Router(config-if)#interface serial 0 Router(config-if)#ip policy route-map wethersfield Router(config-if)#route-map wethersfield Router(config-if)#match ip address 18.104.22.168 Router(config-if)#set ip next-hop 22.214.171.124
match ip address
set default interface
set ip default next-hop verify-availability
set ip next-hop
� Cisco Systems, Inc. 2001, 2002, 2003
World Wide Education
|Converted from CHM to HTML with chm2web Pro 2.85 (unicode)|