Cisco Nexus 7000 Series Configuration Manual page 407

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

Advertisement

Chapter 16
Configuring Route Policy Manager
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 .
DETAILED STEPS
Command
Step 1
config t
Example:
switch# config t
switch(config)#
Step 2
{ip | ipv6} prefix-list name description
string
Example:
switch(config)# ip prefix-list
AllowPrefix description allows
engineering server
Step 3
ip prefix-list name [seq number ]
[{permit | deny} prefix {[eq
prefix-length ] | [ge prefix-length ] [le
prefix-length ]}]
Example:
switch(config)# ip prefix-list
AllowPrefix seq 10 permit 192.0.2.0 eq
24
ipv6 prefix-list name [seq number ]
[{permit | deny} prefix {[eq
prefix-length ] | [ge prefix-length ] [le
prefix-length ]}]
Example:
switch(config)# ipv6 prefix-list
AllowIPv6Prefix seq 10 permit
2001:0DB8:: le 32
Step 4
show {ip | ipv6} prefix-list name
Example:
switch(config)# show ip prefix-list
AllowPrefix
Step 5
copy running-config startup-config
Example:
switch# copy running-config
startup-config
The following example shows how to create an IPv4 prefix list with two entries and apply the prefix list
to a BGP neighbor:
switch# config t
switch(config)# ip prefix-list allowprefix seq 10 permit 192.0.2.0/24 eq 24
switch(config)# ip prefix-list allowprefix seq 20 permit 209.165.201.0/27 eq 27
switch(config)# router bgp 65536:20
switch(config-router)# neighbor 192.0.2.1/16 remote-as 65535:20
switch(config-router-neighbor)# address-family ipv4 unicast
switch(config-router-neighbor-af)# prefix-list allowprefix in
OL-20002-02
Purpose
Enters configuration mode.
(Optional) Adds an information string about the prefix
list.
Creates an IPv4 prefix list or adds a prefix to an
existing prefix list. The prefix length is matched as
follows:
Creates an IPv6 prefix list or adds a prefix to an
existing prefix list. The prefix length is configured as
follows:
(Optional) Displays information about prefix lists.
(Optional) Saves this configuration change.
Cisco Nexus 7000 Series NX-OS Unicast Routing Configuration Guide, Release 4.x
Configuring Route Policy Manager
eq—Matches the exact prefix length.
ge—Matches a prefix length that is equal to or
greater than the configured prefix length.
le—Matches a prefix length that is equal to or less
than the configured prefix length.
eq—Matches the exact prefix length.
ge—Matches a prefix length that is equal to or
greater than the configured prefix length.
le—Matches a prefix length that is equal to or less
than the configured prefix length.
16-7

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents