lldp global tlv-enable basic-tlv management-address-tlv

Use lldp global tlv-enable basic-tlv management-address-tlv to enable advertisement of the management address TLV globally and set the management address to be advertised.

Use undo lldp global tlv-enable basic-tlv management-address-tlv to restore the default.

Syntax

lldp [ agent { nearest-customer | nearest-nontpmr } ] global tlv-enable basic-tlv management-address-tlv [ ipv6 ] { ip-address | interface loopback interface-number | interface vlan-interface interface-number }

undo lldp [ agent { nearest-customer | nearest-nontpmr } ] global tlv-enable basic-tlv management-address-tlv

Default

Advertisement of the management address TLV is disabled globally.

Views

System view

Predefined user roles

network-admin

mdc-admin

Parameters

agent: Specifies an LLDP agent type. If you do not specify an agent type, this command applies to the nearest bridge agent.

ipv6: Specifies an IPv6 management address. If you do not specify this keyword, an IPv4 management address will be advertised.

ip-address: Specifies the management address to be advertised.

interface loopback interface-number: Specifies a loopback interface by its number in the range of 0 to 127. The IP address of the loopback interface will be advertised as the management address. The value range for the interface-number argument is 0 to 1023.

interface vlan-interface interface-number: Specifies a VLAN interface by is number in the range of 1 to 4094. The IP address of the VLAN interface will be advertised as the management address.

Usage guidelines

If you execute this command multiple times, the most recent configuration takes effect.

You can configure advertisement of the management address TLV globally or on a per-interface basis. The device selects the management address TLV advertisement setting for an interface in the following order:

  1. Interface-based setting, configured by using the lldp tlv-enable command with the management-address-tlv keyword.

  2. Global setting, configured by using the lldp global tlv-enable basic-tlv management-address-tlv command.

  3. Default setting for the interface.

    By default:

    • The nearest bridge agent and nearest customer bridge agent advertise the management address TLV.

    • The nearest non-TPMR bridge agent does not advertise the management address TLV.

The IPv4 or IPv6 address of the LLDP frame sending port will be advertised as the management address when the following conditions exist:

If the LLDP frame sending port does not have an IPv4 or IPv6 address, the MAC address of the port will be advertised.

If you specify the ipv6 keyword, the management address is the IPv6 address. If you do not specify the ipv6 keyword, the management address is the IPv4 address.

Examples

# Enable advertisement of the management address TLV globally and set the advertised management address to 192.168.1.1.

<Sysname> system-view
[Sysname] lldp agent nearest-customer global tlv-enable basic-tlv management-address-tlv 192.168.1.1

Related commands

lldp tlv-enable