BGP Commands for Cisco


1. How do I remove a neighbor?

router(config)# router bgp
router(config-router)# no neighbor


2. How do I shutdown a session?

router(config)# router bgp
router(config-router)# neighbor shutdown


router(config)# router bgp
router(config-router)# no neighbor shutdown


3. How do I clear or restart a session?

router# clear ip bgp



4. How do I clear BGP session without hard reset?

router# clear ip bgp soft out


5. How do I clear all BGP sessions?

router# show ip bgp neighbor *
router# show ip bgp cidr-only



7. How do I display routes that belong to the specified communities?

router# show ip bgp community community-number [exact]



8. How do I display routes that are permitted by community list?

router# show ip bgp community-list community-number [exact]




9. How do I display routes that are matched by the specified autonomouse system path access list?

router# show ip bgp filter-list access-list-number



10. How do I display the routes with inconsistent originating autonomous systems?

router# show ip bgp inconsistent-as



11. How do I display the routes that match the specified regular expression entered on the command line?

router# show ip bgp regexp regular-expression



12. How do I display the contents of the BGP routing table?

router# show ip bgp [network][network-mask][subnets]



13. How do I display routes learned from a paticular BGP neighbor?

router#

show ip bgp neighbor [address][received-routes | routes | advertised

 

-routes | paths regular-expression | dampened-routes]
router# show ip bgp paths



15. How do I display information about BGP peer groups?

router# show ip bgp peer-group [tag][summary]



16. How do I display the status of all BGP connections?

router# show ip bgp summary




17. How do I look at a BGP session to see if it is up?

router# show ip bgp neighbor



18. How do I see what routes are being seen?

router# show ip bgp neighbor routes



19. How do I see what routes are being advertised?

router# show ip bgp neighbor advertised-routes

 

Leave a Reply