12-20-2025 10:58 AM
I learned that MED is applied to outbound updates , dictating the best inbound traffic into the AS, but I saw the vice-versa is also true like you can apply med for indbound updates also and it works the same right??
12-20-2025 11:21 AM
Hello there..
Yes and no..
MED is a value that is announced to neighbors, influencing inbound traffic.
But BGP is so flexible, you can manipulate inbound announcements and act as if the neighbor would have set a MED. Like this:
ip prefix-list PL-IN seq 5 permit x.x.x.x/xx
route-map RM-IN permit 10
match ip address prefix-list PL-SDWAN-IN
set metric 60
router bgp xxx
neighbor x.x.x.x route-map RM-IN in
12-20-2025 11:35 AM
Yeah, I got it now from another thread that MED can be used in both direction but it should be applied in out direction because if you want to influence inbound updates why don't simply use weight or local prefrence right??
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide