ESR series service routers.ESR-Series. User manual
11.7.3 Configuration example 2. Route-map for BGP
Objective:
For the whole transmitted routing information (from community 2500:25), assign MED equal to 240 and define
EGP routing information source:
First:
Configure BGP with AS2500 on ESR.
Solution:
Create a policy:
esr(config)# route-map to-as20
Create rule:
esr(config-route-map)# rule 1
If community contains 2500:25, assign MED 240 and Origin EGP to it:
esr(config-route-map-rule)# match community 2500:25
esr(config-route-map-rule)# action set metric bgp 240
esr(config-route-map-rule)# action set origin egp
esr(config-route-map-rule)# exit
esr(config-route-map)# exit
In AS2500 BGP process, enter neighbor parameter configuration:
esr(config)# router bgp 2500
esr(config-bgp)# neighbor 185.0.0.2
esr(config-bgp-neighbor-af)# address-family ipv4 unicast
Map the policy to routing information being advertised:
esr(config-bgp-neighbor-af)# route-map to-as20 out
esr(config-bgp-neighbor-af)# exit
esr(config-bgp-neighbor)# exit
esr(config-bgp)# exit
11.7.4 Route-map based on access control lists (Policy-based routing) configuration algorithm
Step Description Command Keys
1 Create a route map for IP routes
filtration and modification.
esr(config)# route-map <NAME> <NAME> – router map name, set
by the string of up to 31
characters.