ESR series service routers.ESR-Series. User manual
Step Description Command Keys
7.5 Add the ability to control the BGP 
AS-Path attribute that will be added 
to the front of the AS-Path list 
(optional).
esr(config-route-map-rule)# 
action set as-path
prepend <AS-PATH> track <ID>
<AS-PATH> –list of autonomous 
system numbers to be added to the 
current value in the route. Specified 
as AS,AS,AS, takesvalues of 
[1..4294967295];
<ID> – Tracking object number, takes 
values of [1..100].
7.6 Add the ability to control the BGP 
MED attribute in the route for which 
the rule should fire (optional).
esr(config-route-map-rule)# 
action set metric bgp 
<METRIC> track <ID>
<METRIC> – BGPMED attribute 
value,takes values of 
[0..4294967295];
<ID> – Tracking object number, takes 
values of [1..100].
14.2.2  Configuration example
Objective:
Virtual gateway 192.168.0.1/24 is organized for 192.168.0.0/24 subnet, using VRRP protocol and routers R1 
and R2. There is a link with a singular subnet 192.168.1.0/30 between R1 and R2 routers. Subnet 10.0.1.0/24 is 
terminated only on R2 router. PC has IP address - 192.168.0.4/24 and default gateway 192.168.1.1.
When router R1 is in vrrp backup state, traffic from PC will be transmitted without any additional settings. 
When router R1 is in vrrp master state, additional route is necessary for subnet 10.0.1.0/24 through interface 
192.168.1.2.