cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
71
Views
0
Helpful
2
Replies

BGP Path Attribute MED

parthrawat979
Level 1
Level 1

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??

2 Replies 2

julian.bendix
Spotlight
Spotlight

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

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??