Enables policy-based routing (PBR).
Syntax
ip policy route-map
map-nameno ip policy route-map
map-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# configure terminal
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# configure terminal
device(config)# interface ethernet 1/1/1
device(config-if-e1000-1/1/1)# ip policy route-map map1