BGP Configuration Commands
6-94 Configuring the Border Gateway Protocol

neighbor distribute-list

ThiscommanddistributestheinformationspecifiedinanaccesslisttoaBGPneighbor.Before
enteringthiscommand,aneighbororpeergroupmustbeidentifiedbymeansoftheneighbor
remote-asorneighbor peer-groupcommand.Also,theprefixbasedACLmustbeconfigured.
Syntax
neighbor {ip-address | peer-group-name} distribute-list access-list {in | out}
Syntax of the “no” Form
ThenoformofthiscommandremovestheACLlinkedneighbor:
no neighbor {ip-address | peer-group-name} distribute-list access-list {in | out}
Mode
Routerconfiguration:XSR(config-router)#
Default
Noaccesslistapplied
Example
Thisexampleappliesaccesslist1toincomingadvertisementsfromneighbor192.168.1.1.Only
routeswhichmatch10.0.0.0/8,11.0.0.0/8or12.0.0.0/8prefixeswillbeacceptedfromtheneighbor.
XSR(config)#access-list 1 permit 10.0.0.0 255.0.0.0
XSR(config)#access-list 1 permit 11.0.0.0 255.0.0.0
XSR(config)#access-list 1 permit 12.0.0.0 255.0.0.0
XSR(config)#router bgp 100
XSR(config-router)#neighbor 192.168.1.1 remote-as 101
XSR(config-router)#neighbor 192.168.1.1 distribute-list 1 in
Note: Perform a clear ip bgp neighbor <IP address> whenever this command is changed.
ip-address NeighborsIPaddress.
peer-group-name BGPpeergroupbyname.Range:1to64characters.
access-list ACL,rangingfrom1to199.
in ACLappliedtoinboundroutes.
out ACLappliedtooutboundroutes.