Configuring TVL

Configuring the VLAN ID TLV

This TLV advertisement is enabled by default. To enable or disable the TLV, use this command.

Syntax

[no] lldp config <PORT-LIST> dot1TlvEnable port-vlan-id

Enables the VLAN ID TLV advertisement.

The no form of the command disables the TLV advertisement.

Default: Enabled.

Example

Enabling the VLAN ID TLV

(HP_Switch_name#) lldp config a1 dot1TlvEnable port-vlan-id

Viewing the TLVs advertised

The show commands display the configuration of the TLVs. The command show lldp config lists the TLVs advertised for each port, as shown in Example of local device LLDP information through Example of remote device LLDP information.

Displaying the TLVs for a port

Displaying the TLVs for a port

Example of local device LLDP information

Example of local device LLDP information

Example of remote device LLDP information

Example of remote device LLDP information

Enabling or Disabling TLVs controlled by medTLvEnable

In the default LLDP-MED configuration, the TLVs controlled by medTlvEnable are enabled.

Syntax

[no] lldp config <PORT-LIST> medTlvEnable medTlv

Enables or disables advertisement of the following TLVs on the specified ports:

  • Device capability TLV

  • Configured network policy TLV

  • Configured location data TLV

  • Current PoE status TLV

(Default: All of the above TLVs are enabled.)

Helps to locate configuration mismatches by allowing use of an SNMP application to compare the LLDP-MED configuration on a port with the LLDP-MED TLVs advertised by a neighbor connected to that port.

capabilities

This TLV enables the switch to determine:

  • Which LLDP-MED TLVs a connected endpoint can discover

  • The device class (1, 2, or 3) for the connected endpoint

This TLV also enables an LLDP-MED endpoint to discover what LLDP-MED TLVs the switch port currently supports.

(Default: enabled)


[NOTE: ]

NOTE: This TLV cannot be disabled unless the network_policy, poe, and location_id TLVs are already disabled.


network-policy

This TLV enables the switch port to advertise its configured network policies (voice VLAN, Layer 2 QoS, Layer 3 QoS), and allows LLDP-MED endpoint devices to autoconfigure the voice network policy advertised by the switch. This also enables the use of SNMP applications to troubleshoot statically configured endpoint network policy mismatches.

(Default: Enabled)


[NOTE: ]

NOTE: Network policy is advertised only for ports that are configured as members of the voice VLAN. If the port belongs to more than one voice VLAN, the voice VLAN with the lowest-numbered VID is selected as the VLAN for voice traffic. Also, this TLV cannot be enabled unless the capability TLV is already enabled.


location_id

This TLV enables the switch port to advertise its configured location data (if any.)

(Default: Enabled)


[NOTE: ]

NOTE: When disabled, this TLV cannot be enabled unless the capability TLV is already enabled.


poe

This TLV enables the switch port to advertise its current PoE state and to read the PoE requirements advertised by the LLDP-MED endpoint device connected to the port.

(Default: Enabled)


[NOTE: ]

NOTE: When disabled, this TLV cannot be enabled unless the capability TLV is already enabled.