03-22-2022 12:25 AM - edited 03-22-2022 09:02 PM
how to redistribute static routes in bgp? What is the configuration to be able to do this in packet tracer? Can you give an example in another way. Thank you.
Can you help me ??
03-22-2022 06:40 AM
Hi there,
The configuration will look like:
! router bgp xxxx redistribute static !
This will redistribute all static routes into the BGP process. You may want to add a route-map to filter out some of these routes.
As for 'another way' can you elaborate?
cheers,
Seb.
02-07-2024 04:32 AM
Make new post and mention the software you use for lab
MHM
02-07-2024 05:40 AM
Hello @shopia452 ,
if all you need is to advertise some static routes you can use the network command under router bgp .
BGP just checks that the prefix is in the IP routing table it is not limited to connected routes like the network command in IGPs
note: you need to use the network command with the exact mask as you see in the routing table
Hope to help
Giuseppe
02-07-2024 01:48 PM
Hello
I would suggest be as specific as possible when you want to redistribute prefixes, static routes is no exception, In this caser I would utilise a route-map and tag the static routes so no future static(s) is advertised by default
ip route x.x.x.x y.y.y.y <interface> <next-hop ip> tag 100
route-map Static_Routes_RM
match tag 100
router bgp xx
address-family ipv4
redistribute static route-map Static_Routes_RM
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