cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
4219
Views
0
Helpful
3
Replies

Having ASA advertise default route via BGP

johnnylingo
Level 5
Level 5

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

 

1 Accepted Solution

Accepted Solutions

Jon Marshall
Hall of Fame
Hall of Fame

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

View solution in original post

3 Replies 3

Jon Marshall
Hall of Fame
Hall of Fame

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

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

 

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