Dell Networking SONiC: Link Layer Discovery-protokol
요약: Denne artikel beskriver LLDP (Link Layer Discovery Protocol) og konfiguration i Dell Networking SONiC. Denne artikel bruger en switch, der kører Dell SONiC 4.1.
이 문서는 다음에 적용됩니다.
이 문서는 다음에 적용되지 않습니다.
이 문서는 특정 제품과 관련이 없습니다.
모든 제품 버전이 이 문서에 나와 있는 것은 아닙니다.
지침
|
Forudsætninger
Vi bruger standardgrænsefladenavngivning til at demonstrere koncepterne. Se artiklen 202172 Dell Networking S-serien: Grundlæggende grænsefladekonfiguration – SONiC 4.0 for yderligere oplysninger om grænsefladenavngivning |
Indeks
Indførelsen
Konfigurationssyntaks
Aktivér og deaktiver LLDP.
Konfigurere LLDP-overførsel
Konfigurer LLDP-modtagelse
Aktivér LLDP-overførsel og -modtagelse.
Aktiver LLDP for at sende administrationsadressen og systemnavnet og beskrivelsen.
Kontrollere
Indledning
Link Layer Discovery Protocol (LLDP) giver switchen mulighed for at annoncere større muligheder og fysiske beskrivelser. LLDP er defineret i IEEE 802.1AB. Disse oplysninger kan bruges til at identificere systemtopologi og finde defekte konfigurationer på LAN.
- LLDP er en envejsprotokol. er der ingen anmodnings- eller svarsekvenser. Stationer, der implementerer overførselsfunktionen, annoncerer oplysningerne, og de stationer, der implementerer modtagefunktionen, modtager og behandler oplysningerne.
- Overførsels- og modtagelsesfunktioner kan aktiveres eller deaktiveres separat på hver switch-port.
- LLDP er en leverandørneutral registreringsprotokol.
- Switchen modtager og sender jævnligt LLDP-protokoldataenheder (PDU'er). Standardoverførselsintervallet er 30 sekunder.
- LLDP PDU-oplysninger modtaget fra en nabo udløber efter et bestemt tidsrum, kaldet tidspunkt for live (TTL). Standard TTL-værdien er 120 sekunder.
- Spanning Tree-blokerede porte tillader LLDP PDU'er.
Konfigurationssyntaks
BEMÆRK: LLDP-tabeller opdateres om 120 sekunder (TTL) efter eventuelle ændringer i LLDP-konfigurationen.
Aktivér 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ørsel
Udførelse af disse kommandoer deaktiverer LLDP-modtagelse. 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) |
Konfigurer LLDP-modtagelse
Når disse kommandoer udføres, deaktiveres LLDP-overførslen. 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) |
Aktivér LLDP-overførsel og -modtagelse.
LLDP-overførsel og -modtagelse er som standard aktiveret.Hvis du har konfigureret LLDP-overførslen, deaktiveres LLDP-modtagelse.
Hvis du har LLDP-modtagelse konfigureret, deaktiveres LLDP-overførslen.
For at aktivere begge skal du fjerne LLDP-modtage- og LLDP-overførsel.
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 at sende administrationsadressen og systemnavnet og beskrivelsen.
LLDP annoncerer som standard systemnavn og systembeskrivelse.For at annoncere administrationsadressen af LLDP skal 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-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 |
Bekræft
| Konfiguration | Syntaks |
| DELLSONiC# vis lldp-tabel | Vis sommertid for alle LLDP-naboer. |
| DELLSONiC# vis lldp neighbor | Vis oplysninger om alle LLDP-naboer. |
| DELLSONiC# vis lldp nabo-Eth-slot /-port [/underport] | Vis oplysninger om LLDP-naboer i en bestemt grænseflade. |
| DELLSONiC# vis lldp-statistik | Vis LLDP-statistik for alle LLDP-naboer. |
| DELLSONiC# show lldp statistics Eth slot/port [/subport] | Vis LLDP-statistik i en bestemt grænseflade. |
Eksempel på 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
--------------------------------- |
해당 제품
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
...
문서 속성
문서 번호: 000218154
문서 유형: How To
마지막 수정 시간: 16 10월 2023
버전: 4
다른 Dell 사용자에게 질문에 대한 답변 찾기
지원 서비스
디바이스에 지원 서비스가 적용되는지 확인하십시오.