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:
For nearest bridge agents:
lldp tlv-enable { basic-tlv { all | port-description | system-capability | system-description | system-name | management-address-tlv [ ip-address ] } | dot1-tlv { all | congestion-notification | port-vlan-id | link-aggregation | dcbx | protocol-vlan-id [ vlan-id ] | vlan-name [ vlan-id ] | management-vid [ mvlan-id ] } | dot3-tlv { all | mac-physic | max-frame-size | power } | med-tlv { all | capability | inventory | network-policy [ vlan-id ] | power-over-ethernet | location-id { civic-address device-type country-code { ca-type ca-value }&<1-10> | elin-address tel-number } } }
undo lldp tlv-enable { basic-tlv { all | port-description | system-capability | system-description | system-name | management-address-tlv [ ip-address ] } | dot1-tlv { all | congestion-notification | port-vlan-id | link-aggregation | dcbx | protocol-vlan-id | vlan-name | management-vid } | dot3-tlv { all | mac-physic | max-frame-size | power } | med-tlv { all | capability | inventory | network-policy | power-over-ethernet | location-id } }
For nearest non-TPMR bridge agents:
lldp agent nearest-nontpmr tlv-enable { basic-tlv { all | port-description | system-capability | system-description | system-name | management-address-tlv [ ip-address ] } | dot1-tlv { all | congestion-notification | evb | port-vlan-id | link-aggregation } }
undo lldp agent nearest-nontpmr tlv-enable { basic-tlv { all | port-description | system-capability | system-description | system-name | management-address-tlv [ ip-address ] } | dot1-tlv { all | congestion-notification | evb | port-vlan-id | link-aggregation } }
For nearest customer bridge agents:
lldp agent nearest-customer tlv-enable { basic-tlv { all | port-description | system-capability | system-description | system-name | management-address-tlv [ ip-address ] } | dot1-tlv { all | congestion-notification | port-vlan-id | link-aggregation } }
undo lldp agent nearest-customer tlv-enable { basic-tlv { all | port-description | system-capability | system-description | system-name | management-address-tlv [ ip-address ] } | dot1-tlv { all | congestion-notification | port-vlan-id | link-aggregation } }
In management Ethernet interface view:
lldp tlv-enable { basic-tlv { all | port-description | system-capability | system-description | system-name | management-address-tlv [ ip-address ] } | dot1-tlv { all | link-aggregation } | dot3-tlv { all | mac-physic | max-frame-size | power } | med-tlv { all | capability | inventory | power-over-ethernet | location-id { civic-address device-type country-code { ca-type ca-value }&<1-10> | elin-address tel-number } } }
lldp agent { nearest-nontpmr | nearest-customer } tlv-enable { basic-tlv { all | port-description | system-capability | system-description | system-name | management-address-tlv [ ip-address ] } | dot1-tlv { all | link-aggregation } }
undo lldp tlv-enable { basic-tlv { all | port-description | system-capability | system-description | system-name | management-address-tlv [ ip-address ] } | dot1-tlv { all | link-aggregation } | dot3-tlv { all | mac-physic | max-frame-size | power } | med-tlv { all | capability | inventory | power-over-ethernet | location-id } }
undo lldp agent { nearest-nontpmr | nearest-customer } tlv-enable { basic-tlv { all | port-description | system-capability | system-description | system-name | management-address-tlv [ ip-address ] } | dot1-tlv { all | link-aggregation } }
In Layer 2 aggregate interface view:
lldp agent nearest-nontpmr tlv-enable { basic-tlv { all | management-address-tlv [ ip-address ] | port-description | system-capability | system-description | system-name } | dot1-tlv { all | evb | port-vlan-id } }
lldp agent nearest-customer tlv-enable { basic-tlv { all | management-address-tlv [ ip-address ] | port-description | system-capability | system-description | system-name } | dot1-tlv { all | port-vlan-id } }
lldp tlv-enable dot1-tlv { protocol-vlan-id [ vlan-id ] | vlan-name [ vlan-id ] | management-vid [ mvlan-id ] }
undo lldp agent nearest-nontpmr tlv-enable { basic-tlv { all | management-address-tlv [ ip-address ] | port-description | system-capability | system-description | system-name } | dot1-tlv { all | evb | port-vlan-id } }
undo lldp agent nearest-customer tlv-enable { basic-tlv { all | management-address-tlv [ ip-address ] | port-description | system-capability | system-description | system-name } | dot1-tlv { all | port-vlan-id } }
undo lldp tlv-enable dot1-tlv { protocol-vlan-id | vlan-name | management-vid }
In IRF physical interface view:
lldp tlv-enable basic-tlv { port-description | system-capability | system-description | system-name }
undo lldp tlv-enable basic-tlv { port-description | system-capability | system-description | system-name }
Default
On Layer 2 Ethernet interfaces:
Nearest bridge agents can advertise all types of LLDP TLVs except the following types:
DCBX TLVs.
Location identification TLVs.
Port and protocol VLAN ID TLVs.
VLAN name TLVs.
Management VLAN ID TLVs.
Nearest non-TPMR bridge agents can advertise only EVB TLVs.
Nearest customer bridge agents can advertise basic TLVs and IEEE 802.1 organizationally specific TLVs.
On the management Ethernet interface:
Nearest bridge agents can advertise all types of LLDP TLVs (only link aggregation TLV in 802.1 organizationally specific TLVs) except network policy TLVs.
Nearest non-TPMR bridge agents advertise no TLVs.
Nearest customer bridge agents can advertise basic TLVs and IEEE 802.1 organizationally specific TLVs (only link aggregation TLV).
On Layer 2 aggregate interfaces:
Nearest non-TPMR bridge agents can advertise only EVB TLVs.
Nearest customer bridge agents can advertise basic TLVs and IEEE 802.1 organizationally specific TLVs (only port and protocol VLAN ID TLV, VLAN name TLV, and management VLAN ID TLV).
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.
Enables the interface to advertise the following TLVs:
All basic LLDP TLVs if the all keyword is specified for basic-tlv.
All IEEE 802.1 organizationally specific LLDP TLVs if the all keyword is specified for dot1-tlv.
All IEEE 802.3 organizationally specific LLDP TLVs if the all keyword is specified for dot3-tlv.
Enables the interface to advertise all LLDP-MED TLVs except location identification TLVs if the all keyword is specified for med-tlv.
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:
For a Layer 2 Ethernet or aggregate interface, the management address is the primary IP address of the VLAN interface meeting the following requirements:
In up state.
The corresponding VLAN ID is the lowest among the VLANs permitted on the port.
If none of the VLAN interfaces of the permitted VLANs is assigned an IP address or all VLAN interfaces are down, the MAC address of the port will be advertised.
For the management Ethernet interface, the management address is its own IP address. If no IP address is configured for the management Ethernet interface, the MAC address of the port will be advertised.
When you execute the undo command:
If you specify the ip-address argument, the command disable the advertisement of the specified IP addresses.
If you do not specify the ip-address argument, the command disable the advertisement of management address TLVs.
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:
Value 0 specifies a DHCP server.
Value 1 specifies a switch.
Value 2 specifies an LLDP-MED endpoint.
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