show ip bgp
Displays filtered information about a specified network, or all networks, in the BGP routing table associated with a specified address family. Only those fields that you specify are displayed, except that the Prefix field is always displayed. Default fields can be set with the default-fields route command.
show ip bgp [ addressFamilyIdentifier ]
[ network [ networkMask [ longer-prefixes ] ] ] [ fields { fieldOptions } ] [ filter ]
- addressFamilyIdentifier—Type of address family, which determines the routing table for which information is displayed, in the format
ipv4 { unicast | multicast } | vpnv4 { all | vrf vrfName }
- ipv4 unicast—Specifies the IPv4 unicast routing table; the default option
- ipv4 multicast—Specifies the IPv4 multicast routing table
- vpnv4 all—Specifies all IPv4 VPN routing and forwarding instances
- vpn4 vrf vrfname—Specifies the IPv4 VPN routing and forwarding instance with the name vrfname
- network—Displays the route that best matches this IP address; if no network is specified, displays the fields for all networks
- networkMask—Address mask to be applied to the network address
- longer-prefixes—Displays all routes with a prefix that is equal to or more specific than the specified prefix
- fields—Displays only the specified fields; the display order of the fields is hard-coded and not affected by the order in which you enter them
- fieldOptions—Field(s) to be displayed, in the format
all | [ afi | aggregator | as-path | atomic-aggregate | best | clusters | communities | extended-communities | imported | intro | in-label | loc-pref | med | next-hop | next-hop-cost | origin | originator-id | out-label | peer | peer-type | rd | safi | stale | unknown-types | weight ]*
- all—All available information; not recommended, as this information for each network does not fit on a single line and is difficult to read
- afi—Address family identifier
- aggregator—AS number and IP address of aggregator
- as-path—AS path through which this route bas been advertised
- atomic-aggregate—Whether the atomic aggregate attribute is present
- best—Whether this is the best route for the prefix
- clusters—List of cluster IDs through which the route has been advertised
- communities—Community number associated with the route
- extended-communities—Extended community
- imported—Whether the route was imported
- intro—Introductory information about the state of various BGP attributes; this information is displayed only if you specify this keyword
- in-label—MPLS label for the route; the label received with incoming MPLS frames; typically, but not always, this is the label advertised to MP-BGP peers
- loc-pref—Local preference for the route
- med—Multiexit discriminator for the route
- next-hop—IP address of the next router that is used when forwarding a packet to the destination network
- next-hop-cost—Whether the indirect next hop of the route is unreachable, if not, displays IGP cost to the indirect next hop
- origin—Origin of the route
- originator-id—Router ID of the router in the local AS that originated the route
- out-label—MPLS label for the route; the label sent with outgoing MPLS frames; also the label received from MP-BGP peer; typically, but not always, this is the label received from MP-BGP peers
- peer—IP address of BGP peer from which route was learned
- peer-type—Type of BGP peer: internal, external, or confederation
- rd—Route distinguisher
- safi—Subsequent address family identifier
- stale—Route that has gone stale due to peer restart
- unknown-types—Attribute codes for unknown path attributes
- weight—Weight of the route
- *—Indicates that one or more parameters can be repeated multiple times in a list in the command line
- filter—See Filtering show Commands in About This Guide
User Exec, Privileged Exec