show ip bgp
To display entries in the Border Gateway Protocol (BGP) routing table, use the show ip bgp command in EXEC command.
show ip bgp [network] [network-mask] [longer-prefixes] [prefix-list prefix-list-name | route-map
route-map-name] [shorter prefixes mask-length]
Syntax
- network (Optional) Network number, entered to display a particular network in the BGP routing table.
- network-mask (Optional) Displays all BGP routes matching the address and mask pair.
- longer-prefixes (Optional) Displays the route and more specific routes.
- prefix-list | route-map (Optional) Displays selected routes from a BGP routing table based on the contents of a prefix list or route map.
- prefix-list-name | route-map-name (Optional) The name of the route map or prefix list that is specified for the above argument.
- shorter prefixes mask-length (Optional) Displays learned prefixes that are longer than the maximum length but shorter than the specified mask for the prefix.
Examples: (Please Click for Clear View)
Related Commands
- clear ip bgp Resets a BGP connection or session.
- neighbor soft-reconfiguration Configures the Cisco IOS software to start storing updates.