Voice VLAN Commands

Use these commands to configure Voice VLAN.

This section describes the commands you use for Voice VLAN. Voice VLAN enables switch ports to carry voice traffic with defined priority so as to enable separation of voice and data traffic coming onto the port. The benefits of using Voice VLAN are to ensure that the sound quality of an IP phone could be safeguarded from deteriorating when the data traffic on the port is high.

Also the inherent isolation provided by VLANs ensures that inter-VLAN traffic is under management control and that network-attached clients cannot initiate a direct attack on voice components. QoS-based on IEEE 802.1P class of service (CoS) uses classification and scheduling to send network traffic from the switch in a predictable manner. The system uses the source MAC of the traffic traveling through the port to identify the IP phone data flow.

The switch can be configured to support voice VLAN on a port connecting to the VoIP phone. When a VLAN is associated with the voice VLAN port, then the VLAN id info is passed onto the VoIP phone using the LLDP-MED mechanism. The voice data coming from the VoIP phone is tagged with the exchanged VLAN ID; thus, regular data arriving on the switch is assigned the default PVID of the port, and the voice traffic is received on a predefined VLAN. The two types of traffic are therefore segregated so that better service can be provided to the voice traffic.

When a dot1p priority is associated with the voice VLAN port instead of VLAN ID, the priority information is passed onto the VoIP phone using the LLDP-MED mechanism. Thus, the voice data coming from the VoIP phone is tagged with VLAN 0 and with the exchanged priority. Regular data arriving on the switch is assigned the default priority of the port (default 0), and the voice traffic is received with higher priority, thus segregating both the traffic to provide better service to the voice traffic.

The switch can be configured to override the data traffic CoS. This feature enables overriding the 802.1P priority of the data traffic packets arriving at the port enabled for voice VLAN. Thus, a rogue client that is also connected to the voice VLAN port does not deteriorate the voice traffic.

When a VLAN ID is configured on the voice VLAN port, the VLAN ID information is passed onto the VoIP phone using the LLDP-MED mechanism. The voice data coming from the VoIP phone is tagged with the exchanged VLAN ID; thus, regular data arriving on the switch is assigned the default PVID of the port, and the voice traffic is received on a predefined VLAN. The two types of traffic are segregated so that better service can be provided to the voice traffic.

Note: The IP phone must support LLDP-MED to accept the VLAN ID and CoS information from the switch.

voice vlan (Global Config)

M4250

M4350

Use this command to enable the Voice VLAN capability on the switch.

Default Disabled
Format voice vlan
Mode Global Config

no voice vlan (Global Config)

Use this command to disable the Voice VLAN capability on the switch.

Format no voice vlan
Mode Global Config

voice vlan (Interface Config)

M4250

M4350

Use this command to enable the Voice VLAN capability on the interface or range of interfaces.

Default Disabled
Format voice vlan {vlan-id | dot1p priority | none | untagged}
Mode Interface Config

You can configure Voice VLAN in one of four different ways.

Parameter Description
vlan-id Configure the IP phone to forward all voice traffic through the specified VLAN. Valid VLAN ID’s are from 1 to 4093 (the max supported by the platform).
dot1p Configure the IP phone to use 802.1p priority tagging for voice traffic and to use the default native VLAN (VLAN 0) to carry all traffic. Valid priority range is 0 to 7.
none Allow the IP phone to use its own configuration to send untagged voice traffic.
untagged Configure the phone to send untagged voice traffic.

no voice vlan (Interface Config)

Use this command to disable the Voice VLAN capability on the interface.

Format no voice vlan
Mode Interface Config

voice vlan auth

M4250

M4350

This command lets the switch accept or reject voice traffic when the port is in an unauthorized state. By default, the switch rejects voice traffic when the port is in an unauthorized state.

Default disable
Format voice vlan auth {disable | enable}
Mode Interface Config

voice vlan data priority

M4250

M4350

Use this command to either trust or untrust the data traffic arriving on the Voice VLAN interface or range of interfaces being configured.

Default trust
Format voice vlan data priority {untrust | trust}
Mode Interface Config

voice vlan dscp

M4250

M4350

Use this command to configure the DSCP value for voice traffic on the Voice VLAN port. The value can be from 0 to 64.

Default 0
Format voice vlan dscp value
Mode Interface Config

no voice vlan dscp

Use this command to reset the DSCP value for voice traffic to the default value.

Format no voice vlan dscp
Mode Interface Config

show voice vlan

Use this command to display information about the voice VLAN. To specify an actual interface or port, do the following:

  • For an M4250 series switch, use the argument slot/port.
  • For an M4350 series switch, use the argument unit/slot/port, as shown in the command format.
Format show voice vlan [interface {unit/slot/port | all}]
Mode Privileged EXEC

If you do not specify an interface, only the global mode of the Voice VLAN is displayed.

Term Definition
Administrative Mode The Global Voice VLAN mode.

If you do specify an interface, more information is displayed.

Term Definition
Interface The Voice VLAN interface ID.
Voice VLAN Interface Mode The admin mode of the Voice VLAN on the port.
Voice VLAN CoS Override The CoS override option for the voice traffic arriving on the port.
Voice VLAN DSCP Value The DSCP value for the Voice VLAN on the port.
Voice VLAN Port Status The port status for the Voice VLAN.
Voice VLAN Authentication The authentication state of the Voice VLAN on the port.
Voice VLAN Operational Value The operational value of the Voice VLAN on the port.