LLDP Protocol- Link Layer Discovery

22.03.2025
957
LLDP Protocol- Link Layer Discovery

Thanks to the LLDP protocol, which stands for Link Layer Discovery Protocol, the local network is mapped. Whether it is a main switch or an edge switch, it collects all network devices and interface information connected to the interface on it.

Due to the technology advancing day by day, new units are constantly positioned in the network. The name and port-based information of the positioned newtork device is collected together thanks to this protocol.

LLDP Layer

Day by day the number of ports increases and as a result the network expands. New configurations or even new devices may need to be positioned. This is where LLDP comes to your aid.

As it is known, the protocol that switch and router devices communicate with each other in the network is separate from network traffic. Even if desired, it can be completely separated from traffic with “management ip and management interface” even on interface basis. This application is usually defined between backbone switches working in VRRP structure. There is no need to allocate individual interfaces to each edge switch and use separate cables.

While users communicate with protocols such as TCP and UDP, network switches and routers communicate with multiple protocols such as LLDP, STP, MSTP, IGMP, QOS, SMTP, SNMP, LACP, LDAP. Ethernet interfaces belonging to the users identify themselves to the switches with MIB packets and become a member of the ARP list by sending a mac address.

Similarly, switches communicate among themselves with the LLDP protocol and send packets of information about both management interfaces and other uplink interfaces.

lldp

In this tutorial, we will answer the question of how LLDP works on HP Procurve model manageable switches. LLDP comes as enable on all Procurve switches. There is no need to make an extra configuration. Thanks to LLDP, you can easily find out which device has which interface behind the cable connected to the interface. For this, you need to connect to the switch from the console interface and run the following commands.

switch1# config
switch1(config)# show LLDP info remote-device
SSH

When this code snippet is run on the console, if it is an edge switch and there is no jumping on it, that is, if there is no other switch running under it, the hostname, host uplink interface id, switch uplink interface id and main switch uplink port mac address of the main switch will be listed on the screen.

KENAR SWITCH OUTPUT:

LocalPort | ChassisId                 PortId PortDescr SysName
 --------- + ------------------------- ------ --------- ----------------------
 49        | 00 11 22 33 aa bb         59     C7        MAIN_VRRP_SW
SSH

MAIN SWITCH OUTPUT:

LLDP Remote Devices Information

LocalPort | ChassisId                 PortId PortDescr SysName
 --------- + ------------------------- ------ --------- -------
 A1        | 00 11 22 33 aa cc         49     49         SW1
 A2        | 00 11 22 33 aa dd         49     49        SW2
 A3        | 00 11 22 33 aa ba         49     49        SW3
 A4        | 00 11 22 33 aa bc         49     49        SW4
 C7        | 00 11 22 33 aa bd         49     49        SW5
 C15       | 00 11 22 33 aa be         49     49        YEDEK-SW1
 C16       | 00 11 22 33 aa bf         50     50        YEDEK-SW2
SSH

With the command, the management ip addresses and chasis information on the switch itself comes. It is like this:

LLDP Local Device Information   

switch1(config)# show LLDP info local-device

Chassis Type : mac-address                                                                                                                 
  Chassis Id   : 11 22 33 aa cc 00                                                                                            System Name  : MAIN_VRRP_SW                                                                                                     
  System Description : HP J4819A ProCurve Switch 5308xl, revision E.10.23, ...                                                               
  System Capabilities Supported:bridge, router                                                                                               
  System Capabilities Enabled:bridge, router                                                                                                 
                                                                                                                                             
  Management Address  :                                                                                                                      
     Type:ipv4                                                                                                                               
     Address:6.6.6.7                                                                                                                         
     Type:ipv4                                                                                                                               
     Address:10.10.96.1                                                                                                                      
     Type:ipv4                                                                                                                               
     Address:10.10.200.1                                                                                                                     
     Type:ipv4                                                                                                                               
     Address:10.10.201.1                                                                                                                     
     Type:ipv4                                                                                                                               
     Address:10.10.209.1                                                                                                                     
     Type:ipv4                           
SSH

Another command is used with the stats argument.

switch1(config)# show LLDP stats
SSH

When this command is typed, a list showing the number of packets sent/received on the interfaces in use will be displayed.

Finally, let’s look at the config argument:

switch1(config)# show LLDP config
SSH

As a result of this command, the Tx_Rx information and Topolgy Trap status of each interface are listed on the screen.

MAKE A COMMENT
COMMENTS - 0 COMMENTS

No comments yet.

Bu web sitesi, bilgisayarınıza bilgi depolamak amacıyla bazı tanımlama bilgilerini kullanabilir.
Bu bilgilerin bir kısmı sitenin çalışmasında esas rolü üstlenirken bir kısmı ise kullanıcı deneyimlerinin iyileştirilmesine ve geliştirilmesine yardımcı olur.
Sitemize ilk girişinizde vermiş olduğunuz çerez onayı ile bu tanımlama bilgilerinin yerleştirilmesine izin vermiş olursunuz.
Çerez bilgilerinizi güncellemek için ekranın sol alt köşesinde bulunan mavi kurabiye logosuna tıklamanız yeterli. Kişisel Verilerin Korunması,
Gizlilik Politikası ve Çerez (Cookie) Kullanımı İlkeleri hakkında detaylı bilgi için KVKK&GDPR sayfamızı inceleyiniz.
| omersahin.com.tr |
Copyright | 2007-2025