64
ESR Series Routers Operation Manual
Map the policy to routing information:
esr(config-bgp-neighbor)#
route-map from-as20 in
Objective 2:
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 AS 2500 on ESR
Solution:
Create a policy:
esr(config)#
route-map to-as20
Create a 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 240
esr(config-route-map-rule)#
action set origin egp
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
Map the policy to the routing information being announced:
esr(config-bgp-neighbor)#
route-map to-as20 out
esr(config-bgp-neighbor)#
exit
esr(config-bgp)#
exit
esr(config)#
exit
Configuration changes will take effect when the configuration is applied:
esr#
commit
Configuration has been successfully committed
esr#
confirm
Configuration has been successfully confirmed
esr#