Verifying Policy-Based Routing Configuration; Policy Based-Routing Example Configuration - Cisco Nexus 7000 Series Configuration Manual

Nx-os unicast routing configuration
Hide thumbs Also See for Nexus 7000 Series:
Table of Contents

Advertisement

Chapter 17
Configuring Policy-Based Routing
S e n d d o c u m e n t c o m m e n t s t o n e x u s 7 k - d o c f e e d b a c k @ c i s c o . c o m .
Command
set ipv6 next-hop address1 [ address2... ]
{load-share | peer-address}
Example:
switch(config-route-map)# set ipv6
next-hop 2001:0DB8::1
set ipv6 default next-hop address1
[ address2... ]
Example:
switch(config-route-map)# set ipv6 default
next-hop 2001:0DB8::2
set vrf vrf-name
Example:
switch(config-route-map)# set vrf MainVRF
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:
Command
show [ip | ipv6] policy [name]
show route-map [name] pbr-statistics
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
OL-20002-02
Purpose
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.
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.
Sets the VRF for next-hop resolution.
Purpose
Displays information about an IPv4 or IPv6
policy
Displays policy statistics.
Cisco Nexus 7000 Series NX-OS Unicast Routing Configuration Guide, Release 4.x
Verifying Policy-Based Routing Configuration
17-7

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents