Ejemplo: Configuración de LLDP
En el ejemplo siguiente se configura LLDP en la interfaz pero se deshabilita LLDP en todas las demás interfaces, se configuran explícitamente los valores predeterminados para todas las características habilitadas automáticamente y se configura un valor de 30 segundos para el intervalo de notificación de configuración de LLDP y un valor de 30 segundos para el intervalo de captura de topología física.ge-1/1/1
[edit] protocols { lldp { advertisement-interval 30; hold-multiplier 4; interface all { disable; } interface ge-1/1/1; lldp-configuration-notification-interval 30; ptopo-configuration-maximum-hold-time 300; ptopo-configuration-trap-interval 30; transmit-delay 2; } }
El funcionamiento de LLDP se verifica con varios comandos show:
show lldp <detail>
show lldp neighbors interface-name
show lldp statistics interface-name
show lldp local-information
show lldp remote-global-statisitics
Puede borrar la información o las estadísticas del vecino de LLDP globalmente o en una interfaz:
clear lldp neighbors interface-name
clear lldp statistics interface-name
Puede mostrar información básica sobre LLDP con el comando:show lldp detail
user@host> show lldp detail LLDP : Enabled Advertisement interval : 30 Second(s) Transmit delay : 2 Second(s) Hold timer : 4 Second(s) Notification interval : 30 Second(s) Config Trap Interval : 300 Second(s) Connection Hold timer : 60 Second(s) Interface LLDP Neighbor count ge-1/1/1 Enabled 0 LLDP basic TLVs supported: Chassis identifier, Port identifier, Port description, System name, System description, System capabilities, Management address. LLDP 802 TLVs supported: Link aggregation, Maximum frame size, MAC/PHY Configuration/Status, Port VLAN ID, Port VLAN name.
Para obtener más información sobre el resultado de estos comandos, consulte el Explorador de CLI.https://www.juniper.net/documentation/content-applications/cli-explorer/junos/