Link Layer Discovery Protocol (LLDP) is an open, vendor-neutral alternative to Cisco's proprietary CDP, enabling network device discovery across multi-vendor environments. This content covers how to enable and disable LLDP globally and at the interface level on Cisco equipment.
LLDP on Cisco Devices
CDP is something specific to Cisco equipment. It is a Cisco proprietary protocol, so you won't see it on other devices that are out there. So what happens if you have other different brands of equipment that are connected to your network and you want some sort of discovery protocol running on it? Well, there is an answer to that, and the answer is Link Layer Discovery Protocol. Your Cisco equipment doesn't have it turned on by default, but we can turn it on in case we have other brands that are connected to your Cisco equipment.
So let's go ahead and turn it on. The first thing that I'm going to do is I'm going to do a show lldp, and we can see that it's not enabled. So now I'm going to get into the global configuration mode to enable it, and the command to enable it is lldp run. And so now I've enabled it. I'm going to exit out of this and do a show lldp neighbors, and they've already reported in, which was pretty fast. We know CDP sometimes it took a little bit.
So let's go ahead and do a show lldp, and that's going to show us some information. These advertisements are actually sent every 30 seconds, so it's sending out the advertisements a little bit faster, and then it will hold on to entries. It will stay in this table right here for 120 seconds even if it doesn't receive an update for 120 seconds, and then it will expire out of there. So it updates a little bit faster than CDP does.
Now let's say I want lldp to be running, but I don't want it to be communicating to this S3 connection right here. So what I can do is I can get into that interface, and I'm going to get into 1 0 45, and I'm going to say no lldp. Now there is a little bit of a difference between lldp and CDP, in that we have to turn it off for both the transmit and the receive. So I'm going to do a no lldp receive and no lldp transmit.
Now it's still going to be in the table at this point in time, so I'm going to do show lldp neighbors and hit enter. It's still in here because it's going to hold it for 120 seconds. So once it doesn't receive an update, an advertisement, for 120 seconds, then it'll come out of this.
So you probably can guess how we turn it back on. We'll just do an update here. I'm not sure if we've given it enough time, but to turn this back on, all we have to do is re-enter this command, lldp receive, and it will turn it back on, and then we can do the lldp transmit. So I've entered this into the interface, and now that interface is back on.
I'm going to exit out of here, and if I want to turn lldp off altogether I can do no lldp run and hit enter, and now lldp is turned off. Just to show, I'm going to do a show lldp, and we see that it is not enabled. So there you have it, another alternative to CDP. You have to turn it on.
TechKnowSurge builds IT and cybersecurity professionals through hands-on, concept-first training built around real understanding — not memorization. Free interactive tools, structured programs, and 25+ years of real-world experience, all in one place.
Explore free tools and programs →