Chapter 11
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 3 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
configure terminal
Example:
switch# configure terminal
switch(config)#
Step 2
ip 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
Step 4
show ip 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
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.
2.
configure terminal
mac-list name [seq number] {permit | deny} mac-address [mac-mask]
Cisco Nexus 3000 Series NX-OS Unicast Routing Configuration Guide, NX-OS Release 5.0(3)U1(1)
Configuring Route Policy Manager
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:
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.
(Optional) Displays information about prefix lists.
(Optional) Saves this configuration change.
11-7