DGS-6604
m
show ip bgp
CLI Reference Guide
614
show ip bgp
To display entries in the Border Gateway Protocol (BGP) routing table, use the
show ip bgp
command in user EXEC or privileged EXEC mode.
show ip bgp [
IP-ADDRESS
[
/MASK-LENGTH
[longer-prefixes]] | route-map
NAME
]
Default
None
Command Mode
User EXEC or any configuration mode
Usage Guideline
The
show ip bgp
command is used to display the contents of the BGP routing
table.
Examples
The following example output shows the BGP routing table:
Syntax Description
IP-ADDRESS
(Optional) An IP address entered to filter the output to display only a particular
host or network in the BGP routing table.
/MASK-LENGTH
(Optional) Mask length to filter or match hosts that are part of the specified
network. It can be in decimal format (i.e. 8).
longer-prefixes
(Optional) Displays the specified route and all other specific routes.
route-map
NAME
(Optional) Filters the output based on the specified route map.
Switch> show ip bgp
BGP table version: 13, local router ID: 10.1.1.99
Status codes: s suppressed, d damped, h history, * valid, > best, i -
internal,
S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
*> 10.1.1.0/24 0.0.0.0 0 32768 i
*> 172.17.1.0/24 192.168.1.1 0 0 45000 i
Total Entries: 2 entries, 2 routes
Switch>