Send document comments to nexus7k-docfeedback@cisco.com.
17-5
Cisco Nexus 7000 Series NX-OS Unicast Routing Configuration Guide, Release 4.x
OL-20002-02
Chapter 17      Configuring Policy-Based Routing
Configuring Policy-Based Routing
Configuring a Route Policy
You can use route maps in policy-based routing to assign routing policies to the inbound interface. See 
“Configuring Route Maps” section on page 16-11.
SUMMARY STEPS
1. config t
2. interface type slot/port
3. ip policy route-map map-name
or
4. ipv6 policy route-map map-nam
5. exit
6. copy running-config startup-config
DETAILED STEPS
Command Purpose
Step 1
config t
Example:
switch# config t
switch(config)#
Enters configuration mode.
Step 2
interface 
type slot/port
Example:
switch(config)# interface ethernet 1/2
switch(config-if)#
Enters interface configuration mode.
Step 3
ip policy route-map 
map-name
 
Example:
switch(config-if)# ip policy route-map 
Testmap
Assigns a route map for IPv4 policy-based routing to 
the interface.
ipv6 policy route-map 
map-name
 
Example:
switch(config-if)# ipv6 policy route-map 
TestIPv6map
Assigns a route map for IPv6 policy-based routing to 
the interface.
Step 4
exit
Example:
switch(config-route-map)# exit
(Optional) Exits route-map configuration mode.
Step 5
exit
Example:
switch(config)# exit
(Optional) Exits route-map configuration mode.
Step 6
copy running-config startup-config
Example:
switch# copy running-config 
startup-config
(Optional) Saves this configuration change.