SONiC de Dell Networking: Protocolo de detección de capa de enlace
Summary: En este artículo, se explica acerca del protocolo de detección de capa de enlace (LLDP) y la configuración en Dell Networking SONiC. En este artículo, se utiliza un switch que ejecuta Dell SONiC 4.1. ...
Instructions
|
Requisitos previos
Utilizamos la denominación de interfaz estándar para demostrar los conceptos. Consulte el artículo 202172 Dell Networking serie S: Configuración básica de la interfaz: SONiC 4.0 para obtener más información sobre la denominación de la interfaz |
Índice
Introducción
Sintaxis
de configuraciónHabilitar y deshabilitar LLDP.
Configurar transmisión de LLDP
Configurar recepción
de LLDPHabilite LLDP Transmit and Receive (Transmisión y recepción de LLDP).
Habilite LLDP para enviar la dirección de administración, el nombre y la descripción del sistema.
Verificar
Introducción
El protocolo de descubrimiento de capa de enlace (LLDP) permite que el switch anuncie las principales funcionalidades y descripciones físicas. LLDP se define en IEEE 802.1AB. Esta información se puede utilizar para ayudar a identificar la topología del sistema y detectar configuraciones incorrectas en la LAN.
- LLDP es un protocolo unidireccional; no hay ninguna solicitud ni secuencia de respuesta. Las estaciones que implementan la función de transmisión anuncian la información y las estaciones que implementan la función de recepción reciben y procesan la información.
- Las funciones de transmisión y recepción se pueden habilitar o deshabilitar por separado en cada puerto de switch.
- LLDP es un protocolo de descubrimiento independiente del proveedor.
- El switch recibe y transmite periódicamente las unidades de datos (PDU) del protocolo LLDP. El intervalo de transmisión predeterminado es de 30 segundos.
- La información de PDU de LLDP recibida de un vecino vence después de una cantidad específica de tiempo, llamada tiempo de vida (TTL). El valor predeterminado de TTL es 120 segundos.
- Los puertos bloqueados de árbol de expansión permiten PDU de LLDP.
Sintaxis de configuración
NOTA: Las tablas de LLDP se actualizan en 120 segundos (TTL) después de cualquier cambio en la configuración de LLDP.
Habilitar y deshabilitar 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 transmisión de LLDP
La ejecución de estos comandos deshabilita la recepción de 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 recepción de LLDP
La ejecución de estos comandos deshabilita la transmisión de 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 LLDP Transmit and Receive (Transmisión y recepción de LLDP).
De manera predeterminada, la transmisión y recepción de LLDP está habilitada de manera predeterminada.Si tiene configurada la transmisión de LLDP, la recepción de LLDP se desactiva.
Si tiene configurada la recepción de LLDP, la transmisión de LLDP se desactiva.
Para activar ambos, elimine la recepción de LLDP y la transmisión de 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 LLDP para enviar la dirección de administración, el nombre y la descripción del sistema.
De manera predeterminada, LLDP anuncia el nombre del sistema y la descripción del sistema.Para anunciar la dirección de administración mediante LLDP, debemos configurar 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 |
Verificar
| Configuración | Sintaxis |
| DELLSONiC# show lldp table | Muestre el verano de todos los vecinos de LLDP. |
| DELLSONiC# show lldp neighbor | Mostrar los detalles de todos los vecinos de LLDP. |
| DELLSONiC# show lldp neighbor Eth slot/port[/subport] | Mostrar los detalles de los vecinos de LLDP en una interfaz específica. |
| DELLSONiC# show lldp statistics | Mostrar las estadísticas de LLDP de todos los vecinos de LLDP. |
| DELLSONiC# show lldp statistics Eth slot/port[/subport] | Mostrar estadísticas de LLDP en una interfaz específica. |
Ejemplo de salida
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
--------------------------------- |