Specifications

Send document comments to nexus3k-docfeedback@cisco.com.
13-7
Cisco Nexus 3000 Series NX-OS Unicast Routing Configuration Guide, Release 5.0(3)U2(2)
OL-25782-02
Chapter 13 Configuring Route Policy Manager
Configuring Route Policy Manager
DETAILED STEPS
This example shows how to create an IPv4 prefix list with two entries and apply the prefix list to a BGP
neighbor:
switch# configure terminal
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
Configuring MAC Lists
You can configure a MAC list to permit or deny a range of MAC addresses.
SUMMARY STEPS
1. configure terminal
2. mac-list name [seq number] {permit | deny} mac-address [mac-mask]
Command Purpose
Step 1
configure terminal
Example:
switch# configure terminal
switch(config)#
Enters configuration mode.
Step 2
ip 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.
Step 4
show ip 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.