ESR Series Routers Operation Manual                                                          63 
7.16  PBR routing policy configuration  
7.16.1 Route-map for BGP configuration 
Route-maps may serve as filters processing routing information when it is received from or sent to 
the  neighbouring  device.  Processing  may  include  filtering  based  on  various  route  criteria  and  setting 
attributes (MED, AS-PATH, community, LocalPreference, etc.) for the respective routes. 
Also, Route-map may assign routes based on access control lists (ACL). 
 
Fig. 7.17—Network structure 
Objective 1: Assign community for routing information coming from AS 20: 
First, do the following:  
–  Configure BGP with AS 2500 on ESR router 
–  Establish neighbouring with AS20. 
 
Solution: 
Create a policy: 
esr# configure 
esr(config)# route-map from-as20 
Create rule 1: 
esr(config-route-map)# rule 1 
If AS PATH contains AS 20, assign community 20:2020 to it and exit: 
esr(config-route-map-rule)# match as-path contain 20 
esr(config-route-map-rule)# action set community 20:2020 
esr(config-route-map-rule)# exit 
esr(config-route-map)# exit 
In AS 2500 BGP process, enter neighbour parameter configuration: 
esr(config)# router bgp 2500 
esr(config-bgp)# neighbor 185.0.0.2