lldp tlv-enable

Use lldp tlv-enable to configure the types of advertisable TLVs.

Use undo lldp tlv-enable to disable the advertising of the specified types of TLVs.

Syntax

In Layer 2 Ethernet interface view:

In management Ethernet interface view:

In Layer 2 aggregate interface view:

In IRF physical interface view:

Default

On Layer 2 Ethernet interfaces:

On the management Ethernet interface:

On Layer 2 aggregate interfaces:

IRF physical interfaces advertise all supported types of TLVs.

Views

Layer 2 aggregate interface view

Layer 2 Ethernet interface view

Management Ethernet interface view

IRF physical interface view

Predefined user roles

network-admin

Parameters

agent: Specifies an LLDP agent type. If no agent type is specified in Ethernet interface view, the command configures the types of advertisable TLVs for nearest bridge agents.

nearest-customer: Specifies nearest customer bridge agents.

nearest-nontpmr: Specifies nearest non-TPMR bridge agents.

all: Advertises all TLVs of the specified type.

basic-tlv: Advertises basic LLDP TLVs.

management-address-tlv [ ip-address ]: Advertises management address TLVs. ip-address specifies the management address to be advertised. By default:

When you execute the undo command:

port-description: Advertises port description TLVs.

system-capability: Advertises system capabilities TLVs.

system-description: Advertises system description TLVs.

system-name: Advertises system name TLVs.

dot1-tlv: Advertises IEEE 802.1 organizationally specific LLDP TLVs.

congestion-notification: Advertises the QCN module TLV. The QCN module supports only the nearest bridge agent.

dcbx: Advertises the DCBX TLV.

evb: Advertises the EVB module TLVs.

port-vlan-id: Advertises port VLAN ID TLVs.

protocol-vlan-id [ vlan-id ]: Advertises port and protocol VLAN ID TLVs. The vlan-id argument specifies a VLAN ID in the TLVs to be advertised. The VLAN ID is in the range of 1 to 4094, and the default is the lowest VLAN ID on the port.

vlan-name [ vlan-id ]: Advertises VLAN name TLVs. The vlan-id argument specifies a VLAN ID in the TLVs to be advertised. The VLAN ID is in the range of 1 to 4094, and the default is the lowest VLAN ID on the port.

management-vid [ mvlan-id ]: Advertises the management VLAN ID TLV. The mvlan-id argument specifies a management VLAN ID in the TLVs to be advertised. The management VLAN ID is in the range of 1 to 4094. If no management VLAN ID is specified, the value 0 is advertised, which means that the LLDP agent is not configured with a management VLAN ID.

dot3-tlv: Advertises IEEE 802.3 organizationally specific LLDP TLVs.

link-aggregation: Advertises link aggregation TLVs.

mac-physic: Advertises MAC/PHY configuration/status TLVs.

max-frame-size: Advertises maximum frame size TLVs.

power: Advertises power in MDI TLVs and power stateful control TLVs.

med-tlv: Advertises LLDP-MED TLVs.

capability: Advertises LLDP-MED capabilities TLVs.

inventory: Advertises the following TLVs: hardware revision, firmware revision, software revision, serial number, manufacturer name, model name, and asset ID.

location-id: Advertises location identification TLVs.

civic-address: Inserts the typical address information about the network device in location identification TLVs .

device-type: Sets a device type value in the range of 0 to 2:

country-code: Sets a country code defined in ISO 3166.

{ ca-type ca-value }&<1-10>: Configures address information. ca-type represents the address information type in the range of 0 to 255. ca-value represents address information, a string of 1 to 250 characters. &<1-10> indicates that you can specify up to 10 ca-type ca-value pairs.

elin-address: Inserts telephone numbers for emergencies in location identification TLVs.

tel-number: Sets the telephone number for emergencies, a string of 10 to 25 characters.

network-policy [ vlan-id ]: Advertises network policy TLVs. The vlan-id argument specifies the voice VLAN ID sent to voice terminals, in the range of 1 to 4094. If you do not specify this argument, the command advertises information about the VLAN assigned by the authentication server or the voice VLAN ID configured on the interface. For more information, see "Configuring VLANs."

power-over-ethernet: Advertises extended power-via-MDI TLVs.

Usage guidelines

Nearest bridge agents are not supported on aggregate interfaces.

You can enable the device to advertise multiple types of TLVs by using this command without the all keyword specified.

If the MAC/PHY configuration/status TLV is not advertisable, none of the LLDP-MED TLVs will be advertised whether they are advertisable. If the LLDP-MED capabilities TLV is not advertisable, the other LLDP-MED TLVs will not be advertised regardless of whether they are advertisable.

The port and protocol VLAN ID TLV, VLAN name TLV, and management VLAN ID TLV in IEEE 802.1 organizationally specific LLDP TLVs can be configured only for nearest bridge agents. The configuration can be inherited by nearest customer bridge agents and nearest non-TPMR bridge agents.

Examples

# Enable the nearest customer bridge agents on Ten-GigabitEthernet 1/0/1 to advertise link aggregation TLVs of the IEEE 802.1 organizationally specific TLVs on Ten-GigabitEthernet 1/0/1.

<Sysname> system-view
[Sysname] interface ten-gigabitethernet 1/0/1
[Sysname-Ten-GigabitEthernet1/0/1] lldp agent nearest-customer tlv-enable dot1-tlv link-aggregation