I am setting the BGP MED value on some out bound routing advertisements but I can't find anyway to check the MED on my advertised routes on Cisco IOS XR, to verify my configuration is correct (in this particular case the routes are sent to an eBGP peer, I am not able to see or ask how they are receiving the routes):
prefix-set MED-0
1.1.1.1/30,
1.1.2.1/29
end-set
prefix-set MED-1000
2.2.2.1/29 le 32,
2.2.2.2/29 le 32
end-set
route-policy MED-OUT
if destination in MED-1000 then
set med 1000
pass
elseif destination in MED-0 then
pass
else
drop
endif
end-policy
router bgp 12345
vrf A-VRF
rd 12345:55555
address-family ipv4 unicast
neighbor 5.5.5.5
remote-as 55555
description External AS Peer
address-family ipv4 unicast
route-policy MY-IN-POLICY in
route-policy MED-OUT out
This is the output I have which is not telling me the MEDs:
RP/0/RSP0/CPU0:router1#show bgp vrf A-VRF neighbor 5.5.5.5 advertised-routes
Wed Nov 12 22:59:38.982 UTC
Network Next Hop From AS Path
Route Distinguisher: 12345:55555 (default for vrf A-VRF)
1.1.1.1/30 5.5.5.6 10.0.0.5 i
1.1.2.1/29 5.5.5.6 10.0.0.5 i
2.2.2.1/30 5.5.5.6 10.0.0.5 i
2.2.2.2/29 5.5.5.6 10.0.0.5 i