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

BGP MED Configuration Problem ?

Cormac Champion
Level 1
Level 1

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 ?

1 Accepted Solution

Accepted Solutions

Deepak Kumar
VIP Alumni
VIP Alumni

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

Regards,
Deepak Kumar,
Don't forget to vote and accept the solution if this comment will help you!

View solution in original post

2 Replies 2

Deepak Kumar
VIP Alumni
VIP Alumni

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

Regards,
Deepak Kumar,
Don't forget to vote and accept the solution if this comment will help you!

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

Спрашивай все что хочешь
Review Cisco Networking for a $25 gift card