BGP Configuration Commands
6-106 Configuring the Border Gateway Protocol
Syntax of the “no” Form
Thenoformofthiscommandremovestheconfiguredfilterlist:
no ip as-path access-list access-list-number
Mode
Globalconfiguration:XSR(config)#
Example
ThefollowingexampleconfigurestheIPaspathaccesslistvalueinthecontextofconfiguringa
routemapandperformingamatchusingthematch as-pathcommand.
Theaspathaccesslistis33,endswitharegularexpression“.*640.*”andisreferencedinthe
matchaspathcommand,whichinturnisconfiguredinsideoftheroutemap33.Thismeansthata
matchoccursiftheaspathvariableinaBGPupdatemessagecontainsAS640.
XSR(config)#ip as-path access-list 33 permit “.* 640 .*”
XSR(config)#route-map 33 permit 1
XSR(config-route-map)#match as-path 33
XSR(config-route-map)#set local-preference 300

ip community-list

ThiscommanddefinesacommunitylistthatfiltersontheBGPCOMMUNITYattribute.The
communitylistyoudefinetypicallyisreferencedbythe match community command,which
includesaroutemapthatimplementsroutingpoliciesbasedoncommunityattributes.Multiple
communityattributescanbeconfiguredforaparticularcommunitylist.
Syntax
ip community-list community-list-number {permit | deny} community-number
deny InstructsXSRtodenyaccesstopathsmatchingspecifiedconditions.
as-regular-
expression
IdentifiesanASintheaccesslistbymeansoftheregularexpression.
Note: Perform a clear ip bgp neighbor whenever this command is changed.
community-list-
number
Communitylistnumber(standard),rangingfrom1to199.
permit XSRpermitsaccesstocommunitylistsmatchingconditionsyouspecifiy.
deny XSRdeniesaccesstocommunitylistsmatchingconditions.youspecify.