Configuring the management address and its encoding format

LLDP encodes management addresses in numeric or string format in management address TLVs.

If a neighbor encodes its management address in string format, set the encoding format of the management address to string on the connecting port. This guarantees normal communication with the neighbor.

To configure a management address to be advertised and its encoding format on a port:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter Layer 2/Layer 3 Ethernet interface view, management Ethernet interface view, Layer 2/Layer 3 aggregate interface view, synchronous/asynchronous serial interface view, standard POS interface view, or POS channel interface view.

interface interface-type interface-number

N/A

3. Allow LLDP to advertise the management address in LLDP frames and configure the advertised management address.

  • In Layer 2 Ethernet interface view or management Ethernet interface view:lldp [ agent { nearest-customer | nearest-nontpmr } ] tlv-enable basic-tlv management-address-tlv [ ipv6 ] [ ip-address ]

  • In Layer 3 Ethernet interface view:lldp [ agent { nearest-customer | nearest-nontpmr } ] tlv-enable basic-tlv management-address-tlv [ ipv6 ] [ ip-address ] | interface loopback interface-number ]

  • In Layer 2/Layer 3 aggregate interface view:lldp agent { nearest-customer | nearest-nontpmr } tlv-enable basic-tlv management-address-tlv [ ipv6 ] [ ip-address ]

  • In synchronous/asynchronous serial interface view, standard POS interface view, or POS channel interface view:lldp tlv-enable basic-tlv management-address-tlv [ ipv6 ] [ ip-address ]

By default:

  • Nearest bridge agents and nearest customer bridge agents can advertise the management address in LLDP frames.

  • Nearest non-TPMR bridge agents cannot advertise the management address in LLDP frames.

4. Set the encoding format of the management address to string.

  • In Layer 2/Layer 3 Ethernet interface view or management Ethernet interface view:lldp [ agent { nearest-customer | nearest-nontpmr } ] management-address-format string

  • In Layer 2/Layer 3 aggregate interface view:lldp agent { nearest-customer | nearest-nontpmr } management-address-format string

  • In synchronous/asynchronous serial interface view, standard POS interface view, or POS channel interface view:lldp management-address-format string

By default, the encoding format of the management address is numeric.