SONiC Dell Networking: Protocollo di rilevamento link layer

Summary: Questo articolo spiega il Link Layer Discovery Protocol (LLDP) e la configurazione in Dell Networking SONiC. Questo articolo utilizza uno switch con Dell SONiC 4.1.

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

 
Prerequisiti
Stiamo utilizzando la denominazione dell'interfaccia standard per dimostrare i concetti. Consultare l'articolo 202172 Dell Networking serie S: Configurazione dell'interfaccia di base - SONiC 4.0 per ulteriori informazioni sulla denominazione dell'interfaccia


Indice

Introduzione
Sintassi di
configurazioneAbilita e disabilita LLDP.      
    Configurazione della trasmissione
LLDPConfigurare la ricezione
LLDPAbilitare LLDP Transmit and Receive.       
    Abilitare LLDP per inviare l'indirizzo di gestione, il nome e la descrizione del sistema.
Verificare
 

Introduzione

Link Layer Discovery Protocol (LLDP) consente allo switch di pubblicare le funzionalità principali e le descrizioni fisiche. LLDP è definito in IEEE 802.1AB. Queste informazioni possono essere utilizzate per identificare la topologia di sistema e rilevare configurazioni errato sulla LAN. 

  • LLDP è un protocollo unidirezionale; non sono presenti sequenze di richieste o risposte. Le stazioni che implementano la funzione di trasmissione pubblicizzano le informazioni e le stazioni che implementano la funzione di ricezione ricevono ed elaborano le informazioni.
  • Le funzioni di trasmissione e ricezione possono essere abilitate o disabilitate separatamente su ciascuna porta dello switch. 
  • LLDP è un protocollo di discovery indipendente dal vendor. 
  • Lo switch riceve e trasmette periodicamente le unità dati del protocollo LLDP (PDU). L'intervallo di trasmissione predefinito è 30 secondi.
  • Le informazioni sulle PDU LLDP ricevute da un dispositivo contiguo scadono dopo un determinato periodo di tempo, denominate time to live (TTL). Il valore TTL predefinito è 120 secondi.
  • Le porte bloccate spanning tree consentono PDU LLDP.

Sintassi di configurazione

NOTA: Le tabelle LLDP vengono aggiornate in 120 secondi (TTL) dopo qualsiasi modifica alla configurazione LLDP.

Abilita e disabilita 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
 

Configurazione della trasmissione LLDP

L'esecuzione di questi comandi disabilita la ricezione LLDP.
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) 
 

Configurare la ricezione LLDP

L'esecuzione di questi comandi disabilita la trasmissione LLDP.  
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)  
 

Abilitare LLDP Transmit and Receive.

Per impostazione predefinita, l'opzione LLDP transmit and receive (Trasmissione e ricezione LLDP) è abilitata per impostazione predefinita.
Se è stata configurata la trasmissione LLDP, la ricezione LLDP viene disattivata.
Se la ricezione LLDP è configurata, la trasmissione LLDP viene disattivata.
Per attivare entrambe le opzioni, rimuovere la ricezione LLDP e la trasmissione LLDP.
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
 

Abilitare LLDP per inviare l'indirizzo di gestione, il nome e la descrizione del sistema.

Per impostazione predefinita, LLDP pubblica il nome del sistema e la descrizione del sistema.
Per pubblicizzare l'indirizzo di gestione tramite LLDP, è necessario configurare manualmente l'indirizzo di gestione lldp tlv-select .  
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
 

Verifica

Configurazione Sintassi
DELLSONiC# show lldp table Mostrare l'estate di tutti i dispositivi contigui LLDP.
DELLSONiC# show lldp neighbor Mostrare i dettagli di tutti i dispositivi contigui LLDP.
DELLSONiC# show lldp neighbor Eth slot/port[/subport] Mostrare i dettagli dei dispositivi contigui LLDP in un'interfaccia specifica.
DELLSONiC# show lldp statistics Visualizzare le statistiche LLDP di tutti i dispositivi contigui LLDP.
DELLSONiC# show lldp statistics Eth slot/port[/subport] Mostrare le statistiche LLDP in un'interfaccia specifica.

Esempi di output
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.