show bgp
To display Border Gateway Protocol (BGP) routes, use the show bgp command.
show bgp { {ipv4 | ipv6} {unicast | multicast} | all} [addr | prefix [longer-prefixes]] [vrf vrf-name]
Syntax Description
ipv4 |
Displays BGP information for the IPv4 address family. |
ipv6 |
Displays BGP information for the IPv4 address family. |
unicast |
Displays BGP information for the unicast address family. |
multicast |
Displays BGP information for the multicast address family. |
all |
Displays BGP information for all address families. |
addr |
(Optional) Network from the selected address family. The format is A.B.C.D for IPv4 and A:B::C:D for IPv6. |
prefix |
Optional) Prefix from the selected address family. The format is A.B.C.D/length for IPv4 and A:B::C:D/length for IPv6. |
longer-prefixes |
(Optional) Displays the prefix and any more specific routes. |
vrf vrf-name |
(Optional) Specifies the virtual router context (VRF) name. The name can be any case-sensitive, alphanumeric string up to 63 characters. |
Command Default
None
Command Modes
Any command mode
Command History
Release |
Modification |
---|---|
6.1(1) |
Changed the command output.(existing command will show the configured weight value). |
4.0(1) |
This command was introduced. |
4.2(1) |
Added support for IPv6 addresses and prefixes. |
Usage Guidelines
Use the show bgp command to display information about BGP.This command does not require a license.
Examples
This example shows how to display an entry in the BGP table:
switch(config-router)# show bgp ipv6 unicast
BGP routing table information for VRF default, address family IPv4 Unicast
BGP table version is 10, local router ID is 3.3.3.3
Status: s-suppressed, x-deleted, S-stale, d-dampened, h-history, *-valid, >-best
Path type: i-internal, e-external, c-confed, l-local, a-aggregate, r-redist
Origin codes: i - IGP, e - EGP, ? - incomplete, | - multipath
Network Next Hop Metric LocPrf Weight Path
* i200.0.1.100/32 201.0.25.1 100 100 6553601 i
*>e 201.0.13.1 0 6553601 i
* i200.0.2.100/32 201.0.25.1 100 100 6553601 i
*>e 201.0.13.1 0 6553601 i
*>l200.0.3.100/32 0.0.0.0 100 32768 i