Send document comments to nexus7k-docfeedback@cisco.com.
17-7
Cisco Nexus 7000 Series NX-OS Unicast Routing Configuration Guide, Release 4.x
OL-20002-02
Chapter 17      Configuring Policy-Based Routing
Verifying Policy-Based Routing Configuration
Cisco NX-OS routes the packet as soon as it finds a next hop and an interface. 
Verifying Policy-Based Routing Configuration
To display policy-based routing configuration information, perform one of the following tasks:
Use the route-map map-name pbr-statistics to enable policy statistics. Use the clear route-map 
map-name pbr-statistics to clear these policy statistics
Policy Based-Routing Example Configuration 
This example shows how to configure a simple route policy on an interface.
feature pbr
ip access-list 1 permit ip 192.0.2.1 
! 
interface ethernet 1/2 
ip policy route-map equal-access 
route-map equal-access permit 10 
match ip address 1 
 set ip default next-hop 192.0.2.10 
set ipv6 next-hop 
address1
 [
address2...
] 
{load-share | peer-address}
Example:
switch(config-route-map)# set ipv6 
next-hop 2001:0DB8::1
Sets the IPv6 next-hop address for policy-based 
routing. This command uses the first valid next-hop 
address if multiple addresses are configured.
Use the optional load-share keyword to load 
balance traffic across up to 16 next-hop addresses.
set ipv6 default next-hop 
address1
 
[
address2...
]
Example:
switch(config-route-map)# set ipv6 default 
next-hop 2001:0DB8::2
Sets the IPv6 next-hop address for policy-based 
routing when there is no explicit route to a 
destination. This command uses the first valid 
next-hop address if multiple addresses are 
configured.
set vrf 
vrf-name
Example:
switch(config-route-map)# set vrf MainVRF
Sets the VRF for next-hop resolution.
Command Purpose
Command Purpose
show [ip | ipv6] policy [name]  Displays information about an IPv4 or IPv6 
policy
show route-map [name] pbr-statistics Displays policy statistics.