cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1311
Views
20
Helpful
4
Replies

show ip bgp all Vs show ip bgp a.b.c.d

D@1984
Level 1
Level 1

when I do 'show ip bgp all' on my 8300 router, I can see all networks and the next hop, but when I choose one of those networks and do 'show ip bgp a.b.c.d/nn', the output would be %network not in table. 

 

can someone please explain why this happens? at the moment if I need to see if I have a route for specific destination, I have to do "show ip bgp all" rather than "show ip bgp address".

1 Accepted Solution

Accepted Solutions

I think "IPv4-unicast" is default, 
but your prefix "a.b.c.d/nn" is in VPNv4 and because ALL appear all prefix for all address family then it not appear when you not use keyword ALL.

View solution in original post

4 Replies 4

pman
Spotlight
Spotlight

Hi,

 

"show ip bgp all"shows Information about all configured address families is displayed.

Make sure you write the IP / IP and subnet exactly as shown in "show ip bgp all"

 

Hi D@1984 ,

 

"show ip bgp all" is the legacy format for BGP. In addition to what @pman is stating, I would also recommend that you use the new format, such as "show bgp <address-family> <sub address-family>". So if you want to show the "ipv4 unicast" prefixes, you would use the following command instead of "show ip bgp all":

 

show bgp ipv4 unicast

 

and to list a specific prefix:

 

show bgp ipv4 unicast <a.b.c.d/nn>

 

Make sure you specify the right address family and sub address family.

 

Regards,

Regards,
Harold Ritter, CCIE #4168 (EI, SP)

I think "IPv4-unicast" is default, 
but your prefix "a.b.c.d/nn" is in VPNv4 and because ALL appear all prefix for all address family then it not appear when you not use keyword ALL.

Giuseppe Larosa
Hall of Fame
Hall of Fame

Hello D@1984 ,

as other colleagues have noted you have probably multi address famillies in your 8300 router .

 

show ip bgp vpnv4 all a.b.c.d/n

 

or

show bgp vpnv4 all a.b.c.d/n

 

will provide you much more details :

number of paths, best path number #

for each advertisement you will be able to see all the BGP attributes , BGP next-hop, AS Path string , MED and so on and the MP label, the RD and the set of extended communities of type route tartget rt attached to each.

 

show bgp /all does not provide all these details but one line per advertisement with ">" in front of best path

 

Hope to help

Giuseppe