24
Configuring LLDP to advertise a voice VLAN
For IP phones that support LLDP, the device advertises the voice VLAN information to the IP phones
through LLDP-MED TLVs.
To configure LLDP to advertise a voice VLAN:
24. Enter system view.
system-view
N/A
25. Enter Layer 2 Ethernet
interface view.
interface
interface-type
interface-number
N/A
26. Configure an advertised
voice VLAN ID.
lldp tlv-enable med-tlv
network-policy
vlan-id
By default, no advertised
voice VLAN ID is configured.
Configuring CDP to advertise a voice VLAN
If an IP phone supports CDP but does not support LLDP, it sends CDP packets to the device to
request the voice VLAN ID. If the IP phone does not receive the voice VLAN ID within a time period,
it sends out untagged voice packets. These untagged voice packets cannot be differentiated from
other types of packets.
You can configure CDP compatibility on the device to enable it to perform the following operations:
Receive and identify CDP packets from the IP phone.
Send CDP packets to the IP phone. The voice VLAN information is carried in the CDP packets.
After receiving the advertised VLAN information, the IP phone starts automatic voice VLAN
configuration. Packets from the IP phone will be transmitted in the dedicated voice VLAN.
To configure CDP to advertise a voice VLAN:
27. Enter system view.
system-view
N/A
28. Enable CDP compatibility.
lldp compliance cdp
By default, CDP compatibility
is disabled.
29. Enter Layer 2 Ethernet
interface view.
interface
interface-type
interface-number
N/A
30. Configure CDP-compatible
LLDP to operate in TxRx
mode.
lldp compliance admin-status cdp
txrx
By default, CDP-compatible
LLDP operates in disable
mode.
31. Configure an advertised
voice VLAN ID.
cdp voice-vlan
vlan-id
By default, no advertised
voice VLAN ID is configured.
Displaying and maintaining voice VLANs
Execute display commands in any view.