cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1737
Views
0
Helpful
14
Replies

BGP different number of prefixes

MARCELO MATURO
Level 1
Level 1

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

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

View solution in original post

14 Replies 14

Giuseppe Larosa
Hall of Fame
Hall of Fame

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

The session is stable:

172.56.255.37 4 10834 341449 69453 19 0 0 3d16h

joshua.wilson
Level 1
Level 1

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

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

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 ?

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

maturo:

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

Yes, I have a prefix-list filter.

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...

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

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

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

!

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

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

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:

Innovations in Cisco Full Stack Observability - A new webinar from Cisco