cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1166
Views
5
Helpful
5
Replies

Static route not redistributing into BGP

23nick
Level 1
Level 1

Hello everyone,

 

Topology and config: https://i.imgur.com/XTlMEKk.png

 

My perimeter firewall is having bgp neighborship with Singtel-ISP. Also per-fw is connected to internal routers (CORE-R1 & CORE-R2) and per-fw configured with two default route with different AD value (default route to CORE-R2 having highest AD value) and tracking is enabled so when it loses rechability with CORE-R1 , default route towards CORE-R2 will be in routing table.

 

Now i am not able to redistribute this default route to SINGTEL ISP, though redistribute static command is configured under bgp routing process.

 

I tried below config as well on per-fw.

prefix-list DEFAULT_ROUTE seq 5 permit 0.0.0.0/0

route-map DEFAULT_ONLY permit 10
match ip address prefix-list DEFAULT_ROUTE

router bgp 100

redistribute static route-map DEFAULT_ONLY
default-information originate

exit

 

No luck.

Any suggestion would be helpful. Thankyou

 

5 Replies 5

Hello,

 

add a metric value to the redistributed static route:

 

prefix-list DEFAULT_ROUTE seq 5 permit 0.0.0.0/0
!
route-map DEFAULT_ONLY permit 10
match ip address prefix-list DEFAULT_ROUTE
!
router bgp 100
!
redistribute static metric 4294967295 route-map DEFAULT_ONLY
default-information originate

Richard Burts
Hall of Fame
Hall of Fame

I would like to know what, if anything, is being advertised to Singtel.

 

I wonder if the issue has to do with having both of these in the configuration

redistribute static route-map DEFAULT_ONLY
default-information originate

what would happen if you remove the default-information originate?

HTH

Rick

Hi @Richard Burts 

 

There is only i-bgp peering between singtel and PER-FW and there is no static/default route configured on singtel

"redistribute static route-map DEFAULT_ONLY" did not do anything.

But when i added neighbor 12.1.1.2 default-originate, it advertised default route to Singtel-ISP.

 

Now i am wondering why default-information originate did not work, this command purpose is regardless of default route present in routing table or not,just advertise it to all neighbors, but that did not work.

 

router bgp 100
bgp log-neighbor-changes
address-family ipv4 unicast
neighbor 12.1.1.2 remote-as 100
neighbor 12.1.1.2 activate
neighbor 12.1.1.2 default-originate
network 12.1.1.0 mask 255.255.255.248
default-information originate
no auto-summary
no synchronization
exit-address-family

 

SINGTEL-ISP#sh ip route | i 0.0.0.0
Gateway of last resort is 12.1.1.1 to network 0.0.0.0
B* 0.0.0.0/0 [200/0] via 12.1.1.1, 00:36:08

Hello,

 

it should in theory work with the configuration (route map and default information originate). What is the output of:

 

show bgp nei 12.1.1.2 advertised-routes

 

?

Hello
The redistribution between an igp and bgp is different than between two igp's so you may need to try the following:

router bgp 100
bgp redistribute-internal


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul
Review Cisco Networking products for a $25 gift card