Dell Networking SONiC: Protokoll för identifiering av länka lager
Summary: I den här artikeln beskrivs LLDP (Link Layer Discovery Protocol) och konfiguration i Dell Networking SONiC. I den här artikeln används en switch som kör 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
|
Förutsättningar
Vi använder standardgränssnittsnamngivning för att demonstrera koncepten. Se artikeln 202172 Dell Networking S-serien: Grundläggande gränssnittskonfiguration – SONiC 4.0 för mer information om gränssnittsnamngivning |
Index
Införandet
Konfigurationssyntax
Aktivera och inaktivera LLDP.
Konfigurera LLDP-sändning
Konfigurera LLDP-mottagning
Aktivera LLDP-sändning och ta emot.
Aktivera LLDP för att skicka hanteringsadressen och systemets namn och beskrivning.
Kontrollera
Introduktion
LLDP (Link Layer Discovery Protocol) gör det möjligt för switchen att annonsera större funktioner och fysiska beskrivningar. LLDP definieras i IEEE 802.1AB. Den här informationen kan användas för att identifiera systemets topologi och upptäcka felaktiga konfigurationer på LAN.
- LLDP är ett envägsprotokoll; det finns inga begärande eller svarssekvenser. Stationerna som implementerar överföringsfunktionen annonserar informationen och de stationer som implementerar mottagningsfunktionen tar emot och bearbetar informationen.
- Sändnings- och mottagningsfunktionerna kan aktiveras eller inaktiveras separat på varje switchport.
- LLDP är ett leverantörsneutralt identifieringsprotokoll.
- Switchen tar emot och överför regelbundet LLDP-protokolldataenheter (PDU:er). Standardöverföringsintervallet är 30 sekunder.
- LLDP PDU-information som tas emot från en närliggande enhet upphör efter en viss tid, kallat tid för aktivering (TTL). TTL-standardvärdet är 120 sekunder.
- Spanning-tree-blockerade portar tillåter LLDP-PDU:er.
Konfigurationssyntax
Obs! LLDP-tabeller uppdateras på 120 sekunder (TTL) efter en ändring i LLDP-konfigurationen.
Aktivera och inaktivera 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 |
Konfigurera LLDP-sändning
Om du utför dessa kommandon inaktiveras LLDP-mottagning. 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) |
Konfigurera LLDP-mottagning
När du utför dessa kommandon inaktiveras LLDP-sändning. 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) |
Aktivera LLDP-sändning och ta emot.
Som standard är LLDP-sändning och -mottagning aktiverat som standard.Om du har konfigurerat LLDP-sändning inaktiveras LLDP-mottagningen.
Om LLDP-mottagningen är konfigurerad inaktiveras LLDP-sändningen.
För att aktivera båda tar du bort LLDP-mottagning och LLDP-sändning.
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 |
Aktivera LLDP för att skicka hanteringsadressen och systemets namn och beskrivning.
Som standard annonserar LLDP systemnamn och systembeskrivning.För att annonsera hanteringsadress via LLDP måste vi konfigurera lldp tlv-select management-address manuellt.
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-addressDELLSONiC(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 |
Verifiera
| Konfiguration | Syntax |
| DELLSONiC# show lldp-tabell | Visa somrarna för alla LLDP-grannar. |
| DELLSONiC# show lldp närliggande | Visa information om alla LLDP-grannar. |
| DELLSONiC# show lldp neighbor Eth slot/port[/subport] | Visa information om LLDP-grannar i ett visst gränssnitt. |
| DELLSONiC# show lldp statistics (DELLSONiC#show lldp-statistik) | Visa LLDP-statistik för alla LLDP-grannar. |
| DELLSONiC# show lldp statistics Eth slot/port[/subport] | Visa LLDP-statistik i ett visst gränssnitt. |
Exempel 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
--------------------------------- |
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.