show neighbors

Use this command to display Network Neighbor Discovery information from all supported discovery protocols.

Syntax

show neighbors [protocol] [-verbose] [port-string] [wide]

Parameters

protocol (Optional) Specifies the protocol type to display for the neighbor. Valid values are:
  • cdp – Displays CDP neighbor information
  • ciscodp – Displays CiscoDp neighbor information
  • lldp – Displays LLDP neighbor information
  • lldp-med – Displays LLDP-MED neighbor information
  • lldp-dcb – Displays LLDP data center bridging neighbor information
-verbose (Optional) Displays a detailed level of information.
wide (Optional) Displays a 123 character single line per port summary of Network Neighbor Discovery information.
port-string (Optional) Displays Network Neighbor Discovery information for a specific port. For a detailed description of possible port-string values, refer to the S-, K-, and 7100 Series Configuration Guide.

Defaults

If an optional parameter is not specified, a standard level of all Network Neighbor Discovery information will be displayed.

Mode

All command modes.

Examples

This example shows how to display Network Neighbor Discovery information for port ge.2.1:

System(rw)->show neighbors ge.2.1
TYPES:   LL = LLDP         Ct = CtronDp        Ci = CiscoDp
Port      Device ID         Port ID   Ty Network Address
--------------------------------------------------------------------------------
ge.2.1    00-11-88-fe-52-8c ge.1.2    LL 12.10.1.18
ge.2.1    00-11-88-fe-52-8c ge.1.2    Ct 12.10.1.18
ge.2.1    00-11-88-fe-52-8c ge.1.2    Ci 12.10.1.18

This example shows how to display protocol type CDP Network Neighbor Discovery information for ports ge.2.1 and ge.2.2:

System(rw)->show neighbors cdp ge.2.1-2
TYPES:   LL = LLDP         Ct = CtronDp        Ci = CiscoDp
Port      Device ID         Port ID   Ty Network Address
--------------------------------------------------------------------------------
ge.2.1    00-11-88-fe-52-8c ge.1.2    Ct 12.10.1.18
ge.2.2    00-1f-45-62-99-24 ge.1.1    Ct 12.10.1.15

This example show how to display a verbose level of Network Neighbor Discovery information for port ge.2.1:

System(rw)->show neighbors ge.2.1-2 -verbose
Port ge.2.1
  Neighbor                : 00-11-88-fe-52-8c
  Description             : Chassis 1
  Port                    : ge.1.2
  MTU                     : 0
  Last Update             : THU JAN 14 08:11:37 2010
  LLDP
    Chassis Id            : 00-11-88-fe-52-8c
    Port                  : ge.1.2
    Support               :
    Enabled               :
  CDP
    Neighbor IP           : 12.10.1.18
    Chassis IP            : 12.10.1.18
    Chassis MAC           : 00-11-88-fe-52-8c
    Device Type           : dot1qSwitch
    Support               : ieee8021q, gvrp, igmpSnoop
  CiscoDP
    Device Id             : 00-11-88-fe-52-8c
    Address               : 12.10.1.18
    Port                  : ge.1.2
    Version               : 2
    Primary Management    : 12.10.1.18
    Duplex                : Full Duplex
    Power                 : 0 milliwatts
    Support               : 0x00022
Port ge.2.2
  Neighbor                : 00-1f-45-62-99-24
  Description             : Chassis 1
  Port                    : ge.1.1
  MTU                     : 0
  Last Update             : THU JAN 14 08:11:41 2010
  LLDP
    Chassis Id            : 00-1f-45-62-99-24
    Port                  : ge.1.1
    Support               :
    Enabled               :
  CDP
    Neighbor IP           : 12.10.1.15
    Chassis IP            : 12.10.1.15
    Chassis MAC           : 00-1f-45-62-99-24
    Device Type           : dot1qSwitch
    Support               : ieee8021q, gvrp, igmpSnoop
  CiscoDP
    Device Id             : 00-1f-45-62-99-24
    Address               : 12.10.1.15
    Port                  : ge.1.1
    Version               : 2
    Primary Management    : 12.10.1.15
    Duplex                : Full Duplex
    Power                 : 0 milliwatts
    Support               : 0x00022
System(rw)->

This example show how to display a wide single line summary of Network Neighbor Discovery information for port ge.2.1:

System(rw)->show neighbors wide ge.2.1
Port      Device ID                        Port ID                          Type    Network Address
-------------------------------------------------------------------------------------------------------
ge.2.1    00-11-88-fe-52-8c                ge.1.2                           LLDP    12.10.1.18
ge.2.1    00-11-88-fe-52-8c                ge.1.2                           CtronDp 12.10.1.18
ge.2.1    00-11-88-fe-52-8c                ge.1.2                           CiscoDp 12.10.1.18