Neighbor weight, Ip as-path access-list – Enterasys Networks X-Pedition XSR CLI User Manual
Page 301
BGP Configuration Commands
XSR CLI Reference Guide 6-105
neighbor weight
This command specifies a weight value for a connection to a neighbor or a BGP peer group.
Syntax
neighbor {ip-address | peer-group-name} weight value
Syntax of the “no” Form
The no form of this command removes a neighbor’s weight:
no neighbor {ip-address | peer-group-name} weight value
Mode
Router configuration:
XSR(config-router)#
Example
The following example sets the specified neighbor’s weight to 100:
XSR(config)#router bgp 100
XSR(config-router)#neighbor 192.168.1.1 remote-as 101
XSR(config-router)#neighbor 192.168.1.1 weight 100
ip as-path access-list
This command creates an as‐path filter list which can be applied to filter inbound and outbound
BGP updates. The as‐path variable in the BGP routing update message is examined against a
required parameter of this command, which represents AS numbers identified by means of a
regular expression. Multiple regular expressions can be configured under a particular as‐path
filter list.
Syntax
ip as-path access-list access-list-number {permit | deny} as-regular-expression
Note: Perform a clear ip bgp neighbor
ip-address
Neighbor’s IP address.
peer-group-name
BGP peer group by name. Range: 1 to 64 characters.
value
Assigns a weight for all routes learned from this neighbor, ranging
from 0 to 65535.
Note: Perform a clear ip bgp whenever this command is changed.
access-list-number
Identifies the access list by number. Range is 1 to 199.
permit
Instructs XSR to permit access to paths matching specified conditions.