61 neighbor prefix-list – CANOGA PERKINS 9175 Command Reference User Manual
Page 285
CanogaOS Command Reference
16-40
16.61 neighbor prefix-list
Use this command to distribute BGP neighbor information as specified in a prefix list.
Use the no parameter with this command to remove an entry.
Command Syntax
(no) neighbor NEIGHBORID prefix-list LISTNAME in|out
NEIGHBORID = A.B.C.D|X:X::X:X|TAG
A.B.C.D Specifies the address of the BGP neighbor in IPv4 format.
X:X::X:X Specifies the address of the BGP neighbor in IPv6 format.
TAG Name of an existing peer-group.
For information on how to create peer groups, refer to the neighbor peer-group and neighbor remote-as
commands. When this parameter is used
with a command, the command applies on all peers in the specified group.
LISTNAME The number of an AS-path access list.
in Specifies that the access list applies to incoming advertisements.
out Specifies that the access list applies to outgoing advertisements.
Command Mode
Router mode and Address Family mode
Usage
Use this command to specify a prefix list for filtering BGP advertisements. Filtering by prefix list matches the
prefixes of routes with those listed in the prefix list. If there is a match, the route is used. An empty prefix list
permits all prefixes. If a given prefix does not match any entries of a prefix list, the route is denied access.
When multiple entries of a prefix list match a prefix, the entry with the smallest sequence number is
considered to be a real match.
The router begins the search at the top of the prefix list, with the sequence number 1. Once a match or deny
occurs, the router does not need to go through the rest of the prefix list. For efficiency the most common
matches or denies are listed at the top.
The neighbor distribute-list command is an alternative to the neighbor prefix-list command and only
one of them can be used for filtering to the same neighbor in any direction.
Examples
Switch# configure terminal
Switch(config)# ip prefix-list list1 deny 30.0.0.0/24
Switch(config)# router bgp 12
Switch(config-router)# neighbor 10.10.10.10 prefix-list list1 in
Related Commands
ip prefix-list