show ip bgp
Displays entries in the BGP routing table for one network prefix or the entire BGP routing table.
Syntax: show ip bgp [prefix-length]
prefix-length
|
Display BGP information for a single network prefix.
|
Description: Use the show ip bgp command to display entries in the BGP routing table.
Use the prefix-length keyword to display information for a single network prefix.
Factory Default: None.
Command Mode: Executive and privileged.
Example 1: The following is sample output from the show ip bgp command for the entire BGP routing table:
router#show ip bgp
Status codes: * - valid Origin codes: i - IGP
d - damped e - EGP
h - history ? - incomplete
s - suppressed > - best
a - aggregate
i - internal
Network Next Hop Metric LocPrf Weight Path
*> 100.0.0.0/8 5.198.4.2 0 100 0 100 ?
*> 151.1.0.0/16 5.198.4.2 0 100 0 100 ?
*>a 192.1.0.0/16 0 0 0 i
>s 192.1.1.0/24 5.198.4.2 0 100 0 100 ?
>s 192.1.2.0/24 5.198.4.2 0 100 0 100 ?
>s 192.1.3.0/24 5.198.4.2 0 100 0 100 ?
>s 192.1.4.0/24 5.198.4.2 0 100 0 100 ?
>s 192.1.13.0/24 5.198.4.2 0 100 0 100 ?
>s 192.1.14.0/24 5.198.4.2 0 100 0 100 ?
.
.
.
|
Example 1: The following is sample output from the show ip bgp command for the network prefix :66.66.66.66
router#show ip bgp 66.66.66.66
BGP routing table entry for 66.66.66.66/32
Paths: (2 available, best #1)
66.66.66.66/32
3 i comm 65535:65281
172.16.23.3 from 172.16.23.3 (peer 3.3.3.3)
Origin IGP, local pref 100, weight 0, valid, best
BGP Path Selection Criterion: Lowest BGP Neighbor Router-ID
IGP Metric: 0 IGP Pref: 0 IGP Protocol: DIRECT
IGP Next Hop: 0.0.0.0 Route Age: 0:03:22
66.66.66.66/32 (Second best)
77 i comm 65535:65281
172.16.12.1 from 172.16.12.1 (peer 172.16.12.1)
Origin IGP, local pref 100, weight 0, valid
IGP Metric: 0 IGP Pref: 0 IGP Protocol: DIRECT
IGP Next Hop: 0.0.0.0 Route Age: 0:02:21
router#
|
The following table describes the fields in the display:
Table 4-3. Fields Displayed by show ip bgp
Field
|
Description
|
Status codes
|
Status of the entry in the table. Valid values are:
- * - Entry is valid.
- d - Route is currently damped.
- h - Route has earned some penalty points, but not enough points to exceed threshold. See bgp dampening.
- s - Route is suppressed. See bgp dampening.
- a - Entry is an aggregate route. See aggregate-address.
- i- Entry was learned from an IGP (IS-IS or OSPF) in the local autonomous system.
|
Network
|
IP address of a network. Optionally includes the network mask.
|
Next Hop
|
IP address of the next system used when forwarding packets to the destination network. 0.0.0.0 in this field indicates the router has non-BGP routes to the network.
|
Metric
|
Inter-autonomous system metric.
|
IGP Metric
|
Specifies the IS-IS metric or OSPF cost value.
|
LocPrf
|
Local preference value. See the set local-preference route map configuration command. Default value is 100.
|
Weight
|
Weight of the route as defined by set weight and router bgp route map configuration commands.
|
IGP Prtocol
|
IGP Protocol: IS-IS or OSPF.
|
Originator
|
Specifies the router ID of the originator of the route in the local AS.
|
Cluster list
|
A sequence of cluster ID values representing the reflection path that the route has passed.
|
Path
|
Autonomous system path to the destination network. One entry in this field per autonomous system in the path.
|
IGP Next-Hop
|
IP address of the next system used when forwarding packets to the destination network. 0.0.0.0 in this field indicates the router has non-BGP routes to the network.
|
Origin codes
|
Identifies the origin of the entry. Valid values are listed below.
- i - Entry originated in IGP. Entry was advertised by the network route configuration command.
- e - Entry originated in EGP.
- ? - Entry origin is not clear. Reachability information learned from some other source (usually indicates route is redistributed from IGP into BGP).
- > - Entry identifies the best route for that network.
|
Origin
|
Identifies the origin of the entry as one of the following: IGP, EGP, Not clear, Best.
|
Route Age
|
Specifies the time in hours:minutes:seconds that a route has been valid.
|
BGP path selection criteria
|
Displays tie-breaking criterion for best path selection.
|
Second best
|
Displays second best path information.
|
Related Commands: show ip bgp neighbors
show ip bgp peer-group
show ip bgp regexp
show ip bgp summary
show access-lists
show ip access-lists
show ip bgp community-list