To configure CDP on a Nexus 1000v switch installed on an ESX server:

  1. Log in to Nexus 1000v VSM using SSH.

  2. Execute the following commands:

    Nexus1000v(config)# cdp enable
    Nexus1000v# show cdp neighbors
    Capability Codes: R - Router, T - Trans-Bridge, B - Source-Route-Bridge
                      S - Switch, H - Host, I - IGMP, r - Repeater,
                      V - VoIP-Phone, D - Remotely-Managed-Device,
                      s - Supports-STP-Dispute
    Device-ID Local Intrfce Hldtme Capability  Platform      Port ID  Eth3/2 124    S I       WS-C2960-24TT Fas0/23  Eth4/1 120    S I       WS-C2960-24TT Fas0/20  Eth4/2 120    S I       WS-C2960-24TT Fas0/22  Eth6/1 179    S I       WS-C2960-24TT Fas0/7  Eth6/2 169    S I       WS-C2960-24TT Fas0/8