03-18-2018 10:39 AM - edited 03-05-2019 10:07 AM
I'm looking to add a MED to BGP of a secondary router in one site, but I'm having problems with it.
Router(config-router)#route-map MED permit 10
Router(config-router-map)#set weight 100
Router(config)#router bgp 65000
Router(config-router)#neighbor xx.xx.xx.xx route-map MED out
% "MED" used as BGP outbound route-map, set weight not supported
What have I done wrong here please ?
Solved! Go to Solution.
03-18-2018 11:05 AM - edited 03-18-2018 11:11 AM
Hi,
Try with below command under the routemap
set metric 100
https://www.cisco.com/c/en/us/support/docs/ip/border-gateway-protocol-bgp/13759-37.html
If you are trying to apply the weight than this value is only locally significant on the router and the information is not passed between neighbors
. I tried in the lab that It is only accepting the weight value with "IN" keyboard.
Regards,
Deepa Kumar
03-18-2018 11:05 AM - edited 03-18-2018 11:11 AM
Hi,
Try with below command under the routemap
set metric 100
https://www.cisco.com/c/en/us/support/docs/ip/border-gateway-protocol-bgp/13759-37.html
If you are trying to apply the weight than this value is only locally significant on the router and the information is not passed between neighbors
. I tried in the lab that It is only accepting the weight value with "IN" keyboard.
Regards,
Deepa Kumar
02-06-2023 09:10 PM
second option easy way
R1(config)# route-map MED
R1(config-route-map)# set metric 500
!
R2(config)# route-map MED
R2(config-route-map)# set metric 100
!
R1(config)# router bgp 1
R1(config-router)# neighbor x.x.x.x route-map MED out
!
R2(config)# router bgp 1
R2(config-router)# neighbor x.x.x.x route-map MED out
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