Cisco to Juniper BGP command conversions

This is a short post to get a few BGP commands down that have become second nature on Cisco equipment but seem harder to tease out on JunOS!

1. Show a summary of the current BGP state:

Cisco:    show ip bgp summary
Juniper:  show bgp summary

2. Check what routes we are receiving from the peer:

Cisco:    show ip bgp neighbor x.x.x.x routes 
Juniper:  show route receive-protocol bgp x.x.x.x 

3. Check what routes we are sending to the peer:

Cisco:    show ip bgp neighbor x.x.x.x advertised-routes 
Juniper:  show route advertising-protocol bgp x.x.x.x 

4. Display lots of detail about the peer connection:

Cisco:    show ip bgp neighbor x.x.x.x
Juniper:  show bgp neighbor x.x.x.x 

5. Display all the BGP routes

Cisco:    show ip bgp
Juniper:  show route protocol bgp

6. Display BGP routes filtered with a REGEX

Cisco:    show ip bgp regexp ^65101$
Juniper:  show route protocol bgp aspath-regex ^65101$
Juniper:  show route aspath-regex ^65101$
This entry was posted in Juniper and tagged , , . Bookmark the permalink.