cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
355
Views
10
Helpful
7
Replies

BGP Advertise default

opnineopnine
Level 1
Level 1

Hi all.

 

I have a doubt I need to advertise only my default route via BGP.  I have the following configuration example
!

ip prefix-list DEFAULT permit 0.0.0.0/0
!
route-map DEFAULT permit 10
match ip address prefix-list DEFAULT
!
ip route 0.0.0.0 0.0.0.0 Null0
!
router bgp <AS>
network 0.0.0.0 mask 0.0.0.0
neighbor <CUSTOMER_PEER_IP> route-map DEFAULT out
!

Will this let me do the job, or I need to add something else?

 

Thanks.

 

7 Replies 7

John Blakley
VIP Alumni
VIP Alumni

There's an easier way to do this if you're just wanting to advertise their peer address as the default:

neighbor <neighbor address> default-originate

HTH,

John

HTH, John *** Please rate all useful posts ***

Hello John,

 

This is what Im looking for I have my mpls with 4 different ISP and I only want to send them my default route.

 

Thanks. 

 

 

Ah gotcha...okay, so the policy you have should work for that if you're wanting to control what the ISP sees...

HTH, John *** Please rate all useful posts ***

John

 

Is I use the option

ip as-path access-list 10 permit ^$

 

thanks.

That's going to advertise your locally advertised routes. Your first solution is better for what you were wanting to do...

To see what I mean, you can do the following on your router:

show ip bgp regex permit ^$

 

HTH, John *** Please rate all useful posts ***

Yes I know it will only advertise the local routes, the customer wants to makes this change but my question is, I only have to advertise the 172.20.230.0 255.255.255.0

 

ip as-path access-list 10 permit ^
!
router bgp xxxxx

nei 192.168.23.2 filter-list 1 out

 

 

thanks!

I would create a prefix list to advertise it..With you as-path acl, you could be advertising more than just that...

HTH, John *** Please rate all useful posts ***
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card