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(config)#
    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
    bdsc-cs7.lss.emc.com  Eth3/2 124    S I       WS-C2960-24TT Fas0/23
    bdsc-cs7.lss.emc.com  Eth4/1 120    S I       WS-C2960-24TT Fas0/20
    bdsc-cs7.lss.emc.com  Eth4/2 120    S I       WS-C2960-24TT Fas0/22
    bdsc-cs7.lss.emc.com  Eth6/1 179    S I       WS-C2960-24TT Fas0/7
    bdsc-cs7.lss.emc.com  Eth6/2 169    S I       WS-C2960-24TT Fas0/8
    Nexus1000v#