C613-50631-01 Rev A Command Reference for IE340 Series 1476
AlliedWare Plus™ Operating System - Version 5.5.3-0.x
BGP AND BGP4+ COMMANDS
NEIGHBOR
PREFIX-LIST
neighbor prefix-list
Overview Use this command to distribute BGP and BGP4+ neighbor information as specified
in a prefix list.
Use the no variant of this command to remove an entry.
Syntax
neighbor <neighborid> prefix-list <listname> {in|out}
no neighbor <neighborid> prefix-list <listname> {in|out}
Mode [BGP] Router Configuration or IPv4 Address Family Configuration
Mode [BGP4+] IPv6 Address Family Configuration
Usage notes Use this command to specify a prefix list for filtering BGP or BGP4+ 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.
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.
Parameter Description
<neighborid> <ip-address>|<ipv6-addr>|<peer-group>
<ip-address>
Specify the address of an IPv4 BGP neighbor, in
dotted decimal notation A.B.C.D.
<ipv6-addr>
Specify the address of an IPv6 BGP4+ neighbor,
entered in hexadecimal in the format X:X::X:X.
<peer-group>
Enter the name of an existing peer-group. For
information on how to create peer groups, refer
to the neighbor peer-group (add a neighbor)
command, and neighbor route-map command.
When this parameter is used with this
command, the command applies on all peers in
the specified group.
<listname>
The name of an IP prefix list.
in
Specifies that the IP prefix list applies to incoming advertisements.
out
Specifies that the IP prefix list applies to outgoing advertisements.