Dell Networking SONiC: Link Layer Discovery Protocol

Summary: In diesem Artikel wird das Link Layer Discovery Protocol (LLDP) und die Konfiguration in Dell Networking SONiC erläutert. Dieser Artikel verwendet einen Switch, auf dem Dell SONiC 4.1 ausgeführt wird. ...

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Instructions

 
Voraussetzungen
Wir verwenden die Standardschnittstellenbenennung, um die Konzepte zu demonstrieren. Lesen Sie den Artikel 202172 Dell Networking S-Serie: Grundlegende Schnittstellenkonfiguration – SONiC 4.0 für weitere Informationen zur Schnittstellenbenennung


Index

Einführung
Konfigurationssyntax 
    Aktivieren und Deaktivieren von LLDP. 
    Konfigurieren von LLDP-Übertragungen
    Konfigurieren des LLDP-Empfangs
    Aktivieren Sie LLDP Transmit and Receive.
    Aktivieren Sie LLDP, um die Verwaltungsadresse, den Systemnamen und die Beschreibung zu senden.
Überprüfen
 

Einführung

Das Link Layer Discovery Protocol (LLDP) ermöglicht es dem Switch, wichtige Funktionen und physische Beschreibungen verfügbar zu machen. LLDP ist in IEEE 802.1AB definiert. Diese Informationen können verwendet werden, um die Systemtopologie zu identifizieren und fehlerhafte Konfigurationen auf dem LAN zu erkennen. 

  • LLDP ist ein unidirektionales Protokoll. es gibt keine Anforderungs- oder Antwortsequenzen. Stationen, die die Übertragungsfunktion implementieren, geben die Informationen an und Stationen, die die Empfangsfunktion implementieren, empfangen und verarbeiten die Informationen.
  • Die Übertragungs- und Empfangsfunktionen können auf jedem Switch-Port separat aktiviert oder deaktiviert werden. 
  • LLDP ist ein anbieterneutrales Ermittlungsprotokoll. 
  • Der Switch empfängt und überträgt regelmäßig LLDP-Protokolldateneinheiten (PDUs). Das Standardübertragungsintervall beträgt 30 Sekunden.
  • LLDP-PDU-Informationen, die von einem Nachbarn empfangen werden, laufen nach einer bestimmten Zeit ab, die als Time to Live (TTL) bezeichnet wird. Der TTL-Standardwert ist 120 Sekunden.
  • Spanning-Tree-blockierte Ports ermöglichen LLDP-PDUs.

Konfigurationssyntax

HINWEIS: LLDP-Tabellen werden nach jeder Änderung in der LLDP-Konfiguration in 120 Sekunden (TTL) aktualisiert.

Aktivieren und Deaktivieren von LLDP.  

Enable LLDP Globally
admin@DELLSONiC:~$ sonic-cli
DELLSONiC# configure
DELLSONiC(config)# lldp enable
DELLSONiC(config)# end

Disable LLDP Globally 
DELLSONiC# configure  
DELLSONiC(config)# no lldp enable 
DELLSONiC(config)# end

Enable LLDP on a single interface
DELLSONiC# configure 
DELLSONiC(config)# interface Eth slot/port[/subport]
DELLSONiC(config-if-EthX/X)# lldp enable
DELLSONiC(config-if-EthX/X)# end

Disable LLDP on a single interface 
DELLSONiC# configure 
DELLSONiC(config)# interface Eth slot/port[/subport]
DELLSONiC(config-if-EthX/X)# no lldp enable 
DELLSONiC(config-if-EthX/X)# end
 

Konfigurieren von LLDP-Übertragungen

Durch Ausführen dieser Befehle wird der LLDP-Empfang deaktiviert.
Enable LLDP Transmit Globally
admin@DELLSONiC:~$ sonic-cli
DELLSONiC# configure
DELLSONiC(config)# lldp transmit
DELLSONiC(config)# end

Enable LLDP Transmit on a single interface
DELLSONiC# configure 
DELLSONiC(config)# interface Eth slot/port[/subport] 
DELLSONiC(config-if-EthX/X)# lldp transmit
DELLSONiC(config-if-EthX/X)# end


Enable LLDP Transmit and Receive (Click here) 
 

Konfigurieren des LLDP-Empfangs

Durch Ausführen dieser Befehle wird die LLDP-Übertragung deaktiviert.  
Enable LLDP Receive Globally 
admin@DELLSONiC:~$ sonic-cli 
DELLSONiC# configure 
DELLSONiC(config)# lldp receive
DELLSONiC(config)# end 

Enable LLDP Receive on a single interface
DELLSONiC# configure  
DELLSONiC(config)# interface Eth slot/port[/subport]
DELLSONiC(config-if-EthX/X)# lldp receive
DELLSONiC(config-if-EthX/X)# end

Enable LLDP Transmit and Receive (Click here)  
 

Aktivieren Sie LLDP Transmit and Receive.

