Configuring LLDP or CDP to advertise a voice VLAN

If IP phones support LLDP, the device advertises the voice VLAN information to the IP phones through the LLDP-MED TLVs. If IP phones support only CDP, configure CDP compatibility on the device to enable it to advertise the voice VLAN information through CDP packets.

In either case, the voice VLAN information includes the voice VLAN ID and the tagging status indicator of the voice packets. The LLDP packets sent from the device carry the priority information. The CDP packets sent from the device do not carry the priority information.

After you configure this feature, the device advertises the voice VLAN to the IP phone by following the workflow described in Figure 52.

To configure LLDP or CDP to advertise a voice VLAN:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter Layer 2 Ethernet interface view.

interface interface-type interface-number

N/A

3. Configure LLDP or CDP to advertise a voice VLAN.

  • Configure LLDP to advertise a voice VLAN:lldp tlv-enable med-tlv network-policy vlan-id

  • Configure CDP to advertise a voice VLAN:

    1. Specify the ID of an advertised VLAN:cdp voice-vlan vlan-id

    2. Configure CDP compatibility:
      For more information, see "Configuring LLDP."

By default, LLDP and CDP advertise the voice VLAN configured on the port.

For more information about the lldp tlv-enable med-tlv network-policy command, see Layer 2—LAN Switching Command Reference.

4. (Optional.) Display the voice VLAN advertised by LLDP.

display lldp local-information

The advertised voice LAN information is displayed in the MED information fields in the command output.