Users Guide

Layer 3 Routing Commands 1372
Clients:
Non-client Internal Peers:
show ip bgp
To view routes in the BGP routing table, use the show ip bgp command. The
output lists both the best and non-best paths to each destination.
Syntax
show ip bgp [network/pfx-length [longer-prefixes | shorter-prefixes
[length]]] | [filter-list as-path-list ] | [prefix-list list-name]
network/pfx-length—(Optional) Display a specific route identified by its
destination prefix
longer-prefixes—(Optional) Used with the network/pfx-len option to show
routes whose prefix length is equal to or longer than pfx-len. This option
may not be given if the shorter-prefixes option is given.
shorter-prefixes [ length ]—(Optional) Used with the network/pfx-len
option to show routes whose prefix length is shorter than pfx-len, and,
optionally, longer than a specified length. This option may not be given if
the longer-prefixes option is given.
filter-list as-path-list—(Optional) Filter the output to the set of routes
that match a given AS Path list. This option may not be given if a
network/pfx-len option is given.
Prefix-list list-name —(Optional) The name of a prefix list indicating the
list of matching routes to display.
Default Configuration
There is no default configuration.
Command Mode
User Exec mode, Privileged Exec mode, Global Configuration mode and all
sub-modes.
User Guidelines
The following fields are displayed.