09-19-2020 07:35 AM
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
09-19-2020 09:44 AM
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
09-19-2020 11:08 AM
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?
09-19-2020 12:00 PM
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
09-19-2020 01:03 PM
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
?
09-19-2020 03:40 PM - edited 09-19-2020 03:40 PM
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
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