The voice-vlan enable command configures the specified VLAN as a voice VLAN and enables the voice VLAN function on an interface.
The undo voice-vlan enable command disables the voice VLAN function on an interface.
By default, the voice VLAN function is disabled on an interface.
voice-vlan vlan-id enable [ include-untagged | include-tag0 ]*
undo voice-vlan enable (port group view)
undo voice-vlan [ vlan-id ] enable (other interface views except the port group view)
Only the S5720-EI, S6720-EI, and S6720S-EI supports include-tag0.
Parameter |
Description |
Value |
---|---|---|
vlan-id |
Configures a specified VLAN as a voice VLAN. |
The value is an integer that ranges from 2 to 4094. |
include-untagged |
Adds voice VLAN IDs to untagged packets. When an interface receives untagged packets, the interface determines whether to add voice VLAN tags to the packets according to the OUI address configured by the voice-vlan mac-address command. When IP phones send untagged voice packets, this parameter is mandatory. |
- |
include-tag0 |
Changes the VLAN ID in packets from VLAN 0 to the voice VLAN ID. When an interface receives packets tagged with VLAN 0, the interface checks whether the packets match the OUI address configured by the voice-vlan mac-address command and determines whether to change the VLAN ID in packets. When IP phones send packets tagged with VLAN 0, this parameter is mandatory. |
- |
Ethernet interface view, GE interface view, XGE interface view, 25GE interface view, 40GE interface view, 100GE interface view, MultiGE interface view, Eth-Trunk interface view, port group view
Usage Scenario
After voice VLAN is enabled on a device, based on the mode in which the priority of voice packets is increased by the voice-vlan remark-mode command, the device increases the priority of voice packets according to the VLAN or MAC address to ensure that voice packets are sent first.
Precautions