本帖最后由 dilidolo 于 8-17-2011 12:56 编辑
3.5/4.x上只支持CDP (Cisco Discovery Protocol)。对于一台服务器上有6-8个网卡的ESX服务器来说,打开CDP可以非常容易的找出每个网口连接到交换机端口,对配置和排错相当有帮助。但是CDP只有在Cisco的交换机上才支持。其他交换机都支持LLDP (Link Layer Discovery Prototol).
5.x上终于增加支持LLDP了。不过目前看来CDP在标准交换机和分布式交换机上都支持,但LLDP只有在分布式交换机上才支持。
交换机上:[ol]
LLDP Remote Devices Information
LocalPort | ChassisId PortId PortDescr SysName
--------- + ------------------------- ------ --------- ----------------------
21 | vmnic1 00 ... port 4... esx3.allesolution.l...
22 | vmnic0 00 ... port 5... esx3.allesolution.l...
23 | vmnic0 00 ... port 1... esx4.allesolution.l...
24 | vmnic1 00 ... port 0... esx4.allesolution.l...
33 | esx1.allesolution.local vmnic5
34 | esx1.allesolution.local vmnic4
35 | esx1.allesolution.local vmnic1
36 | esx1.allesolution.local vmnic0
37 | esx1.allesolution.local vmnic2
38 | esx1.allesolution.local vmnic3
39 | esx2.allesolution.local vmnic5
40 | esx2.allesolution.local vmnic4
41 | esx2.allesolution.local vmnic2
42 | esx2.allesolution.local vmnic3
43 | esx2.allesolution.local vmnic1
44 | esx2.allesolution.local vmnic0
[/ol]复制代码我的HP交换机也支持从交换机上读取CDP信息。[ol]
Procurve1# show cdp neighbors
CDP neighbors information
Port Device ID | Platform Capability
---- ----------------------------- + ---------------------------- -----------
21 vmnic1 | vmware ESX Releasebuild-4... S
22 vmnic0 | VMware ESX Releasebuild-4... S
23 vmnic0 | VMware ESX Releasebuild-4... S
24 vmnic1 | VMware ESX Releasebuild-4... S
33 esx1.allesolution.local | Releasebuild-433742VMware... S
34 esx1.allesolution.local | Releasebuild-433742VMware... S
35 esx1.allesolution.local | Releasebuild-433742VMware... S
36 esx1.allesolution.local | Releasebuild-433742VMware... S
37 esx1.allesolution.local | Releasebuild-433742VMware... S
38 esx1.allesolution.local | Releasebuild-433742VMware... S
39 esx2.allesolution.local | Releasebuild-433742VMware... S
40 esx2.allesolution.local | Releasebuild-433742VMware... S
41 esx2.allesolution.local | Releasebuild-433742VMware... S
42 esx2.allesolution.local | Releasebuild-433742VMware... S
43 esx2.allesolution.local | Releasebuild-433742VMware... S
44 esx2.allesolution.local | Releasebuild-433742VMware... S
[/ol]复制代码