Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

BGP different number of prefixes

I have a neighbor bgp with my mpls provider. In some cases the number of prefixes that I receive is different that the number of prefixes that they advertise.

For example:

In the ISP's router:

sh ip bgp vpnv4 vrf xxxxx neighbors 77.3.220.26 advertised-routes | inc Total

Total number of prefixes 1380

and y my router:

sh ip bgp neighbors 172.56.255.37 received-routes | include T

Total number of prefixes 870

1 ACCEPTED SOLUTION

Accepted Solutions
Hall of Fame Super Silver

Re: BGP different number of prefixes

Hello Marcelo,

I've noticed you have :

neighbor 172.x.y.129 allowas-in

I think the default-value is 1.

this probably will not allow a prefix were your own AS number appears more then one as a result of AS prepending done on another site and reported to your local router by the PE router because is not using any form of as-override.

Hope to help

Giuseppe

14 REPLIES
Hall of Fame Super Silver

Re: BGP different number of prefixes

Hello Marcelo,

at startup or BGP session it takes some time to load the 1380 prefixes over the BGP/TCP session you can see a partial value during "loading"

Or do you see this in a stable eBGP connection ?

Verify if the eBGP session is stable with sh ip bgp sum.

Hope to help

Giuseppe

New Member

Re: BGP different number of prefixes

The session is stable:

172.56.255.37 4 10834 341449 69453 19 0 0 3d16h

New Member

Re: BGP different number of prefixes

Do you have the same prefix limit set as your isp?

New Member

Re: BGP different number of prefixes

I have de maximum-prefix parameter in default value. I don't know the other peer. Is it possible cause of the problem?

Thanks

Marcelo

New Member

Re: BGP different number of prefixes

Depending on what the default maximum prefix is set to it could explain why the you not receiving all the prefixes from you isp. You could try increasing it to say...1400 to see you you will receive the 1380 prefixes your isp is sending to you.

When you do a show ip bgp neighbor xxx.xxx.xx.xxx, what is the max prefix ?

New Member

Re: BGP different number of prefixes

I don't find de max prefix in that command output.

On the other hand if I do a clear ip bgp * I start to receive all the prefix. But I want to find out the issue, because there is an usual situation.

Thanks

Marcelo

Blue

Re: BGP different number of prefixes

maturo:

Do you have any input route filters pointing to the neighbor in question?

New Member

Re: BGP different number of prefixes

Yes, I have a prefix-list filter.

Blue

Re: BGP different number of prefixes

OK, so is it possible that the prefix list is filterng routes and this is why there is a disparity between what the ISP is sendin you and what you are viewing with the 'received routes' keyword?

try using the sho ip bgp neighbor x.x.x.x routes command. if you have soft reconfiguration inbound enabled, you will be able to view all routes received by the peer router, not just the ones installed in the bgp table, which typically exclues those that get filtered.

Let me know...

New Member

Re: BGP different number of prefixes

The sho ip bgp neighbor x.x.x.x routes command show me the routes after the filters engine.

The sho ip bgp neighbor x.x.x.x received-routes show me all the prefix received before ther are filtered. This last number is different from the advertised routes, so I suppose there is not issue with the filters.

Marcelo

New Member

Re: BGP different number of prefixes

What type of router are you using? Please post your config.

New Member

Re: BGP different number of prefixes

2801,IOS 12.4(7a)

The bgp config is:

router bgp 65000

no synchronization

bgp log-neighbor-changes

network a.b.c.d mask 255.255.255.255

network a.b.c.d mask 255.255.255.255

neighbor 77.b.c.25 remote-as 65000

neighbor 77.b.c.25 send-community

neighbor 77.b.c.25 distribute-list local in

neighbor 77.b.c.25 prefix-list out out

neighbor 172.x.y.129 remote-as 10xxx

neighbor 172.x.y.129 ebgp-multihop 2

neighbor 172.x.y.129 send-community

neighbor 172.x.y.129 allowas-in

neighbor 172.x.y.129 soft-reconfiguration inbound

neighbor 172.x.y.129 weight 1000

neighbor 172.x.y.129 prefix-list in in

neighbor 172.x.y.129 prefix-list out out

no auto-summary

!

Hall of Fame Super Silver

Re: BGP different number of prefixes

Hello Marcelo,

I've noticed you have :

neighbor 172.x.y.129 allowas-in

I think the default-value is 1.

this probably will not allow a prefix were your own AS number appears more then one as a result of AS prepending done on another site and reported to your local router by the PE router because is not using any form of as-override.

Hope to help

Giuseppe

New Member

Re: BGP different number of prefixes

Thanks Giuseppe,

I modify to neighbor 172.x.y.129 allowas-in 10 and do a clear soft, so I started to receive the routes.

Marcelo

263
Views
0
Helpful
14
Replies