42-12
Catalyst 4500 Series Switch, Cisco IOS Software Configuration Guide - Cisco IOS XE 3.9.xE and IOS 15.2(5)Ex
Chapter 42 Configuring Policy-Based Routing
Policy-Based Routing Configuration Tasks
Enabling Local IPv4 and Local IPv6 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:
IPv4
IPv6
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.
Configuring IPv4 and IPv6 PBR for VRF Instances
To enable PBR for multiple routing instances, configure your device in the following way:
Command Purpose
Switch(config)# ip local policy route-map map-tag
Identifies the IPv4 route map to use for local PBR.
Command Purpose
Switch(config)# ipv6 local policy route-map map-tag
Identifies the IPv6 route map to use for local PBR.
Command Purpose
Step 1
Switch(config)# route-map map-tag [permit |
deny] [sequence-number]
Defines a route map to control where packets are sent. This
command puts the switch into route-map configuration mode.
Step 2
For IPv4:
Switch(config-route-map)# match ip address
{access-list-number | name}
[...access-list-number | name]
For IPv6:
Switch(config-route-map)# match ipv6 address
{access-list-number | name}
[...access-list-number | name]
Specifies the match criteria. The match criteria take the form
of one or more Standard or Extended access-lists. The
access-lists can specify the source and destination IP
addresses, protocol types, and port numbers.