Policy-Based Routing
Step 4
Step 5
Step 6
Step 7
Step 8
Step 9
Step 10
Step 11
Routing Configuration Guide, Cisco IOS XE Everest 16.6.x (Catalyst 9500 Switches)
196
Command or Action
Example:
Device(config-route-map)# match
ip address 110 140
match length min max
Example:
Device(config-route-map)# match
length 64 1500
set ip next-hop ip-address
[...ip-address]
Example:
Device(config-route-map)# set ip
next-hop 10.1.6.2
exit
Example:
Device(config-route-map)# exit
interface interface-id
Example:
Device(config)# interface
gigabitethernet 1/0/1
ip policy route-map map-tag
Example:
Device(config-if)# ip policy
route-map pbr-map
ip route-cache policy
Example:
Device(config-if)# ip route-cache
policy
exit
Example:
Device(config-if)# exit
ip local policy route-map map-tag
Example:
Device(config)# ip local policy
route-map local-pbr
Purpose
If you do not specify a match command, the route map
is applicable to all packets.
Matches the length of the packet.
Specifies the action to be taken on the packets that match
the criteria. Sets next hop to which to route the packet
(the next hop must be adjacent).
Returns to global configuration mode.
Enters interface configuration mode, and specifies the
interface to be configured.
Enables PBR on a Layer 3 interface, and identify the
route map to use. You can configure only one route map
on an interface. However, you can have multiple route
map entries with different sequence numbers. These
entries are evaluated in the order of sequence number
until the first match. If there is no match, packets are
routed as usual.
(Optional) Enables fast-switching PBR. You must enable
PBR before enabling fast-switching PBR.
Returns to global configuration mode.
(Optional) Enables local PBR to perform policy-based
routing on packets originating at the switch. This applies
to packets generated by the switch, and not to incoming
packets.
Configuring IP Unicast Routing
Need help?
Do you have a question about the Catalyst 9500 series and is the answer not in the manual?