BGP Commands
©2008 Allied Telesis Inc. All rights reserved.
31.74
AlliedWare Plus
TM
Operating System Software Reference C613-50003-00 REV E
Software Version 5.2.1
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.
Syntax
neighbor
<
neighborid
>
prefix-list
<listname>
{
in
|
out
}
no neighbor
<
neighborid
>
prefix-list
<listname>
{
in
|
out
}
Mode
Router mode and Address Family [ipv4 unicast | ipv4 multicast | vpnv4 unicast] 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
Related Commands
ip prefix-list
Parameter
Description
<
neighborid
>
{
A.B.C.D
|
TAG
}
A.B.C.D
Specifies the address of the BGP neighbor in IPv4 format.
TAG
Name of an existing peer-group. For information on how to
create peer groups, refer to the
neighbor peer-group (adding a
neighbor) command on page 31.71
,
and
neighbor remote-as
command on page 31.75
. 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.
awplus#
configure terminal
awplus(config)#
ip prefix-list list1 deny 30.0.0.0/24
awplus(config)#
router bgp 12
awplus(config-router)#
neighbor 10.10.10.10 prefix-list list1 in