lldp management-address

Function

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.

Format

lldp management-address ip-address

undo lldp management-address

Parameters

Parameter Description Value
ip-address

Specifies the management IP address to be carried in LLDP packets.

The value is in dotted decimal notation.

Views

System view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
lldp write

Usage Guidelines

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.

Example

# Set the management IP address to 10.111.148.25 for a device.
<HUAWEI> system-view
[~HUAWEI] interface LoopBack 1
[~HUAWEI-LoopBack1] ip address 10.111.148.25 255.255.255.255
[*HUAWEI-LoopBack1] quit
[*HUAWEI] lldp management-address 10.111.148.25
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >