Enterasys Networks XSR CLI Router User Manual


 
BGP Set Commands
6-116 Configuring the Border Gateway Protocol
Syntax of the “no” Form
Thenoformofthiscommandremovesthesetcommunityvalue:
no set community
Mode
Routemapconfiguration:XSR(config-route-map)#
Example
Thefollowingexampleconfiguresthesetcommunityvalueinthecontextofconfiguringroutemap
1andtheneighborsendcommunityvalue:
XSR(config)#ip access-list 37 permit 10.0.0.0 255.0.0.0
XSR(config)#route-map 1 permit 1
XSR(config-route-map)#match ip address 37
XSR(config-route-map)#set community 500:10
XSR(config-route-map)#exit
XSR(config)#route-map 1 permit 2
XSR(config-route-map)#set community none
XSR(config-route-map)#exit
XSR(config)#router bgp 100
XSR(config-router)#neighbor 192.168.1.1 remote-as 101
XSR(config-router)#neighbor 192.168.1.1 send-community
XSR(config-router)#neighbor 192.168.1.1 route-map 1 out
Routemap1isappliedtotheoutgoingBGPupdatesbetweenthisrouteranditspeeringneighbor
identifiedbyIPaddress192.168.1.1inAS101.Thefirstinstanceofroutemap1matchesthe
destinationsintheBGPupdatesagainstthecriteriaspecifiedinACL37(10.0.0.0/8).Ifthereis
nota
match,thesecondinstanceofroutemap1isinvoked,whichmatchesonallremainingroutesand
removesanycommunityattributes.ThismeansthatroutesmatchingACL37criteriawillhavea
communityattributesetto500:10,butalloftheotherroutesadvertisedto192.168.1.1willnot.
TheBGPpeer192.168.1.1willthenhavetheoptiontoapplyadesiredroutingpolicytoallroutes
arrivingfromthisrouterwiththecommunityattributesetto500:10.
set dampening
Thiscommandconfiguresrouteflapdampening,amechanismtocombatnetworkoverhead
whicharisesfromtheproliferationofuncontrolleddisconnecting/reconnectingnetworks.
Withroutedampening,youcanaddresstheseproblemroutesasfollows:
local-AS
Establishedcommunitywhichspecifiesthatroutescontainingthisvalue
shouldnotbeadvertisedtoexternalBGPpeers.
no-advertise
Establishedcommunitywhichspecifiesthatroutescontainingthisvalue
shouldnotbeadvertisedtoanyotherBGPpeers(internalorexternal).
no-export
Establishedcommunitywhichspecifiesthatroutescontainingthisvalue
shouldnotbeadvertisedoutsideaBGPconfederationboundary.
none
Removesanyexistingcommunities.