< -- BuySellAds Ad Code ALLEN -->
hp cisco

HP E Series, A Series and Cisco Switches LLDP and CDP Setup

In this article I will go through the LLDP and CDP protocols on the HP procurve ( provision ), A-Series switches (comware) and Cisco switches, how to setup, configure and test connectivity. First some brief information on the protocols.

Link Layer Discovery Protocol – Is a vendor neutral protocol used by devices to advertise their information across a network.
Cisco Discovery Protocol – Is a propriety protocol from Cisco that displays information about devices that are connected over the network or directly.

These protocols can be used during configuration and diagnostics to display the topology of a network. LLDP and CDP support on HP and Cisco devices is as below.

CISCO

  • A Cisco Switch by Default has CDP enabled on all ports
  • LLDP support was introduced on the following Cisco Products. 2950, 3760, 6500 and 3750 running OS over version 12.2

HP E Series

  • CDP is enabled on all ports ( receive mode only), transmit is not supported.
  • LLDP is enabled by default on all ports

HP A Series

  • CDP is disabled by default
  • LLDP is disabled by default

CDP and LLDP Commands Comparison

Description of Command
Hp E Series
HP A Series
Cisco
Enable LLDP LLDP Run LLDP Enable LLDP Run
Show CDP Information show cdp neighbor N/A Show CDP neighbor
Show LLDP Infomration show lldp info remote display lldp neighbot-nformation list show lldp neighbor
Show More Detailed Information show lldp info remote all display lldp neighbot-nformation show lldp neighbor detail

In my test setup below, I have one HP procurve and once Cisco catalyst.  The switches are directly connected. The procurve has port 24 tagged in vlan 2 and vlan 2 is 192.168.1.1. The Cisco also has vlan 2 created on 192.168.1.2 and has port 1 tagged to it (using the switchport mode trunk command ).

From the Procurve we run

show cdp neighbor

procurve show CDP
As you can see the command shows us that we are connected to a device named Cisco and which port we are connected to it on. If we would like more detailed information we run the following command.

show cdp neighbor detail

show hp cdp detail
We now get much more information, we can see the ip address, what type of devices and the port speed we are directly connected with. So we now know that our topology runs at 100mb between our HP and our Cisco.

If we wanted to get same information for LLDP then use the commands in the table above.

Now from the cisco we run the command below to check its neighbors.

show cdp neighbors details

Should I use LLDP or CDP

Tough question, obviously if your environment is all Cisco then CDP and if your environment is HP then LLDP. In a mixed environment personally I prefer LLDP as it is not vendor specific and all new switches are compatible, the only time I would consider CDP was if my core was Cisco. Remember you can use both of these protocols at the same time.

Allen White

Allen is an IT Consultant and holds the following accreditations. MCSA, MCSE, MCTS, MCITP, CCA, CCSP, VCP 4,5, 6 and HP ASE, AIS - Network Infrastructure.

Comments (2)

  • Avatar

    Azril

    |

    Hi,

    I would like to ask regarding cdp neighbor between Cisco & Procurve Switches.

    I have a few Procurve are able to display Cisco as a neighbor. But, the rest of it, failed to do so. All the switches are connected to the same LAN.

    All Procurve switches have same firmware & configuration.

    Is there any special configuration that i need to add on the Procurve switches?

    Reply

    • Avatar

      Allen White

      |

      Hi, no the Procurves will be fine. Are you using LLDP or CDP? if you are using LLDP do all the Cisco switches support LLDP?

      Allen

      Reply

Leave a comment

Categories

Vote!

What Web Browser Do You Use?

View Results

Loading ... Loading ...

Vote!

What do you prefer..VMware or Hyper-V?

View Results

Loading ... Loading ...