Dell Networking SONiC: Link Layer Discovery Protocol
Summary: In dit artikel wordt uitgelegd over het Link Layer Discovery Protocol (LLDP) en configuratie in Dell Networking SONiC. Dit artikel gebruikt een switch met 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
|
Vereisten
We gebruiken standaard interfacenamen om de concepten te demonstreren. Zie het artikel 202172 Dell Networking S serie: Basic Interface Configuration - SONiC 4.0 voor meer informatie over interfacenamen |
Index
Inleiding
Configuratiesyntaxis
LLDP in- en uitschakelen.
LLDP-overdracht
configurerenLLDP-ontvangst configureren
Lldp verzenden en ontvangen inschakelen.
Hiermee kan LLDP het beheeradres en de systeemnaam en -beschrijving verzenden.
Controleren
Inleiding
Met het Link Layer Discovery Protocol (LLDP) kan de switch grote mogelijkheden en fysieke beschrijvingen adverteren. LLDP is gedefinieerd in IEEE 802.1AB. Deze informatie kan worden gebruikt om de systeemtopologie te identificeren en slechte configuraties op het LAN te detecteren.
- LLDP is een eenrichtingsprotocol; er zijn geen aanvraag- of responsreeksen. Stations die de transmissiefunctie implementeren maken de informatie bekend en stations die de ontvangstfunctie implementeren ontvangen en verwerken de informatie.
- De functies voor verzenden en ontvangen kunnen afzonderlijk worden in- of uitgeschakeld op elke switchpoort.
- LLDP is een leveranciersneutraal detectieprotocol.
- De switch ontvangt en verzendt periodiek LLDP-protocoldataeenheden (PDU's). Het standaard transmissieinterval is 30 seconden.
- LLDP PDU-informatie die van een naburige wordt ontvangen, verloopt na een bepaalde tijd, genaamd Time to Live (TTL). De standaard TTL-waarde is 120 seconden.
- Spanning-tree geblokkeerde poorten staan LLDP PDU's toe.
Configuratiesyntaxis
OPMERKING: LLDP-tabellen worden bijgewerkt in 120 seconden (TTL) na een wijziging in de LLDP-configuratie.
LLDP in- en uitschakelen.
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 |
LLDP-overdracht configureren
Als u deze opdrachten uitvoert, wordt LLDP-ontvangst uitgeschakeld. 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) |
LLDP-ontvangst configureren
Als u deze opdrachten uitvoert, wordt LLDP-overdracht uitgeschakeld. 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) |
Lldp verzenden en ontvangen inschakelen.
LLDP transmit and receive is standaard ingeschakeld.Als u LLDP-transmissie hebt geconfigureerd, wordt LLDP-ontvangst gedeactiveerd.
Als u LLDP-ontvangst hebt geconfigureerd, wordt LLDP-overdracht gedeactiveerd.
Om beide te activeren, verwijdert u LLDP-ontvangst en LLDP-overdracht.
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 |
Hiermee kan LLDP het beheeradres en de systeemnaam en -beschrijving verzenden.
LLDP maakt standaard reclame voor systeemnaam en systeembeschrijving.Om het beheeradres van LLDP te adverteren, moeten we lldp tlv-select management-address handmatig configureren.
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 |
Verifiëren
| Configuratie | Syntaxis |
| DELLSONiC# show lldp-tabel | Laat de zomer van alle LLDP Neighbors zien. |
| DELLSONiC# show lldp neighbor | Details van alle LLDP Neighbors weergeven. |
| DELLSONiC# show lldp neighbor Eth slot/port[/subport] | Details van LLDP Neighbors weergeven in een specifieke interface. |
| DELLSONiC# show lldp statistics | LLDP-statistieken van alle LLDP Neighbors weergeven. |
| DELLSONiC# show lldp statistics Eth slot/port[/subport] | LLDP-statistieken weergeven in een specifieke interface. |
Uitvoervoorbeeld
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.