Cisco Nexus 7000 Series Configuration Manual page 426

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

Advertisement

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 .
The following example shows how to add a route map to an interface:
switch# config t
switch(config)# interface ethernet 1/2
switch(config-if)# ip policy route-map Testmap
switch(config)# exit
switch(config)# copy running-config startup-config
You can configure the following optional match parameters for route maps in route-map configuration
mode:
Command
match ip address access-list-name name
[ name... ]
Example:
switch(config-route-map)# match ip address
access-list-name ACL1
match ipv6 address access-list-name name
[ name... ]
Example:
switch(config-route-map)# match ipv6
address access-list-name ACLv6
match length min max
Example:
switch(config-route-map)# match length 64
1500
You can configure the following optional set parameters for route maps in route-map configuration
mode:
Command
set ip next-hop address1 [ address2... ]
{load-share | peer-address}
Example:
switch(config-route-map)# set ip next-hop
192.0.2.1
set ip default next-hop address1
[ address2... ] {load-share}
Example:
switch(config-route-map)# set ip default
next-hop 192.0.2.2
Cisco Nexus 7000 Series NX-OS Unicast Routing Configuration Guide, Release 4.x
17-6
Chapter 17
Configuring Policy-Based Routing
Purpose
Match an IPv4 address against one or more IP
access control lists (ACLs). This command is used
for policy-based routing and ignored by route
filtering or redistribution.
Match an IPv6 address against one or more IPv6
ACLs. This command is used for policy-based
routing and ignored by route filtering or
redistribution.
Match against the length of the packet. This
command is used for policy-based routing.
Purpose
Sets the IPv4 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 IPv4 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.
Use the optional load-share keyword to load
balance traffic across up to 16 next-hop addresses.
OL-20002-02

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents