voice-vlan enable
Use voice-vlan enable to enable the voice VLAN feature and configure a VLAN as the voice VLAN for a port.
Use undo voice-vlan enable to disable the voice VLAN feature on a port.
Syntax
voice-vlan vlan-id enable
undo voice-vlan [ vlan-id ] enable
Default
The voice VLAN feature is disabled on ports.
Views
Layer 2 Ethernet interface view
Predefined user roles
network-admin
Parameters
vlan-id: Specifies a voice VLAN ID in the range of 2 to 4094.
Usage guidelines
Use this command only on a hybrid or trunk port operating in automatic voice VLAN assignment mode.
Examples
# Enable the voice VLAN feature and configure VLAN 2 as the voice VLAN on Ten-GigabitEthernet 1/0/1.
<Sysname> system-view [Sysname] interface ten-gigabitethernet 1/0/1 [Sysname-Ten-GigabitEthernet1/0/1] voice-vlan 2 enable
Related commands
display voice-vlan state
voice-vlan mode auto