Example: Configuring LLDP
The following example configures LLDP on interface ge-1/1/1
but disables LLDP on all other interfaces, explicitly
configures the default values for all automatically enabled features,
and configures a value of 30 seconds for the LLDP configuration
notification interval and a value of 30 seconds for the physical
topology trap interval.
[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; } }
You verify operation of LLDP with several show commands:
show lldp <detail>
show lldp neighbors interface-name
show lldp statistics interface-name
show lldp local-information
show lldp remote-global-statisitics
You can clear LLDP neighbor information or statistics globally or on an interface:
clear lldp neighbors interface-name
clear lldp statistics interface-name
You can display basic information about LLDP with the show
lldp detail
command:
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.
For more details about the output of these commands, see the CLI Explorer.