ip policy route-map

Enables policy-based routing (PBR).
Syntax
ip policy route-mapmap-name
no ip policy route-mapmap-name
Command Default

PBR is not enabled.

Parameters
map-name
Specifies the name of the route map.
Modes

Global configuration mode

Interface configuration mode

Virtual interface configuration mode

Usage Guidelines

This command can be used to enable PBR globally on all interfaces or on a specific interface.

The no form of the command disables PBR.

Examples

The following example enables PBR globally.

device(config)# route-map map1
device(config-routemap map1)# exit
device(config)# ip policy route-map map1

The following example enables PBR on a specific interface.

device(config)# interface ethernet 1/1/1
device(config-if-e1000-1/1/1)# ip policy route-map map1