03-21-2022
04:03 PM
- last edited on
03-22-2022
11:04 AM
by
Translator
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
Solved! Go to Solution.
03-21-2022
04:36 PM
- last edited on
03-22-2022
11:05 AM
by
Translator
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,
03-21-2022 04:07 PM - edited 03-22-2022 06:31 AM
...
03-21-2022
04:36 PM
- last edited on
03-22-2022
11:05 AM
by
Translator
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,
03-21-2022 04:40 PM - edited 03-22-2022 06:30 AM
...
03-21-2022 04:42 PM
Hi @MHM Cisco World ,
This configuration is for NX-OS.
Regards,
03-22-2022 06:29 AM
Thank you Harold
--sk
03-22-2022 06:39 AM
One Point Here
route-map different than Advertise-map
please notice this in your config.
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