ip policy route-map

Enables policy-based routing (PBR).

Syntax

ip policy route-map map-name
no ip policy route-map map-name

Command Default

PBR is not enabled.

Parameters

map-name
Specifies the name of the route map.

Modes

Interface configuration mode

Port-channel configuration mode

Virtual interface configuration mode

Usage Guidelines

The no form of the command disables PBR.

Examples

The following example enables PBR on a specific interface.

device# configure terminal
device(config)# route-map test-route permit 99
device(config-route-map-test-route/permit/99)# match ip address acl 99
device(config-route-map-test-route/permit/99)# set ip next-hop 192.168.3.1
device(config-route-map-test-route/permit/99)# exit
device(config)# interface ethernet 1/1
device(conf-if-eth-1/1)# ip policy route-map test-route