Users Guide

Table Of Contents
Verify IPv4 PBR configuration
OS10# show ip policy abc
Interface Route-map
-----------------------
ethernet1/1/1 abc
ethernet1/1/3 abc
vlan100 abc
Verify IPv6 PBR configuration
OS10# show ipv6 policy abc
Interface Route-map
-------------------------
ethernet1/1/1 abc
ethernet1/1/3 abc
vlan100 abc
View current PBR statistics
show route-map pbr-sample pbr-statistics
route-map pbr-sample, permit, sequence 10
Policy routing matches: 84 packets
Policy-based routing per VRF
Configure PBR per VRF instance for both IPv4 and IPv6 traffic flows.
Policy-based routing (PBR) enables packets with certain match criteria, such as packets from specific source and destination
addresses, to be re-directed to a different next-hop.
You can also use PBR to re-direct packets arriving on a VRF instance to a next-hop that is reachable through a different VRF
instance. You can re-direct packets arriving on any VRF instance to the default VRF instance or any other non-default VRF
instance.
NOTE:
PBR is supported on the default and non-default VRF instances; however, PBR is not supported on the
management VRF instance.
Configuring PBR per VRF
For traffic arriving on a VRF instance, you can re-direct this traffic to a next-hop on another VRF instance using route-maps. In
the route-map, set the next-hop IP address that is reachable through a different VRF instance. When traffic that matches
certain criteria arrives on a VRF instance, the route-map configuration enables packets to be re-directed to a next-hop that is
reachable over another VRF instance. To configure PBR per VRF:
1. Create the match ACL rule for IPv4 or IPv6 traffic.
{ip | ipv6} access-list access-list-name
2. Permit or deny IPv4 or IPv6 traffic from any source with a specific destination.
permit {ip | ipv6} any ip-address
or
deny {ip | ipv6} any ipaddress
3. Configure a route-map to re-direct traffic arriving on a specific VRF instance.
route-map route-map-name
4. Enter the IPv4 or IPv6 address to match and specify the access-list name.
match {ip | ipv6} address access-list-name
5. In the route-map, set the IPv4 or IPv6 next-hop to be reached through a different VRF instance.
set {ip | ipv6} vrf vrf-name next-hop next-hop-ipv4address
This next-hop-address is reachable through a different VRF instance.
Layer 3
803