show ip bgp <IP-PREFIX>


show ip bgp <A.B.C.D/M> [vrf <VRF-NAME>] [vsx-peer]


Displays entries in the BGP routing table that are part of the specified network. Optionally you can specify displaying information by VRF.

Command context

Operator (>) or Manager (#)



Specifies an IP prefix (network/length such as in the BGP routing table to display.

vrf <VRF-NAME>

Optional. Select to display information by VRFs by specifying the VRF by VRF name (if no <VRF-NAME> is specified, the default VRF is implied).


Shows the output from the VSX peer switch. If the switches do not have the VSX configuration or the ISL is down, the output from the VSX peer switch is not displayed.


Operators or Administrators. Users without administrator authority can execute this command from the operator context (>) only.


switch# show ip bgp

VRF : default
BGP Local AS 2         BGP Router-id

   Network       :               Nexthop             :
   Peer          :                   Origin              : IGP
   Metric        : 0                         Local Pref          : 100
   Weight        : 0                         Calc. Local Pref    : 100
   Best          : Yes                       Valid               : Yes
   Type          : external                  Stale               : No
   Originator ID :

   AS-Path       : 1
   Cluster List  :
   Communities   : 50:100,50:101,50:102,50:103,50:104,50:105,50:106,50:107,50:108,50:109,50:110,50:1