Command:

ip policy route-map


Mode:

Router(config-if)#


Syntax:

ip policy route-map map-tag
no ip policy route-map map-tag

 

Syntax Description:

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.

 

Command Description:

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.


Example:

The following example sends packets with the destination IP address of 172.120.16.18 to a router at IP address 172.130.3.20:

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 172.120.16.18
Router(config-if)#set ip next-hop 172.130.3.20


Misconceptions:

None


Related Commands:

match ip address
match length
route-map
set default interface
set 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)