DGS-6604
m
neighbor filter-list
CLI Reference Guide
446
neighbor filter-list
Use this command to create a BGP filter. Use the no form of the command to
disable this function.
neighbor {
IP-ADDRESS
|
PEER-GROUP-NAME
} filter-list
AS-PATH-LIST-NAME
{in | out}
no neighbor {
IP-ADDRESS
|
PEER-GROUP-NAME
} filter-list
AS-PATH-LIST-NAME
{in | out}
Default
Disabled
Command Mode
Router configuration
Usage Guideline
This command specifies an access list filter for updates based on BGP
autonomous system paths. Each filter is an
as-path access list
based on
regular expressions.
Each neighbor can only have 1
in
and 1
out
access list.
Example
The following example shows how to configure the BGP neighbor with IP
address 172.16.1.1 to not send advertisements about any path which is through
or from the adjacent autonomous system 123:
Verify the settings, in User Exec Mode, by entering the
show ip protocols bgp
command.
Syntax Description
IP-ADDRESS
Specifies the IP address prefix.
PEER-GROUP-NAME
The name of a Border Gateway Protocol (BGP) peer group.
AS-PATH-LIST-NAME
The name of an autonomous system path access list. Define this access list with
the
ip as-path access-list
command.
Switch(config)# ip as-path access-list myacl deny _123_
Switch(config)# ip as-path access-list myacl deny ^123$
Switch(config)# ip as-path access-list myacl permit .*
Switch(config)# router bgp 65100
Switch(config-router)# network 10.108.0.0
Switch(config-router)# neighbor 192.168.6.6 remote-as 123
Switch(config-router)# neighbor 172.16.1.1 remote-as 47
Switch(config-router)# neighbor 172.16.1.1 filter-list myacl out