What Is LLDP? Security Definition
This page mentions older exam versions. See the Current Exam Context and Legacy Exam Context sections below for the updated mapping.
On This Page
Quick Definition
LLDP is a protocol that lets network devices like switches and routers automatically share information about themselves with nearby devices. It helps network administrators see exactly how devices are connected and what kind of device each one is. You can think of it as a device automatically introducing itself to its neighbors on the network.
Commonly Confused With
CDP is a Cisco proprietary discovery protocol, while LLDP is an IEEE standard. CDP provides similar neighbor information but only works on Cisco devices. LLDP is vendor-neutral and used in multi-vendor environments. Both operate at Layer 2, but they have different packet formats and default settings.
In a network with a Cisco switch and a Juniper router, you must use LLDP because the Juniper router does not understand CDP.
STP prevents loops in a network by blocking redundant paths, while LLDP is used for neighbor discovery. STP operates at Layer 2 but its purpose is topology management to avoid broadcast storms, not to share device identity information. Both use BPDUs (STP) and LLDPDUs (LLDP) but they are completely different protocols.
STP ensures only one path is active between switches; LLDP tells you what that other switch is called and what it can do.
SNMP is used to monitor and manage network devices by reading and writing management information, usually from a central server. LLDP is a discovery protocol that runs locally between directly connected neighbors. SNMP can be used to retrieve LLDP information from a switch's MIB, but the protocols themselves operate at different layers and for different purposes.
SNMP is like a manager calling each employee for a report; LLDP is like employees introducing themselves to their desk neighbors.
Must Know for Exams
LLDP appears in multiple general IT certification exams, including the CompTIA Network+ (N10-008 and N10-009), Cisco CCNA (200-301), and Juniper JNCIA-Junos. Each exam tests LLDP knowledge at a slightly different depth, but the core concepts remain the same.
For CompTIA Network+, LLDP is a subtopic under 'Network Operations' and 'Network Troubleshooting'. Questions may ask you to identify the purpose of LLDP, differentiate it from CDP, or recognize the standard that defines it (IEEE 802.1AB). You might be given a scenario where a network administrator needs to map the physical topology of a multi-vendor network, and the correct tool is LLDP. These questions are usually straightforward concept questions or scenario-based multiple choice.
On the Cisco CCNA exam, LLDP is tested more deeply. Candidates need to know how to enable LLDP globally and per interface, verify LLDP operation, and interpret the output of 'show lldp neighbors' and 'show lldp neighbors detail'. CCNA questions may present a configuration snippet and ask which LLDP feature is being used, or give an output and ask you to identify the device type of a neighbor. You may also be asked to compare LLDP and CDP, especially in a mixed-vendor environment where CDP cannot be used. Since CCNA now emphasizes multi-vendor knowledge, LLDP has become more important.
For the JNCIA-Junos exam, LLDP is a key topic as Juniper devices use LLDP as their primary discovery protocol. You need to understand the Juniper-specific CLI commands such as 'show lldp neighbors' and 'show lldp local-information'. The exam may ask about the default LLDP timer values (30 seconds for transmit, 120 seconds for hold time) or how to configure LLDP on an interface.
In all these exams, you should expect questions that test your understanding of what information LLDP provides (system name, system description, port ID, capabilities) and how it differs from link-layer protocols like STP or VLAN tagging. Practical troubleshooting questions might show a scenario where a device does not appear in the LLDP neighbor table and ask for the most likely cause, such as LLDP being disabled on an interface, a mismatched VLAN, or a firewall blocking the LLDP multicast address.
Simple Meaning
Imagine you move into a new apartment building. You don't know who lives next door or what they do. To make life easier, everyone could put a small card on their door that says their name, what they do for work, and what skills they have. That way, you can walk down the hallway and instantly know who your neighbors are without having to knock on every door. LLDP does the same thing for network devices.
When a switch, router, or even a printer is connected to a network, LLDP allows it to send out a small message to every device directly connected to it. This message is like the card on the door. It tells the neighbor device things like the device's name, the type of device it is (a switch, a router, a wireless access point), the version of software it is running, and which of its ports the message came from. The neighbor device receives this information and stores it in a local table.
Network administrators can then look at that table to get a complete map of all the devices on their local network and exactly how they are physically connected. This is incredibly useful for troubleshooting, verifying that devices were installed correctly, and discovering devices that might not be configured properly. LLDP is especially popular because it is vendor-neutral, meaning a Cisco switch can talk to a Juniper router or an HP printer, unlike some proprietary protocols that only work between devices from the same manufacturer.
Full Technical Definition
LLDP is defined in the IEEE standard 802.1AB and is a Layer 2 (Data Link Layer) protocol that operates over Ethernet networks. Its primary purpose is to allow network devices to discover and advertise information about themselves to directly connected neighbors on the same local area network (LAN). LLDP is designed to be vendor-neutral, making it interoperable across equipment from different manufacturers, distinguishing it from proprietary protocols like Cisco Discovery Protocol (CDP).
LLDP operates by periodically transmitting LLDP Data Units (LLDPDUs) as Ethernet frames. These frames are sent to a special multicast destination MAC address (01-80-C2-00-00-0E) that is recognized by all LLDP-enabled devices but is not forwarded by bridges (switches). Each LLDP frame carries a chassis ID (which identifies the device itself), a port ID (which identifies the specific port from which the frame was sent), a Time To Live (TTL) value indicating how long the information should be considered valid, and a series of optional Type-Length-Value (TLV) elements.
TLVs are the core of LLDP. The mandatory TLVs include Chassis ID TLV, Port ID TLV, and Time To Live TLV. Optional TLVs defined in the standard include System Name TLV, System Description TLV, System Capabilities TLV, Management Address TLV, and Port Description TLV. Additional TLVs can be defined by organizations (like IEEE 802.1 for VLAN information or IEEE 802.3 for power negotiation) or by vendors for proprietary extensions.
LLDP operates in four main phases: initialization, transmission, reception, and aging. On initialization, a device prepares its LLDP local system MIB (Management Information Base) with its own information. It then begins sending LLDPDUs to all active ports at a configurable interval (typically 30 seconds by default). Received LLDPDUs are parsed and stored in the remote systems MIB, which the network administrator can query via SNMP or CLI. The stored information ages out after the TTL expires (typically 120 seconds), after which the neighbor entry is removed.
In real IT implementations, LLDP is used for automated network topology discovery, verifying physical connectivity, detecting unauthorized devices, and supporting higher-layer protocols like LLDP-MED (Media Endpoint Discovery) which extends LLDP for VoIP phones and other endpoints. Network engineers often enable LLDP globally on switches and then verify neighbor information using commands like 'show lldp neighbors' on Cisco switches or 'show lldp' on Juniper devices.
Real-Life Example
Imagine you are organizing a huge potluck dinner in a community center. There are many tables, each belonging to a different family or group. You have no idea which group is sitting where or what dish each group brought. To solve this, you ask every group to put a small flag on their table that shows their family name, a list of the dishes they brought, and a phone number where they can be reached. Now you can walk around the room, look at each flag, and instantly know which group is at which table and what they can offer.
LLDP works exactly like those flags. Each network device (a switch, a router, a printer, a wireless access point) is like a family at the potluck. The LLDP message is the flag. It advertises the device's name (system name), what kind of device it is (system capabilities), and even its management IP address (management address). The neighboring device receives this information and keeps it stored until it expires or is refreshed.
Now, if someone asks you where the dessert table is, you can look at your mental map of the flags you saw and point them in the right direction. Similarly, when a network administrator needs to find out where a specific switch is connected or why a certain device is not reachable, they can look at the LLDP neighbor tables on their switches. They can map out the entire network without having to physically trace cables. This saves enormous time and reduces human error, just as the flags save you from having to walk up to every table and ask what they brought.
Why This Term Matters
LLDP matters in practical IT because it solves one of the most basic and frustrating problems for network engineers: knowing exactly how devices are physically connected. In any data center or office network, cables run from switches to routers, servers, firewalls, and access points. Over time, documentation gets outdated, cables get moved, and network diagrams become inaccurate. LLDP provides a live, accurate, and automatic view of the Layer 2 topology.
When a new device is connected to a switch port, that switch learns the device's identity, model, software version, and capabilities within seconds. If a network engineer is troubleshooting a connectivity issue, they can log into a switch, run a simple command to show LLDP neighbors, and see exactly what is plugged into each port. This can immediately reveal misconfigurations, such as a server plugged into a port intended for a printer, or an unauthorized device attached to the network.
LLDP also plays a critical role in network automation and monitoring. Tools like network management systems (NMS) can poll LLDP information from switches to automatically build and update network topology maps. This is especially important in large environments where manually updating diagrams is impractical. LLDP-MED extends LLDP to support Voice over IP (VoIP) deployments by automatically configuring voice VLANs, Power over Ethernet (PoE) settings, and location information for IP phones.
From a security perspective, LLDP can help detect rogue devices. If a switch suddenly learns an LLDP neighbor with an unexpected system name or capabilities, it can trigger an alert. While LLDP itself does not provide security (it is unauthenticated), it is a valuable tool for maintaining network visibility and operational hygiene.
How It Appears in Exam Questions
Exam questions about LLDP generally fall into four categories: concept definition, scenario-based selection, configuration verification, and troubleshooting.
Concept definition questions are the simplest. They might ask: 'Which of the following best describes the function of LLDP?' with answer choices that include terms like 'routing protocol', 'VLAN tagging', 'neighbor discovery', or 'encryption'. The correct answer is neighbor discovery. Another common question is: 'At which layer of the OSI model does LLDP operate?' The answer is Layer 2 (Data Link Layer). You may also be asked to identify the standard: IEEE 802.1AB.
Scenario-based questions give you a practical situation and ask you to choose the best protocol or tool. For example: 'A network administrator needs to create a network topology map of a network that includes switches from three different vendors. Which protocol should be used?' The answer is LLDP because it is vendor-neutral, unlike CDP which is Cisco-only. Another scenario might describe a problem: 'Users report that phones connected to a switch are not receiving the correct voice VLAN information. The switch supports LLDP-MED. What should the administrator verify?' The answer would be that LLDP-MED is enabled on the switch port and that the phone is LLDP-MED capable.
Configuration verification questions present a partial output of a switch's command line. For example: 'Given the following output from a switch, what device is connected to interface GigabitEthernet0/1?' The output might show 'System Name: Sales-Switch-01', 'System Capabilities: Bridge', and 'Port Description: uplink to core'. The correct answer is a switch (because the capability 'Bridge' indicates a switch). You might also see questions that ask you to identify the missing step: 'An administrator enabled LLDP globally but no neighbors appear. Which additional step is required?' The answer is enabling LLDP on individual interfaces (for some platforms) or checking that the neighbor also has LLDP enabled.
Troubleshooting questions often focus on why LLDP information is not being received. Common reasons include: LLDP is disabled on the interface, the neighbor device does not support LLDP, a firewall or ACL is blocking the LLDP multicast MAC address, or the TTL has expired and no new updates were received. You might also be asked why two devices running CDP and LLDP both appear as neighbors, and the answer is that both protocols can run simultaneously without conflict.
Practise LLDP Questions
Test your understanding with exam-style practice questions.
Example Scenario
A small company called 'TechParts' has just expanded its office. The network administrator, Maria, has been asked to create an accurate diagram showing how the new switches, wireless access points, and the main router are all physically connected. The problem is that the previous administrator left no documentation, and Maria cannot trace all the cables because they run through the ceiling.
Maria decides to use LLDP to discover the network topology. She logs into the main core switch (which is from vendor A) and types 'show lldp neighbors'. The output lists two neighbors: one is the border router (system name: 'Edge-Router-01', port: GigabitEthernet0/0), and the other is a new switch (system name: 'Floor2-Switch', port: GigabitEthernet0/1). She then logs into Floor2-Switch and uses the same command. It shows that it is connected to the core switch on one port and to two wireless access points on other ports. The access points advertise themselves as 'Wireless Access Point' with their model numbers.
Within 30 minutes, Maria has a complete and accurate map of the entire physical network, all without climbing a single ladder or touching a single cable. She saves this map and continues to use it for future troubleshooting. Later, when a user reports that a new printer is not working, Maria checks the LLDP table on the nearest switch and discovers the printer is connected to the wrong VLAN. She corrects it quickly.
This scenario shows how LLDP transforms a potentially days-long manual cable tracing task into a quick, automated discovery process. It also demonstrates that LLDP works across different vendors, which is critical in a real-world network that almost always includes equipment from multiple manufacturers.
Common Mistakes
Assuming LLDP is a routing protocol that works across routers.
LLDP operates at Layer 2 and only works between directly connected devices on the same local network segment. It does not traverse routers or Layer 3 boundaries.
Remember that LLDP is a 'link layer' discovery protocol. It only tells you about devices that are physically connected to the same switch or directly adjacent.
Thinking LLDP and CDP are identical and interchangeable.
CDP is Cisco proprietary and only works on Cisco devices. LLDP is an IEEE standard and works across devices from any manufacturer. They have different packet formats and capabilities.
Use CDP in a pure Cisco network for potentially richer information. Use LLDP in multi-vendor networks or when you need IEEE standard compliance.
Believing LLDP automatically configures VLANs or routing tables.
LLDP only discovers and advertises information. It does not modify the configuration of the device or automatically configure VLANs or routes. It is a read-only discovery tool.
LLDP is a discovery protocol, not a configuration protocol. For automatic VLAN assignment, consider protocols like LLDP-MED (for voice VLANs) or 802.1X, but LLDP itself does not change settings.
Believing LLDP provides security or authentication of neighbor devices.
LLDP messages are sent in plain text without any encryption or authentication mechanisms. A device can claim any identity, making LLDP vulnerable to spoofing.
Use LLDP for operational visibility but do not rely on it for security decisions. Always validate critical device identities through other means like SNMP or management access.
Forgetting that LLDP must be enabled on both devices.
LLDP is a two-way protocol. If one device has LLDP disabled, it will not send advertisements and will also ignore incoming advertisements from its neighbor.
When troubleshooting 'no neighbors' output, always verify that LLDP is enabled globally and on the specific interface on both connected devices.
Exam Trap — Don't Get Fooled
{"trap":"An exam question states: 'A network administrator runs 'show lldp neighbors' on a switch and sees no output. The administrator then runs 'show lldp' and sees that LLDP is globally enabled. What is the most likely cause?'
The trap answer options include 'The neighbor device is running CDP' or 'LLDP needs to be enabled on the interface'. Many learners think CDP and LLDP are incompatible.","why_learners_choose_it":"Learners often assume that because CDP and LLDP are different, a device running CDP cannot be discovered by LLDP.
They might also think that global enablement is sufficient for all interfaces.","how_to_avoid_it":"Remember that LLDP and CDP can operate independently on the same link without interference. A Cisco switch can send both CDP and LLDP messages.
The most likely cause for no neighbors is that LLDP is disabled on the specific interface. Always check per-interface configuration first. Also, ensure the neighbor device is LLDP-enabled."
Step-by-Step Breakdown
LLDP Initialization
When a switch boots up, the LLDP process initializes. The device reads its own configuration, including its system name, system description, and capabilities. It populates the local LLDP MIB (Management Information Base) with this data.
LLDP Message Formation (LLDPDU)
The device constructs an LLDP Data Unit (LLDPDU). This is an Ethernet frame that includes mandatory TLVs (Chassis ID, Port ID, Time To Live) and optional TLVs (System Name, System Description, Management Address, etc.). The frame is addressed to the LLDP multicast MAC address (01-80-C2-00-00-0E).
Transmission of LLDPDUs
The device sends the LLDPDU out of each active port at a regular interval, typically every 30 seconds. The interval can be configured. The frame is not forwarded by switches because the multicast address is filtered at Layer 2, ensuring it only reaches directly connected devices.
Reception and Parsing
When a neighboring LLDP-enabled device receives the frame, it checks the destination MAC address. If the device supports LLDP, it passes the frame to the LLDP process, which parses the TLVs and extracts the neighbor's information.
Storage in Remote MIB
The received information is stored in the remote systems MIB, associated with the specific port on which it was received. The TTL value (usually 120 seconds) determines how long the entry remains valid without a refresh.
Aging and Removal
If no new LLDPDU is received from a neighbor within the TTL period, the entry is aged out and removed from the table. This ensures that stale or disconnected devices do not persist in the topology map.
Practical Mini-Lesson
In a real-world enterprise network, enabling LLDP is often one of the first tasks a network engineer performs after the initial device configuration. The process is simple: on a Cisco IOS device, you enter global configuration mode and issue the command 'lldp run'. On a Juniper device, you enable LLDP under the 'protocols lldp' hierarchy. However, professionals must also consider the network's security posture and operational requirements.
One of the most important practical considerations is that LLDP can reveal a lot of sensitive information to anyone who can connect a device to a port. A malicious actor could plug a laptop running a packet sniffer into a wall jack and passively listen for LLDP frames, learning about the network's device names, IP subnets, and model numbers. Therefore, many organizations disable LLDP on ports that face untrusted areas, such as public lobbies or conference rooms. Alternatively, they may use port security features combined with 802.1X to authenticate devices before allowing any traffic, including LLDP.
Another practical issue is that LLDP can generate unwanted traffic on very large networks. Although each LLDP frame is small (around 100-500 bytes), on a network with thousands of ports, the cumulative effect can be non-negligible. Engineers can adjust the transmission interval (e.g., from 30 seconds to 120 seconds) to reduce overhead, but that also means slower discovery when new devices are connected.
From a troubleshooting perspective, when a device does not appear in the LLDP neighbor table, the first step is to check if LLDP is enabled globally and on the specific interface. Use 'show lldp' for global status and 'show lldp interface [interface]' for per-interface status. Second, verify that the neighbor device also has LLDP enabled. Third, check if there is a Layer 1 issue (cable fault) or Layer 2 issue (VLAN mismatch) that prevents the devices from communicating at all. Fourth, ensure that no ACL or firewall is filtering traffic to the LLDP multicast address.
Professionals also use LLDP in conjunction with network monitoring tools. For example, a tool like SolarWinds or PRTG can poll LLDP information from switches via SNMP and automatically generate network topology maps. This is far more efficient than manual diagramming and helps maintain accurate documentation.
What can go wrong? One common misconfiguration is forgetting to enable LLDP on all ports that need it, especially on uplink ports between switches. Another issue is running LLDP on a port that is also configured for 802.1X, where the device must authenticate before LLDP frames can be processed. In such cases, LLDP may not work as expected until authentication succeeds. Finally, some older devices or specialized hardware may not support LLDP at all, requiring alternative methods for discovery.
Memory Tip
LLDP stands for 'Link Layer Discovery Protocol', think 'Laptop Lost? Discover its Port' to remember it finds directly connected neighbors at Layer 2.
Covered in These Exams
Current Exam Context
Current exam versions that test this topic — use these objectives when studying.
200-301Cisco CCNA →N10-009CompTIA Network+ →220-1102CompTIA A+ Core 2 →XK0-006CompTIA Linux+ →SC-900SC-900 →CDLGoogle CDL →ISC2 CCISC2 CC →Legacy Exam Context
Older materials may mention these exam versions, but learners should use the current objectives for their target exam.
N10-008N10-009(current version)Related Glossary Terms
802.1Q is the networking standard that allows multiple virtual LANs (VLANs) to share a single physical network link by tagging Ethernet frames with VLAN identification information.
802.1X is a network access control standard that authenticates devices before they are allowed to connect to a wired or wireless network.
AAA (Authentication, Authorization, and Accounting) is a security framework that controls who can access a network, what they are allowed to do, and tracks what they did.
An A record is a type of DNS resource record that maps a domain name to an IPv4 address.
Frequently Asked Questions
Do I need to configure LLDP on both ends of a link?
Yes, LLDP requires two-way communication. Both devices must have LLDP enabled globally and on the connecting interfaces for neighbor discovery to work. If only one side is enabled, the other side will not receive advertisements.
Can LLDP work across a router?
No, LLDP operates at Layer 2 and only works between directly connected devices on the same Ethernet segment. Routers block Layer 2 multicast frames unless they are specifically configured to forward them, which is not standard practice.
Is LLDP secure?
No, LLDP messages are sent in plain text and contain no authentication or encryption. Any device connected to the network can listen to LLDP frames and learn device names, models, and management IP addresses. This can be a security risk on untrusted ports.
What is the difference between LLDP and LLDP-MED?
LLDP-MED is an extension of LLDP specifically designed for media endpoints like VoIP phones. It allows devices to exchange information about PoE requirements, voice VLAN assignment, and location information. LLDP itself covers basic neighbor discovery for all devices.
How often does LLDP send advertisements?
By default, LLDP sends advertisements every 30 seconds. This interval can be configured to be longer or shorter depending on network requirements. The TTL (Time To Live) is typically set to 120 seconds, meaning a neighbor's entry will be removed after four missed transmissions.
Which command shows LLDP neighbors on a Cisco switch?
The command is 'show lldp neighbors'. To see more detailed information, use 'show lldp neighbors detail'. For global LLDP status, use 'show lldp'.
Summary
LLDP, or Link Layer Discovery Protocol, is a vendor-neutral IEEE 802.1AB standard that allows network devices to discover and advertise information about themselves to directly connected neighbors. It is the network equivalent of devices automatically introducing themselves to their immediate neighbors, providing details like system name, device type, software version, and management IP address. This information is transmitted in LLDP Data Units (LLDPDUs) as Layer 2 Ethernet frames sent to a specific multicast address.
LLDP is essential for network engineers because it automates the process of physical topology discovery, which is a foundational task for documentation, troubleshooting, and network management. Without LLDP (or a proprietary alternative like CDP), administrators would need to manually trace cables or rely on outdated diagrams. LLDP is especially valuable in multi-vendor networks where CDP cannot be used.
For certification exams like CompTIA Network+, Cisco CCNA, and Juniper JNCIA, LLDP appears in conceptual questions about neighbor discovery and Layer 2 protocols, as well as scenario-based questions that require you to choose LLDP for multi-vendor environments. Practical questions may involve interpreting the output of 'show lldp neighbors' or troubleshooting missing neighbor entries. The key exam takeaways are: LLDP works at Layer 2, it is vendor-neutral, it requires two-way configuration, and it does not provide security. Understanding these points will help you confidently answer any LLDP-related question on your exam.
LLDP is a simple but powerful tool that brings visibility and order to the local network. It is not a routing protocol, it does not configure devices, and it does not secure the network, but it is an indispensable part of every network engineer's toolkit for discovery and troubleshooting.