cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1558
Views
0
Helpful
4
Replies

Advertising one host in BGP?

louis0001
Level 3
Level 3

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?

4 Replies 4

S-Lemming
Level 1
Level 1

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 

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?

Yes it is

Pawan Raut
Level 4
Level 4

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.

!