beautypg.com

Neighbor route-map – Enterasys Networks X-Pedition XSR CLI User Manual

Page 296

background image

BGP Configuration Commands

6-100 Configuring the Border Gateway Protocol

Mode

Router configuration: 

XSR(config-router)#

Example

The following example configures two neighbors. Neighbor 192.168.1.1 is an external neighbor 
since the AS number of 101 differs from the AS number for the router 100. Neighbor 192.168.2.1 is 
an internal neighbor since it resides in the same AS 100.

XSR(config)#router bgp 100
XSR(config-router)#neighbor 192.168.1.1 remote-as 101
XSR(config-router)#neighbor 192.168.2.1 remote-as 100

neighbor route-map

This command applies a route map to routes that enter from or exit out of a BGP neighbor or peer 
group. The route map must be configured first.

Syntax

neighbor {ip-address | peer-group-name} route-map route-map# {in | out}

Syntax of the “no” Form

The no form of this command deletes the specified neighbor’s route map:

no neighbor {ip-address | peer-group-name} route-map route-map# {in | out}

Mode

Router configuration: 

XSR(config-router)#

Example

The following example adds a neighbor route map:

XSR(config)#router bgp 100
XSR(config-router)#neighbor 192.168.1.1 remote-as 101
XSR(config-router)#neighbor 192.168.1.1 route-map 1 in

Note: Perform a clear ip bgp neighbor whenever this command is changed.

ip-address

Neighbor’s IP address.

peer-group-name

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

route-map#

Identifies the route map number. Range: 1‐199.

in

Route map is applied to inbound routes.

out

Route map is applied to outbound routes.