{"id":91,"date":"2010-06-03T21:35:37","date_gmt":"2010-06-04T01:35:37","guid":{"rendered":"http:\/\/enterpriseadmins.org\/blog\/?p=91"},"modified":"2010-06-03T21:35:37","modified_gmt":"2010-06-04T01:35:37","slug":"enabling-vswitch-cisco-discovery-protocol-cdp","status":"publish","type":"post","link":"https:\/\/enterpriseadmins.org\/blog\/virtualization\/enabling-vswitch-cisco-discovery-protocol-cdp\/","title":{"rendered":"Enabling vSwitch Cisco Discovery Protocol (CDP)"},"content":{"rendered":"<p>I recently attended the VMware vSphere Troubleshooting course. \u00a0It was a very good course and I&#8217;d recommend it to anyone responsible for day-to-day maintenance of a virtual\u00a0infrastructure. \u00a0During the course we discussed the vMA (vSphere Management Assistant) and looked at some of the vSwitch configuration options you could set. \u00a0One option stood out to me&#8230;the CDP Mode of a standard vSwitch. \u00a0I knew my vSwitch had the ability to read CDP\u00a0information, but the class text suggested it could announce its configuration. \u00a0Once I had a few minutes to get back into my lab I decided to deploy the vMA and test this configuration.<\/p>\n<p>Downloading and deploying the vMA was rather straight forward. \u00a0Once the OVF template was deployed and powered on, a wizard walks you through all of the remaining configuration. \u00a0Once the vMA is only, login with the vi-admin user account. \u00a0The first step to enabling CDP requires that the host or vCenter be added to the vMA. \u00a0I decided to go with each host&#8230;so I added it like so:<\/p>\n<pre>sudo vifp addserver esxhostname.domain.name\r\nvifpinit esxhostname.domain.name<\/pre>\n<p>To verify the existing CDP mode you can type the following command (the name of the vSwitch is case sensitive):<\/p>\n<pre>vicfg-vswitch -b vSwitch0<\/pre>\n<p>By default a vSwitch will have a CDP mode of listen, but it is very easy to change to both<\/p>\n<pre>vicfg-vswitch -B both vSwitch0<\/pre>\n<p>The physical switch now shows the following:<\/p>\n<pre>show cdp neighbor\r\nDevice ID:       esxhostname.domain.name\r\nLocal Intrfce:   Gig 1\/3\r\nCapability:      Switch\r\nPlatform:        VMware ES\r\nPort ID:         vmnic0<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>I recently attended the VMware vSphere Troubleshooting course. \u00a0It was a very good course and I&#8217;d recommend it to anyone responsible for day-to-day maintenance of a virtual\u00a0infrastructure. \u00a0During the course we discussed the vMA (vSphere Management Assistant) and looked at &hellip; <a href=\"https:\/\/enterpriseadmins.org\/blog\/virtualization\/enabling-vswitch-cisco-discovery-protocol-cdp\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[4],"tags":[],"class_list":["post-91","post","type-post","status-publish","format-standard","hentry","category-virtualization"],"_links":{"self":[{"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/posts\/91","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/comments?post=91"}],"version-history":[{"count":4,"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/posts\/91\/revisions"}],"predecessor-version":[{"id":95,"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/posts\/91\/revisions\/95"}],"wp:attachment":[{"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/media?parent=91"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/categories?post=91"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/tags?post=91"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}