BGP MED Attribute Configuration example
BGP MED Attribute Configuration example BGP MED is an optional non-transitive attribute meaning its not propagated throughout the whole internet but just to adjacent AS. The word “optional” means that this is not necessarily by default sent with the BGP updates. The purpose of MED is to influence how other autonomous systems enter your AS to reach a certain prefix. If the other attributes are set to default, MED will be the attribute used for path selection however, if Weight or Local preference is configured on the adjacent AS router, then MED will not be selected. The lower MED is more preferred. [boxads]
- Acronym for Multi Exit Discriminator and otherwise known as “Metric” in the BGP table.
- The lower the MED the more preferred.
- It is an optional non-transitive attribute.
- Can dictate how other AS enter your AS.

Configure R4 so that it will advertise a MED value of 30 to R3 and 20 to R2. Afterwards, tweak the route map to set a MED of 10 for network 144.144.144.144/32 in R4 towards R3. The end result should have traffic from AS123 to 4.4.4.4/32 and 44.44.44.44/32 take R2 but traffic for 144.144.144.144/32 should take R3. At the start BGP has been established on all routers.




