09-25-2015 01:01 PM - edited 03-08-2019 01:56 AM
Is there a magic trick to have an ASA running BGP advertise a default-route to an iBGP peer? I've got a default route in the route table and added "default-information originate", but still no luck.
router bgp 65432
address-family ipv4 unicast
neighbor 192.168.255.11 remote-as 65432
neighbor 192.168.255.11 activate
default-information originate
!
# show bgp nei 192.168.255.11 advertised-routes
Total number of prefixes 0
# show route OUTSIDE
S* 0.0.0.0 0.0.0.0 [1/0] via 198.18.1.1, OUTSIDE
Solved! Go to Solution.
09-25-2015 01:25 PM
You need to redistribute the static into BGP.
Alternatively you could use the -
"neighbor 192.168.255.11 default-originate"
but that would send a default route even if you don't actually have one in the IP routing table which may not be want you want.
Jon
09-25-2015 01:25 PM
You need to redistribute the static into BGP.
Alternatively you could use the -
"neighbor 192.168.255.11 default-originate"
but that would send a default route even if you don't actually have one in the IP routing table which may not be want you want.
Jon
09-25-2015 01:37 PM
Thanks! That was the trick. I needed to only advertise a default route though, so did this:
router bgp 65432
address-family ipv4 unicast
redistribute static metric 4294967295 route-map DEFAULT_ONLY
default-information originate
exit-address-family
!
route-map DEFAULT_ONLY permit 10
match ip address prefix-list DEFAULT_ROUTE
!
prefix-list DEFAULT_ROUTE seq 5 permit 0.0.0.0/0
09-25-2015 01:39 PM
Yes, I should have said if you have other static routes you need to use a route map :-)
Just for your info that is the same for all devices running BGP ie. it's not just for the ASA.
Jon
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