new1234.jpg
Home > Cisco, VMware > VMware: How to Enable CDP On ESX3.X Host

VMware: How to Enable CDP On ESX3.X Host

VMWare has made CDP (Cisco Discovery Protocol ) available to their host.

When you the CDP is running on router/switch where the physical network card is connected it provide information to both Network administrator and ESX admin about host name/network card. This information help when you are trying to figure out which network card on the host is connected to which physical switch

 

B|–set-cdp          Set the CDP status for a given virtual switch.
                        To set pass one of “down”, “listen”, “advertise”, “both”

On this ESX host we got 3 vSwitches, you need to enable the CDP feature for each vSwitch like (putty or console):

[[email protected] root]# esxcfg-vswitch -B both vSwitch0
[[email protected] root]# esxcfg-vswitch -B both vSwitch1
[[email protected] root]# esxcfg-vswitch -B both vSwitch2

 

Now in vCenter 2.5 you see the Configuration > Networking > vSwitches, in te little comment box you can click:

image

This is the old result:                                                     This is the new CDP result:

image  image

More information: VMware

sanderdaems

Sander Daems is founder and author of this blog and working as a Lead (Sr.) Consultant by UNICA ICT Solutions. Sander has over 15 years experience in IT, primary focus: virtualization and modern worksplace.

More Posts - Website

Follow Me:
TwitterLinkedIn

Categories: Cisco, VMware Tags: , , ,
  1. Stuart Mchugh
    August 6th, 2009  (Quote) at 11:09  (Quote) | #1

    This looks really helpful. Is CDP not on by default?

  2. August 6th, 2009  (Quote) at 11:30  (Quote) | #2

    I thought you must enable it on your Cisco switch, afther this you can enable it on your ESX vSwitches:

    1.switch#
    2.switch# config terminal
    3.switch(config)# cdp run
    4.switch(config)# interface g1/1
    5.switch(config-if)# cdp enable

  3. Steff
    April 9th, 2011  (Quote) at 23:44  (Quote) | #3

    Good Article!

  4. Camaze
    April 14th, 2011  (Quote) at 11:11  (Quote) | #4

    Good Article

  5. Peter
    April 19th, 2011  (Quote) at 18:41  (Quote) | #5

    Good Article

  1. No trackbacks yet.