Celestica Documentation Portal

Find your product documents here

show bgp neighbors

Displays the BGP neighbor's information according to the given AFI/SAFI(if specified), and/or for the given neighbor.

Syntaxshow bgp [<afi>] [<safi>] neighbors [ <neighborip> [ advertised-routes | bestpath-routes | dampened-routes | filtered-routes [ route-map [ <RNAME> ] ] | flap-statistics | prefix-counts | received | received-routes [ route-map <RNAME> ] | routes ] ]
Command mode EXEC
Parameters
  • afi – Address Family Indicator it could take either a value of ipv4 or ipv6.

  • safi – Subsequent Address Family Indicator, it could be either unicast/multicast/labeled-unicast/vpn.

  • neighborip – IPv4 or IPv6 Address of Neighbor.

  • RNAME – Route-MAP Name.

  • Keyword – [ advertised-routes | bestpath-routes | dampened-routes | filtered-routes | flap-statistics | prefix-counts | received | received-routes | routes ]

Usage None
Supported Releases 1.0.0 or later
Click command None
Example
sonic# show bgp ipv6 neighbors 2010::2
BGP neighbor is 2010::2, remote AS 1, local AS 1, internal link
  BGP version 4, remote router ID 0.0.0.0, local router ID 1.1.1.1
  BGP state = Active
  Last read 01w0d06h, Last write never
  Hold time is 180, keepalive interval is 60 seconds
  Graceful restart information:
    Local GR Mode: Helper*
    Remote GR Mode: NotApplicable
    R bit: False
    Timers:
      Configured Restart Time(sec): 120
      Received Restart Time(sec): 0
  Message statistics:
    Inq depth is 0
    Outq depth is 0
                         Sent       Rcvd
    Opens:                  0          0
    Notifications:          0          0
    Updates:                0          0
    Keepalives:             0          0
    Route Refresh:          0          0
    Capability:             0          0
    Total:                  0          0
  Minimum time between advertisement runs is 0 seconds

 For address family: IPv4 Unicast
  Not part of any update group
  Community attribute sent to this neighbor(all)
  0 accepted prefixes

 For address family: IPv6 Unicast
  Not part of any update group
  Community attribute sent to this neighbor(all)
  0 accepted prefixes

  Connections established 0; dropped 0
  Last reset 01w0d06h,  Waiting for peer OPEN
BGP Connect Retry Timer in Seconds: 120