09-06-2016 10:30 AM
I have 6 static routes that I do not want advertised into our BGP table on Router A.
However I have one static route (to one host) that I do need to advertise
If I use "redistribute static", this will advertise ALL of the static routes. How do I advertise only one?
09-07-2016 12:16 AM
Add the route as a network statement under the router bgp configuration. As long as the route exists in the routing table it will be announced by BGP and you do not need to redistribute static into BGP.
network <host address> mask 255.255.255.255
09-07-2016 08:19 PM
Hi,
so basically, if i have:
ip route 10.1.1.1 255.255.255.255 192.168.1.1
I could just advertise it like any other:
router bgp 200
network 10.1.1.1 mask 255.255.255.255
and it would then route to 192.168.1.1 using the static route?
09-07-2016 09:19 PM
Yes it is
09-07-2016 01:19 AM
another way you can use route-map to filter the redistribute routes.
ip prefix-list Filter seq 5 permit 10.1.1.0 255.255.255.0
!
route-map Test permit 10
match ip prefix-list Filter
!
router bgp xxx
redistribute static route-map Test.
!
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