Command:

neighbor filter-list


Mode:

Router(config-router)#

Router(config-router-af)#

 

Syntax:

neighbor {ip-address | peer-group-name} filter-list access-list-number {in | out | weight weight}


Syntax Description:

 

ip-address

IP address of the neighbor

peer-group-name

Name of a BGP peer group

access-list-number

Number of an autonomous system path access list. You define this access list with the ip as-path access-list command.

in  

Access list applied to incoming routes

out  

Access list applied to outgoing routes

weight

Assigns a relative importance to incoming routes matching autonomous system paths. Acceptable values are 0 to 65535. (The weight keyword was removed in Release 12.1)


Command Description:

 

To set up a BGP filter, use the neighbor filter-list command in address family or router configuration mode. To disable this function, use the no form of this command.


Example:

 

In the following router configuration mode example, the BGP neighbor with IP address 128.125.1.1 is not sent advertisements about any path through or from the adjacent autonomous system 123: 

 Router(config)#ip as-path access-list 1 deny _123_

 Router(config)#ip as-path access-list 1 deny ^123$

 Router(config)#router bgp 109

 Router(config-router)#network 131.108.0.0

 Router(config-router)#neighbor 129.140.6.6 remote-as 123

 Router(config-router)#neighbor 128.125.1.1 remote-as 47

 outer(config-router)#neighbor 128.125.1.1 filter-list 1 out

In the following address family configuration mode example, the BGP neighbor with IP address 128.125.1.1 is not sent advertisements about any path through or from the adjacent autonomous system 123:

   Router(config)#ip as-path access-list    1 deny _123_
   Router(config)#ip as-path access-list    1 deny ^123$
   Router(config)#router bgp 109
   Router(config-router)#address-family ipv4 unicast
   Router(config-router-af)#network 131.108.0.0 
   Router(config-router-af)#neighbor 129.140.6.6 remote-as 123
   Router(config-router-af)#neighbor 128.125.1.1 remote-as 47
   Router(config-router-af)#neighbor 128.125.1.1 filter-list 1 out


Misconceptions:

 

None


Related Commands:

 

address-family ipv4

 

ip as-path access-list

 


� Cisco Systems, Inc. 2001, 2002, 2003
World Wide Education

Converted from CHM to HTML with chm2web Pro 2.85 (unicode)