cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
785
Views
10
Helpful
6
Replies

How to attach BGP MED to an outbound route advertisement

stuartkendrick
Level 1
Level 1

How do I go about attaching a specific MED for particular routes in advertisements to a BGP peer?

 

[...]

ip prefix-list our-routes-only seq 10 permit 10.10.0.0/16
ip prefix-list our-routes-only seq 20 permit 10.12.0.0/16




router bgp 12345

  address-family ipv4 unicast
  neighbor 10.100.1.1

    remote-as 123

    address-family ipv4 unicast

      adveritse-map our-routes ???


==> I am wanting a way to specify MED in the 'advertise-map' statement, but I don't see the option

 

?




NX-OS 9.3.(x)




Stuart Kendrick

  

 

1 Accepted Solution

Accepted Solutions

Harold Ritter
Spotlight
Spotlight

Hi @stuartkendrick ,

 

Try the following:

 

route-map SetMED permit 10

match ip address prefix-list our-routes-only
set metric 10

!

router bgp 1
neighbor 192.168.12.2
remote-as 2
address-family ipv4 unicast
route-map SetMED out

!


Regards,

Regards,
Harold Ritter, CCIE #4168 (EI, SP)

View solution in original post

6 Replies 6

...

Harold Ritter
Spotlight
Spotlight

Hi @stuartkendrick ,

 

Try the following:

 

route-map SetMED permit 10

match ip address prefix-list our-routes-only
set metric 10

!

router bgp 1
neighbor 192.168.12.2
remote-as 2
address-family ipv4 unicast
route-map SetMED out

!


Regards,

Regards,
Harold Ritter, CCIE #4168 (EI, SP)

...

Hi @MHM Cisco World ,

 

This configuration is for NX-OS.

 

Regards,

Regards,
Harold Ritter, CCIE #4168 (EI, SP)

Thank you Harold 

 

--sk

One Point Here 
route-map different than Advertise-map
please notice this in your config. 
hhhh.png