Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Webcast-Catalyst9k
New Member

how to advertise default routes in bgp

hi guys,

how can i advertised only default routes to my peer?

tnx

5 REPLIES

Re: how to advertise default routes in bgp

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

New Member

Re: how to advertise default routes in bgp

Hi Martin,

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

jeff

Re: how to advertise default routes in bgp

:-)

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

New Member

Re: how to advertise default routes in bgp

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

Cisco Employee

Re: how to advertise default routes in bgp

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
199
Views
5
Helpful
5
Replies
CreatePlease to create content