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

how to advertise default routes in bgp

jeffbriones
Level 1
Level 1

hi guys,

how can i advertised only default routes to my peer?

tnx

5 Replies 5

mheusinger
Level 10
Level 10

Hi,

it can be done with:

neighbor 1.1.1.1 default-originate

http://www.cisco.com/en/US/products/sw/iosswrel/ps5187/products_command_reference_chapter09186a008017d02a.html#wp1037042

In case this should be the only route sent, add a prefix-list permitting only 0.0.0.0/0

neighbor 1.1.1.1 prefix-list DefOnly out

prefix-list DefOnly permit 0.0.0.0/0

Hope this helps! Please rate all posts.

Regards, Martin

Hi Martin,

Got it already. Lazy me. tnx for all the help.

jeff

:-)

Probably took longer to post and reply than to use CCO search ;-)

Anyhow, this is what the forum is here for ... I mean to help, not to support lazyness.

Have fun, Martin

hi martin,

I already tried it before posting, i just forgot to "clear ip bgp", thats why it took me awhile to see the effects. anyways, tnx a lot. =0)

jeff

Some other ways to inject the default in BGP:

1-

router bgp x

network 0.0.0.0

Make sure you have the default route in the RIB.

2-

router bgp x

redistribute

default-information originate /* to allow redistribution of the default route in BGP*/

Make sure you have the default route in the RIB (either static or from the specific routing protocol).

Hope this helps,

Harold Ritter
Sr Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México
Paseo de la Reforma 222
Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México
Review Cisco Networking products for a $25 gift card