195
Cisco Nexus 3548 Switch NX-OS Unicast Routing Command Reference
OL-27852-01
Chapter Unicast Routing Commands
ip prefix-list
Tip For the best performance of your network, you should configure the most frequently processed prefix
list statements with the lowest sequence numbers. The seq number keyword and argument can be used
for resequencing.
The prefix list is applied to inbound or outbound updates for specific peer by entering the prefix-list
command in neighbor address-family mode. Prefix list information and counters are displayed in the
output of the show ip prefix-list command. Prefix-list counters can be reset by entering the clear ip
prefix-list command.
This command does not require a license.
Examples This example shows how to configure a prefix list and apply it to a Border Gateway Protocol (BGP) peer:
switch# configure terminal
switch(config)# ip prefix-list allowprefix 10 permit 192.0.2.0 eq 24
switch(config)# ip prefix-list allowprefix 20 permit 209.165.201.0 eq 27
switch(config) router bgp 65536:20
switch(config-router)# neighbor 192.0.2.1/16 remote-as 65536:20
switch(config-router-neighbor)# address-family ipv4 unicast
switch(config-router-neighbor-af)# prefix-list allowprefix in
switch(config-router-neighbor-af)#
Related Commands Command Description
clear ip prefix-list Clears counters for IP prefix lists.
prefix-list Applies a prefix list to BGP peer.
show ip prefix-list Displays information about IP prefix lists.