mac

Commands for LLDP Function
126
7.6 lldp mode
Command: lldp mode <send | receive | both | disable>
Function: Configure the operating state of LLDP function of the port.
Parameters: send: Configure the LLDP function as only being able to send messages.
receive: Configure the LLDP function as only being able to receive
messages.
both: Configure the LLDP function as being able to both send and receive
messages.
disable: Configure the LLDP function as not being able to send or receive
messages.
Default: The operating state of the port is “both”.
Command Mode: Port Configuration Mode.
Usage Guide: Choose the operating state of the lldp Agent on the port.
Example: Configure the state of port ethernet 1/5 of the switch as “receive”.
Switch(config)#in ethernet 1/5
Switch(Config-If-Ethernet1/5)#lldp mode receive
7.7 lldp msgTxHold
Command: lldp msgTxHold <value>
no lldp msgTxHold
Function: Set the multiplier value of the aging time carried by update messages sent by
the all ports with LLDP function enabled, the value ranges from 2 to 10.
Parameters: <value> is the aging time multiplier, ranging from 2 to 10.
Default: the value of the multiplier is 4 by default.
Command Mode: Global Mode.
Usage Guide: After configuring the multiplier, the aging time is defined as the product of
the multiplier and the interval of sending messages, and its maximum value is 65535
seconds.
Example: Set the value of the aging time multiplier as 6.
Switch(config)#lldp msgTxHold 6
7.8 lldp neighbors max-num
Command: lldp neighbors max-num <value>