Enabling the Voice VLAN Function
Context
To implement the voice VLAN function, configure the VLAN used to forward voice packets on the switch as a voice VLAN and enable the voice VLAN. You are advised to configure different VLANs for voice and data services to facilitate management.
Procedure
- Run:
system-view
The system view is displayed.
- Run:
interface interface-type interface-number
The interface view is displayed.
- Run:
voice-vlan vlan-id enable [ include-untagged | include-tag0 ]*
A voice VLAN is configured and the voice VLAN function is enabled on the interface.
By default, the voice VLAN function is disabled on an interface.
VLAN 1 cannot be configured as a voice VLAN.
To transmit different services, ensure that the voice VLAN and default VLAN on an interface are different VLANs.
Only one voice VLAN on an interface can be configured as a voice VLAN at a time.
After a voice VLAN is configured on an interface, VLAN mapping, VLAN stacking, or traffic policies cannot be configured on the interface.
- When IP phones send packets tagged with VLAN 0, include-tag0 must be specified on interfaces of X series cards. On other models, include-untagged takes effect for untagged packets and packets tagged with VLAN 0.