Cisco Systems 4500 Switch User Manual


  Open as PDF
of 1504
 
35-8
Software Configuration Guide—Release 15.0(2)SG
OL-23818-01
Chapter 35 Configuring Policy-Based Routing
Policy-Based Routing Configuration Examples
Use the set commands with each other. These commands are evaluated in the order shown in Step 3 in
the previous task table. A usable next hop implies an interface. Once the local switch finds a next hop
and a usable interface, it routes the packet.
Enabling Local PBR
Packets that are generated by the switch are not normally policy-routed. To enable local PBR for such
packets, indicate which route map the switch should use by entering this command:
All packets originating on the switch are then 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 commands, 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, page 35-8
Differing Next Hops, page 35-9
Deny ACE, page 35-9
For information on how to configure policy-based routing, see the section “Policy-Based Routing
Configuration Tasks” in this chapter.
Equal Access
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 switch at 6.6.6.6 if
the switch has no explicit route for the destination of the packet. Packets arriving from the source 2.2.2.2
are sent to the switch at 7.7.7.7 if the switch has no explicit route for the destination of the packet. All
other packets for which the switch has no explicit route to the destination are discarded.
Command Purpose
Switch(config)# ip local policy route-map map-tag
Identifies the route map to use for local PBR.