BGP not seeing all local routes

Jul 11, 2007 2 Replies

Hi,



I have got a very basic BGP setup on a Catalyst 3750:


interface Loopback0 ip address 10.0.0.1 255.255.255.255



interface Vlan1 ip address 192.168.1.1 255.255.255.0



router bgp 100 no synchronization bgp log-neighbor-changes network 10.0.0.0 network 192.168.1.0 no auto-summary


Both the Loopback and Vlan interface are shown in the routing table as connected.



For some reason only the 192 route is shown in the BGP table:



Network Next Hop Metric LocPrf Weight Path



*> 192.168.1.0 0.0.0.0 0 32768 i


Any ideas will be appreciated.



Paul



Since you have "no auto-summary" configured, the 10.0.0.1/32 route will not be summarized into a 10.0.0.0/8 route. So you don't have a route that matches "network 10.0.0.0".

You could enable auto-summary, or add a statement:

ip route 10.0.0.0 255.0.0.0 Null0

or

agg 10.0.0.0 255.0.0.0

SPOKE#sh ip bgp BGP table version is 4, local router ID is 192.168.1.1 Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, r RIB-failure, S Stale Origin codes: i - IGP, e - EGP, ? - incomplete

Network Next Hop Metric LocPrf Weight Path

*> 10.0.0.0 0.0.0.0 32768 i *> 10.0.0.1/32 0.0.0.0 0 32768 i *> 192.168.1.0 0.0.0.0 0 32768 i

or agg 10.0.0.0 255.0.0.0 summary-only if you only want 10.0.0.0/8 to be in BGP table

SPOKE#sh ip bgp BGP table version is 5, local router ID is 192.168.1.1 Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, r RIB-failure, S Stale Origin codes: i - IGP, e - EGP, ? - incomplete

Network Next Hop Metric LocPrf Weight Path

*> 10.0.0.0 0.0.0.0 32768 i s> 10.0.0.1/32 0.0.0.0 0 32768 i *> 192.168.1.0 0.0.0.0 0 32768 i

notice the "s" code for suppress

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required