42-14
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
Verifying the PBR Configuration for VRF Instances
To verify the PBR configuration for VRF instances, enter the following steps in any order:
The following example shows you how to configure PBR for VRF instances:
Switch#
enable
Switch#
configure terminal
Switch(config)#
route-map map1 permit 10
Switch(config-route-map)#
set ipv6 vrf myvrf next-hop 2001.DB8:4:1::1/64
Switch(config-route-map)#
end
Switch#
show route-map map1
Verifying Next-Hop IP using Object Tracking
To verify the next-hop IP address using PBR with Object Tracking, perform the following steps:
Note
The
set ip next-hop verify-availability
command is not supported on VRF instances, on a virtual
switching system (VSS), and with IPv6 traffic.
Step 5
Set one of the following:
For global routing:
Switch(config-route-map)#
set global
For inter-VRF routing:s
Switch(config-route-map)#
set vrf
[vrf name]
Specifies that the global routing table should be looked-up to
route packets,
Use the
set global
command to configure VRF-to-Global
routing.
Use the
set vrf
command to specify the VRF table to be
looked-up, to route packets.
Use this command to configure Inter-VRF routing and route
packets arriving at a particular VRF interface through a
different VRF interface, by looking-up a different VRF’s
routing table. This command overrides the default or global
routing table. If a route is not specified in the VRF routing
table, then packets are dropped (even if a route exists in the
global routing table)
Step 6
Switch(config-route-map)#
interface
interface-type interface-number
Specifies the interface. This command puts the switch into
interface configuration mode.
Step 7
Switch(config-if)#
ipv6 policy route-map
map-tag
Identifies the route map to use for PBR. One interface can
only have one route map tag, but you can have multiple route
map entries with different sequence numbers. These entries
are evaluated in sequence number order until the first match.
If no match exists, packets are routed as usual.
Command
Purpose
Command
Purpose
Step 1
Switch#
show ip access list
[
access-list-number
|
access-list-name
]
Displays the subnet ranges defined as match criteria
in the standard access lists.
Step 2
Switch#
show route-map
[
map-name
]
Displays the match and set commands in the route
map.
Summary of Contents for Catalyst 4500 Series
Page 2: ......
Page 4: ......
Page 2086: ...Index IN 46 Software Configuration Guide Release IOS XE 3 9 0E and IOS 15 2 5 E ...