101
Chapter 7 Commands for LLDP
Function
7.1 lldp enable
Command: lldp enable
lldp disable
Function: Globally enable LLDP function; disable command globally disables LLDP
function.
Parameters: None.
Default: Disable LLDP function.
Command Mode: Global Mode.
Usage Guide: If LLDP function is globally enabled, it will be enabled on every port.
Example: Enable LLDP function on the switch.
Switch(config)# lldp enable
7.2 lldp enable (Port)
Command: lldp enable
lldp disable
Function: Enable the LLDP function module of ports in port configuration mode; disable
command will disable the LLDP function module of port.
Parameters: None.
Default: the LLDP function module of ports is enabled by default in port configuration
mode.
Command Mode: Port Configuration Mode.
Usage Guide: When LLDP is globally enabled, it will be enabled on every port, the switch
on a port is used to disable this function when it is unnecessary on the port.
Example: Disable LLDP function of port on the port ethernet 1/5 of the switch.
Switch(config)#in ethernet 1/5
Switch(Config-if-ethernet 1/5)#lldp disable