BGP Configuration Commands
XSR CLI Reference Guide 6-105

neighbor weight

ThiscommandspecifiesaweightvalueforaconnectiontoaneighbororaBGPpeergroup.
Syntax
neighbor {ip-address | peer-group-name} weight value
Syntax of the “no” Form
Thenoformofthiscommandremovesaneighborsweight:
no neighbor {ip-address | peer-group-name} weight value
Mode
Routerconfiguration:XSR(config-router)#
Example
Thefollowingexamplesetsthespecifiedneighborsweightto100:
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

Thiscommandcreatesanaspathfilterlistwhichcanbeappliedtofilterinboundandoutbound
BGPupdates.TheaspathvariableintheBGProutingupdatemessageisexaminedagainsta
requiredparameterofthiscommand,whichrepresentsASnumbersidentifiedbymeansofa
regularexpression.Multipleregularexpressionscanbeconfiguredunderaparticularaspath
filterlist.
Syntax
ip as-path access-list access-list-number {permit | deny} as-regular-expression
Note: Perform a clear ip bgp neighbor <IP address> whenever this command is changed.
ip-address NeighborsIPaddress.
peer-group-name BGPpeergroupbyname.Range:1to64characters.
value Assignsaweightforallrouteslearnedfromthisneighbor,ranging
from0to65535.
Note: Perform a clear ip bgp whenever this command is changed.
access-list-number Identifiestheaccesslistbynumber.Rangeis1to199.
permit InstructsXSRtopermitaccesstopathsmatchingspecifiedconditions.