Neighbor distribute-list – Enterasys Networks X-Pedition XSR CLI User Manual

Page 290

Advertising
background image

BGP Configuration Commands

6-94 Configuring the Border Gateway Protocol

neighbor distribute-list

This command distributes the information specified in an access‐list to a BGP neighbor. Before 
entering this command, a neighbor or peer group must be identified by means of the 

neighbor

remote-as

 or 

neighbor peer-group

 command. Also, the prefix‐based ACL must be configured.

Syntax

neighbor {ip-address | peer-group-name} distribute-list access-list {in | out}

Syntax of the “no” Form

The no form of this command removes the ACL‐linked neighbor:

no neighbor {ip-address | peer-group-name} distribute-list access-list {in | out}

Mode

Router configuration: 

XSR(config-router)#

Default

No access list applied

Example

This example applies access‐list 1 to incoming advertisements from neighbor 192.168.1.1. Only 
routes which match 10.0.0.0/8, 11.0.0.0/8 or 12.0.0.0/8 prefixes will be accepted from the neighbor.

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

Neighbor’s IP address.

peer-group-name

BGP peer group by name. Range: 1 to 64 characters.

access-list

ACL, ranging from 1 to 199.

in

ACL applied to inbound routes.

out

ACL applied to outbound routes.

Advertising