25-5
Software Configuration Guide—Release 12.2(25)SG
OL-7659-03
Chapter25 Configuring Policy-Based Rou ting
Policy-Based Routing Configuration Examples

Enabling Local PBR

Packets that are generated by the router are not normally policy-routed. To enable local PBR for such
packets, indicate which route map the router should use by perf orming this task:
All packets originating on the router will then be subject to local PBR.
Use the show ip local policy command to display the route map used for local PBR, if one exists.

Unsupported Commands

The following PBR commands in config-route-map mode are in the CLI but not supported in Cisco IOS
for the Catalyst 4500 series switches. If you attempt to use these com mands, an error message displays.
match-length
set ip qos
set ip tos
set ip precedence
Policy-Based Routing Configuration Examples
The following sections provide PBR configuration examples:
Equal Access Example, page 25-5
Differing Next Hops Example, page 25-6
Deny ACE Example, page 25-6
For information on how to configure policy-based routing, see the section “Policy-Based Routing
Configuration Task List” in this chapter.

Equal Access Example

The following example provides two sources with equal access to two different service providers.
Packets arriving on interface fastethernet 3/1 from the source 1.1.1.1 are sent to the router at 6.6.6.6 if
the router has no explicit route for the destination of the packet. Packets arriving from the source 2.2.2. 2
are sent to the router at 7.7.7.7 if the router has no explicit route for the destination of the packet. All
other packets for which the router has no explicit route to the destination are discarded.
Switch (config)# access-list 1 permit ip 1.1.1.1
access-list 1 permit ip 1.1.1.1
!
interface fastethernet 3/1
ip policy route-map equal-access
Command Purpose
Switch(config)# ip local policy route-map
map-tag
Identifies the route map to use for local PBR.