Policy-Based Routing Configuration Tasks - Cisco Catalyst 4500 series Administration Manual

Hide thumbs Also See for Catalyst 4500 series:
Table of Contents

Advertisement

Policy-Based Routing Configuration Tasks

PBR configuration is only allowed on interfaces belonging to the global routing table. PBR is not
Note
supported on interfaces that belong to VRFs.
Policy-Based Routing Configuration Tasks
To configure PBR, perform the tasks described in the following sections. The task in the first section is
required; the tasks in the remaining sections are optional. For configuration examples, see the
"Policy-Based Routing Configuration Examples" section on page
Enabling IPv4 PBR
To enable PBR, you must create a route map that specifies the match criteria and the resulting action if
all of the match clauses are met. Then you must apply that route-map on a particular interface. All
packets arriving on the specified interface matching the match clauses are subject to PBR.
To enable IPv4 PBR on an interface, perform this task:
Command
Step 1
Switch(config)# route-map map-tag [permit |
deny] [sequence-number]
Step 2
Switch(config-route-map)# match ip address
{access-list-number | name}
[...access-list-number | name]
Step 3
Switch(config-route-map)# set ip next-hop
ip-address [... ip-address]
Or
Software Configuration Guide—Release IOS XE 3.6.0E and IOS 15.2(2)E
40-6
Enabling IPv4 PBR, page 40-6
Enabling IPv6 PBR, page 40-8
Enabling Local IPv4 and Local IPv6 PBR, page 40-11
Examples of the show Command, page 40-11
Unsupported Commands, page 40-11
(Required)
(Required)
(Optional)
(Optional)
Purpose
Defines a route map to control where packets are sent. This
command puts the switch into route-map configuration mode.
Specifies the match criteria. The match criteria take the form
of one or more Standard or Extended IP access-lists. The
access-lists can specify the source and destination IP
addresses, protocol types, and port numbers.
Specifies the next-hop IP address to which matching packets
are sent. The next-hop IP address specified here must belong
to a subnet that is directly connected to this switch.
If more than one next-hop IP address is specified, the first
usable next-hop is chosen for routing matching packets. If the
next-hop is (or becomes) unavailable for some reason, the
next one in the list is chosen.
Chapter 40
Configuring Policy-Based Routing
40-12.
OL_28731-01

Advertisement

Table of Contents
loading

Table of Contents