lldp tlv-enable
Syntax
lldp tlv-enable { basic-tlv { all | port-description | system-capability | system-description | system-name } | dot1-tlv { all | port-vlan-id | protocol-vlan-id [ vlan-id ] | vlan-name [ vlan-id ] } | dot3-tlv { all | link-aggregation | mac-physic | max-frame-size | power } | med-tlv { all | capability | inventory | location-id { civic-address device-type country-code { ca-type ca-value }&<1-10> | elin-address tel-number } | network-policy | power-over-ethernet } }
undo lldp tlv-enable { basic-tlv { all | port-description | system-capability | system-description | system-name } | dot1-tlv { all | port-vlan-id | protocol-vlan-id | vlan-name } | dot3-tlv { all | link-aggregation | mac-physic | max-frame-size | power } | med-tlv { all | capability | inventory | location-id | network-policy | power-over-ethernet } }
View
Layer 2 Ethernet interface view, port group view
Default level
2: System level
Parameters
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 it 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.
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.
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 the ID of the VLAN to be advertised, in the range of 1 to 4094. By default, the vlan-id argument is the least VLAN ID on the port.
vlan-name [ vlan-id ]: Advertises VLAN name TLVs. The vlan-id argument specifies the ID of the VLAN to be advertised in the range of 1 to 4094. By default, the vlan-id argument is the least VLAN ID on the port.
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 via 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 normal 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, corresponding to ISO 3166.
{ ca-type ca-value }&<1-10>: Configures address information, where 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, and &<1-10> indicates that you can enter up to 10 parameters.
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: Advertises network policy TLVs.
power-over-ethernet: Advertises extended power-via-MDI TLVs.
Description
Use lldp tlv-enable to configure the types of advertisable TLVs for a port or all ports in a port group.
Use undo lldp tlv-enable to disable the advertising of specific types of TLVs.
By default, the device can advertise on a Layer 2 Ethernet port all types of LLDP TLVs, except location identification TLVs.
To enable the device to advertise LLDP-MED TLVs, you must first enable it to advertise LLDP-MED capabilities TLVs.
To disable the device from advertising LLDP-MED capabilities TLVs, you must first disable it from advertising other LLDP-MED TLVs.
To disable the device from advertising MAC/PHY configuration/status TLVs, you must first disable it from advertising LLDP-MED capabilities TLVs.
If you enable the device to advertise LLDP-MED capabilities TLVs, you also enable it to advertise MAC/PHY configuration/status TLVs.
To enable the device to advertise multiple types of TLVs, you can execute the lldp tlv-enable command repeatedly without the all keyword specified.
Examples
# Enable the device to advertise link aggregation TLVs of the IEEE 802.3 organizationally specific TLVs on Ethernet 1/0/1.
<Sysname> system-view [Sysname] interface ethernet 1/0/1 [Sysname-Ethernet1/0/1] lldp tlv-enable dot3-tlv link-aggregation ce vlan track lldp