BGP MED attribute

Hi,
I have 2 eBGP sessions established to the two hosts of the same AS. I receive MED=100 from one peer and 200 from another.
What could be the reason that ROS does not take MED into account and I have two equivalent BGP routes - marked ECMP (+)?

[pawel@ag11] > /routing/route/print detail where dst-address=10.108.0.0/19
Flags: X - disabled, F - filtered, U - unreachable, A - active;
c - connect, s - static, r - rip, b - bgp, o - ospf, i - isis, d - dhcp, v - vpn, m - modem, a - ldp-address, l - ldp-mapping, g - slaa>
H - hw-offloaded; + - ecmp, B - blackhole
 Ab + afi=ip contribution=active dst-address=10.108.0.0/19 routing-table=main gateway=10.108.10.126 immediate-gw=10.108.10.126%wg2
       distance=20 scope=40 target-scope=10 belongs-to="bgp-IP-10.108.10.126"
       bgp.session=wg1-1 .as-path="64600" .med=200 .origin=igp
       debug.fwp-ptr=0x202C23C0

 Ab + afi=ip contribution=active dst-address=10.108.0.0/19 routing-table=main gateway=10.108.10.62 immediate-gw=10.108.10.62%wg1
       distance=20 scope=40 target-scope=10 belongs-to="bgp-IP-10.108.10.62"
       bgp.session=wg1-2 .as-path="64600" .med=100 .origin=igp
       debug.fwp-ptr=0x202C2420

No, these are eBGP peers as I wrote. AS64661 - AS64600.

Are the two BGP sessions within the same instance?

Bingo! There were 2 different router-ids. I corrected it and it’s ok now.
Thanks.

1 Like