The lldp management-address command enables Link Layer Discovery Protocol (LLDP) packets to be advertised to neighbors to carry the management IP address of the local device.
The undo lldp management-address command disables LLDP packets from carrying the management IP address of the sender device.
By default, the NMS automatically obtains the management IP addresses of managed devices.
Usage Scenario
The management IP address is carried in the Management Address TLV in an LLDP packet. The management IP address is used by the NMS to identify devices and implement network management. A management IP address uniquely identifies a device, helping the NMS to determine the network topology and management devices. You can run the lldp management-address command to enable LLDP packets to be advertised to neighbors to carry the management IP address of the local device.
Prerequisites
LLDP has been enabled globally using the lldp enable command in the system view.
Precautions
If the management IP address is not specified or the specified management IP address is invalid, the system automatically selects an IP address from the list of interface IP addresses as the management IP address.
The system preferentially selects the IP address of a loopback interface, followed by the IP address of a management interface and the IP address of a VLANIF interface in turn. If there are multiple IP addresses for the same type of interface, the system uses the smallest IP address as the LLDP management IP address. If the system fails to find a default IP address, the system uses the bridge MAC address as the LLDP management address. If you run the lldp management-address command more than once on the same interface, the latest configuration overrides the previous one.