Standardmäßig ist LLDP-Übertragung und -Empfang standardmäßig aktiviert.
Wenn SIE LLDP-Übertragung konfiguriert haben, wird LLDP-Empfang deaktiviert.
Wenn Der LLDP-Empfang konfiguriert ist, wird LLDP-Übertragung deaktiviert.
Um beide zu aktivieren, entfernen Sie LLDP-Empfang und LLDP-Übertragung.
Enable LLDP Transmit and Receive Globally 
admin@DELLSONiC:~$ sonic-cli 
DELLSONiC# configure 
DELLSONiC(config)# no lldp receive
DELLSONiC(config)# no lldp transmit
DELLSONiC(config)# end 

Enable LLDP Transmit and Receive on a single interface
DELLSONiC# configure  
DELLSONiC(config)# interface Eth slot/port[/subport]
DELLSONiC(config-if-EthX/X)# no lldp receive
DELLSONiC(config-if-EthX/X)# no lldp transmit
DELLSONiC(config-if-EthX/X)# end
 

Aktivieren Sie LLDP, um die Verwaltungsadresse, den Systemnamen und die Beschreibung zu senden.

Standardmäßig macht LLDP den Systemnamen und die Systembeschreibung an.
Zur Werbung für die Managementadresse durch LLDP müssen wir lldp tlv-select management-address manuell konfigurieren.  
Use bellow configuration to enable system-name, system-description and management-address
DELLSONiC# configure
DELLSONiC(config)# lldp system-name 
DELLSONiC(config)# lldp system-description 
DELLSONiC(config)# lldp tlv-select management-address
DELLSONiC(config)#end

Disable system-name, system-description and management-address
DELLSONiC# configure
DELLSONiC(config)# no lldp system-name
DELLSONiC(config)# no lldp system-description
DELLSONiC(config)# no lldp tlv-select management-address
DELLSONiC(config)#end

You have an option to manually specify the IPv4/IPv6 address of management address manually
DELLSONiC# configure
DELLSONiC(config)# interface Eth slot/port[/subport]
DELLSONiC(config-if-Eth1/1)# lldp tlv-set management-address  
DELLSONiC(config-if-Eth1/1)# end *Applying this command will make Switch to send LLDP in the specific interface with configured IPV4/IPV6 address, rather than management port IP address. To disable use DELLSONiC# configure DELLSONiC(config)# interface Eth slot/port[/subport] DELLSONiC(config-if-Eth1/1)# lldp tlv-set management-address DELLSONiC(config-if-Eth1/1)# end
 

Prüfen

Konfiguration Syntax
DELLSONiC# show lldp-Tabelle Zeigen Sie den Sommer aller LLDP-Nachbarn.
DELLSONiC# show lldp neighbor Zeigen Sie Details zu allen LLDP-Nachbarn an.
DELLSONiC# show lldp neighbor Eth slot/port[/subport] Zeigen Sie Details zu LLDP Neighbors in einer bestimmten Schnittstelle an.
DELLSONiC# show lldp statistics Zeigen Sie LLDP-Statistiken aller LLDP-Nachbarn an.
DELLSONiC# show lldp statistics Eth slot/port[/subport] Zeigen Sie LLDP-Statistiken in einer bestimmten Schnittstelle an.

Beispielausgabe
DELLSONiC# show lldp table
------------------------------------------------------------------------------------------------------
LocalPort           RemoteDevice        RemotePortID        Capability          RemotePortDescr
-------------------------------------------------------------------------------------------------------
Eth1/1              DELL-EDGE-sonic               Eth1/1              R                   Ethernet0
DELLSONiC# show lldp neighbor Eth 1/1
-----------------------------------------------------------
LLDP Neighbors
-----------------------------------------------------------
Interface:   Eth1/1,via: LLDP
  Chassis:
    ChassisID:    XXXXXXXXXXXXXXXXXXXXXXXX
    SysName:      DELL-EDGE-sonic
    SysDescr:     DELL-CORE
    TTL:          120
    MgmtIP:       30.0.0.1
    Capability:   ROUTER, ON
  Port
    PortID:       Eth1/1
    PortDescr:    Ethernet0
  LLDP-MED
    Device Type:  Network Connectivity Device
    Capability:   Capabilities, yes
    Capability:   Ext_mdi_power_pd, yes
    Capability:   Inventory, yes
    Capability:   Network_policy, yes
    Inventory
      Hardware Rev:  XXXXXXXXXXXXXXXXXXXXXXXX
      Software Rev:  XXXXXXXXXXXXXXXXXXXXXXXX
      Firmware Rev:  XXXXXXXXXXXXXXXXXXXXXXXX
      Serial Number:
DELLSONiC# show lldp statistics Eth 1/1
LLDP Statistics
---------------------------------
Interface: Eth1/1
    Transmitted      : 60
    Received         : 45
    Discarded        : 0
    Unrecognized TLV : 0
    Ageout           : 1
---------------------------------

Affected Products

Enterprise SONiC Distribution, PowerSwitch E3200-ON Series, Dell EMC Networking N3200-ON, PowerSwitch S5212F-ON, PowerSwitch S5224F-ON, PowerSwitch S5232F-ON, PowerSwitch S5248F-ON, PowerSwitch S5296F-ON, PowerSwitch Z9100-ON, PowerSwitch Z9264F-ON , PowerSwitch Z9332F-ON, PowerSwitch Z9432F-ON ...
Article Properties
Article Number: 000218154
Article Type: How To
Last Modified: 16 Oct 2023
Version:  4
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.