Dell Networking SONiC: Oppdagelsesprotokoll for koblingslag

Riepilogo: Denne artikkelen forklarer LLDP (Link Layer Discovery Protocol) og konfigurasjon i Dell Networking SONiC. Denne artikkelen bruker en svitsj som kjører Dell SONiC 4.1.

Questo articolo si applica a Questo articolo non si applica a Questo articolo non è legato a un prodotto specifico. Non tutte le versioni del prodotto sono identificate in questo articolo.

Istruzioni

 
Forhåndskrav
Vi bruker standard grensesnittnavn for å demonstrere konseptene. Se artikkelen 202172 Dell Networking S-serien: Basic Interface Configuration – SONiC 4.0 for mer informasjon om navngiving av grensesnitt


Indeks

Introduksjon
Konfigurasjonssyntaks 
    Aktiver og deaktiver LLDP. 
    Konfigurere LLDP-overføring
    Konfigurere LLDP-mottak
    Aktiver LLDP-overføring og -mottak.
    Aktiver LLDP for å sende administrasjonsadressen og systemnavnet og -beskrivelsen.
Kontroller
 

Innledning

LLDP (Link Layer Discovery Protocol) gjør det mulig for svitsjen å annonsere større funksjoner og fysiske beskrivelser. LLDP er definert i IEEE 802.1AB. Denne informasjonen kan brukes til å identifisere systemtopologi og oppdage ugyldige konfigurasjoner på LAN. 

  • LLDP er en enveisprotokoll. det er ingen forespørsel eller responssekvenser. Stasjoner som implementerer overføringsfunksjonen, annonserer informasjonen og stasjonene som implementerer mottaksfunksjonen, mottar og behandler informasjonen.
  • Overførings- og mottaksfunksjonene kan aktiveres eller deaktiveres separat på hver svitsjport. 
  • LLDP er en leverandørnøytral oppdagelsesprotokoll. 
  • Svitsjen mottar og overfører regelmessig LLDP-protokolldataenheter (PDU-er). Standard overføringsintervall er 30 sekunder.
  • LLDP PDU-informasjon mottatt fra en nabo utløper etter en bestemt tidsperiode, kalt time to live (TTL). Standard TTL-verdi er 120 sekunder.
  • Spanning-Tree blocked ports allow LLDP PDU's (Spanning-tree blocked ports allow LLDP PDU'er).

Konfigurasjonssyntaks

MERK: LLDP-tabeller oppdateres på 120 sekunder (TTL) etter endringer i LLDP-konfigurasjonen.

Aktiver og deaktiver 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
 

Konfigurere LLDP-overføring

Hvis du utfører disse kommandoene, deaktiveres LLDP-mottak.
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) 
 

Konfigurere LLDP-mottak

Hvis du utfører disse kommandoene, deaktiveres LLDP-overføring.  
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)  
 

Aktiver LLDP-overføring og -mottak.

SOM standard er LLDP-overføring og mottak aktivert som standard.
Hvis du har LLDP-overføring konfigurert, blir LLDP-mottak deaktivert.
Hvis lldp-mottak er konfigurert, blir LLDP-overføring deaktivert.
Fjern LLDP-mottak og LLDP-overføring for å aktivere begge.
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
 

Aktiver LLDP for å sende administrasjonsadressen og systemnavnet og -beskrivelsen.

LLDP annonserer systemnavn og systembeskrivelse som standard.
For å annonsere administrasjonsadressen fra LLDP må vi konfigurere lldp tlv-select management-address manuelt.  
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
 

Bekreft

Konfigurasjon Syntaks
DELLSONiC# vis lldp-tabell Vis sommerlig for alle LLDP-naboer.
DELLSONiC# vis lldp-nabo Vis detaljer om alle LLDP-naboer.
DELLSONiC# show lldp neighbor Eth slot/port[/subport] (DELLSONiC# show lldp neighbor Eth slot/port[/subport])  Vis detaljer om LLDP-naboer i et bestemt grensesnitt.
DELLSONiC# vis lldp-statistikk Vis LLDP-statistikk for alle LLDP-naboer.
DELLSONiC# show lldp statistics Eth slot/port[/subport] (DELLSONiC# vis lldp statistics Eth-spor/-port[/subport]) Vis LLDP-statistikk i et bestemt grensesnitt.

Eksempel på utdata
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
---------------------------------

Prodotti interessati

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 ...
Proprietà dell'articolo
Numero articolo: 000218154
Tipo di articolo: How To
Ultima modifica: 16 ott 2023
Versione:  4
Trova risposta alle tue domande dagli altri utenti Dell
Support Services
Verifica che il dispositivo sia coperto dai Servizi di supporto.