SONiC do Dell Networking: Protocolo de detecção de camada de link
Riepilogo: Este artigo explica sobre o Link Layer Discovery Protocol (LLDP) e a configuração no Dell Networking SONiC. Este artigo usa um comutador que executa o 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
|
Pré-requisitos
Estamos usando a nomenclatura de interface padrão para demonstrar os conceitos. Consulte o artigo 202172 Dell Networking Série S: Configuração básica de interface - SONiC 4.0 para obter mais informações sobre nomenclatura de interface |
Índice
Introdução
Sintaxe de configuração
Ative e desative o LLDP.
Configurar a transmissão do LLDP
Configurar o recebimento do LLDP
Habilite a transmissão e o recebimento do LLDP.
Habilite o LLDP para enviar o endereço de gerenciamento e o nome e a descrição do sistema.
Verificar
Introdução
O LINK Layer Discovery Protocol (LLDP) permite que o comutador anumente os principais recursos e as descrições físicas. O LLDP é definido no IEEE 802.1AB. Essas informações podem ser usadas para ajudar a identificar a topologia do sistema e detectar configurações incorretas na LAN.
- LLDP é um protocolo único; não há sequências de solicitação ou resposta. As estações que implementam a função de transmissão anunciam as informações e as estações que implementam a função de recebimento recebem e processam as informações.
- As funções de transmissão e recebimento podem ser ativadas ou desativadas separadamente em cada porta de switch.
- O LLDP é um protocolo de detecção independente de fornecedor.
- O switch recebe e transmite periodicamente as PDUs (Protocol Data Units, unidades de dados) do protocolo LLDP. O intervalo de transmissão padrão é de 30 segundos.
- As informações da PDU do LLDP recebidas de um vizinho expiram após um período específico, chamado de tempo de vida (TTL). O valor padrão de TTL é 120 segundos.
- As portas com estrutura estendida bloqueada permitem PDUs LLDP.
Sintaxe de configuração
Nota: As tabelas llDP são atualizadas em 120 segundos (TTL) após qualquer alteração na configuração do LLDP.
Ative e desative o 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 |
Configurar a transmissão do LLDP
A execução desses comandos desabilita o recebimento do 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) |
Configurar o recebimento do LLDP
A execução desses comandos desativa a transmissão do 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) |
Habilite a transmissão e o recebimento do LLDP.
Por padrão, a transmissão e recebimento do LLDP está habilitada por padrão.Se você tiver a transmissão do LLDP configurada, o recebimento do LLDP será desativado.
Se você tiver o LLDP recebido configurado, a transmissão do LLDP será desativada.
Para ativar ambos, remova a recepção do LLDP e a transmissão do 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 |
Habilite o LLDP para enviar o endereço de gerenciamento e o nome e a descrição do sistema.
Por padrão, o LLDP anuncia o nome do sistema e a descrição do sistema.Para anunciar o endereço de gerenciamento pelo LLDP, devemos configurar o lldp tlv-select management-address manualmente.
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 |
Verificação
| Configuração | Sintaxe |
| DellSONiC# show lldp table | Mostre o verão de todos os vizinhos do LLDP. |
| DELLSONiC# show lldp neighbor | Mostrar detalhes de todos os vizinhos do LLDP. |
| DELLSONiC# show lldp neighbor Eth slot/port[/subport] | Mostrar detalhes dos vizinhos do LLDP em uma interface específica. |
| DELLSONiC# show lldp statistics (Número do DELLSONiC# mostra estatísticas do lldp) | Mostrar estatísticas do LLDP de todos os vizinhos do LLDP. |
| DELLSONiC# show lldp statistics Eth slot/port[/subport] | Mostrar estatísticas do LLDP em uma interface específica. |
Exemplo de resultado
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.