EasyManua.ls Logo

Cisco Nexus 7000 Series - Page 407

Cisco Nexus 7000 Series
536 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Send document comments to nexus7k-docfeedback@cisco.com.
16-7
Cisco Nexus 7000 Series NX-OS Unicast Routing Configuration Guide, Release 4.x
OL-20002-02
Chapter 16 Configuring Route Policy Manager
Configuring Route Policy Manager
DETAILED STEPS
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
Command Purpose
Step 1
config t
Example:
switch# config t
switch(config)#
Enters configuration mode.
Step 2
{ip | ipv6} prefix-list
name
description
string
Example:
switch(config)# ip prefix-list
AllowPrefix description allows
engineering server
(Optional) Adds an information string about the prefix
list.
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
Creates an IPv4 prefix list or adds a prefix to an
existing prefix list. The prefix length is matched as
follows:
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.
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
Creates an IPv6 prefix list or adds a prefix to an
existing prefix list. The prefix length is configured as
follows:
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.
Step 4
show {ip | ipv6} prefix-list
name
Example:
switch(config)# show ip prefix-list
AllowPrefix
(Optional) Displays information about prefix lists.
Step 5
copy running-config startup-config
Example:
switch# copy running-config
startup-config
(Optional) Saves this configuration change.

Table of Contents

Other manuals for Cisco Nexus 7000 Series

Related product manuals