The voice-vlan mode command sets the working mode of the voice VLAN on an interface.
The undo voice-vlan mode command restores the mode in which an interface is added to a voice VLAN to the default.
By default, the voice VLAN of an interface works in manual mode.
The S5720-HI, S5730-HI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6720-HI, S6730-H, S6730S-H, S6730-S, and S6730S-S do not support this configuration.
Parameter |
Description |
Value |
---|---|---|
auto |
Indicates the automatic mode of the voice VLAN. The automatic mode of the voice VLAN is not supported on the negotiation-auto or negotiation-desirable port. |
- |
manual |
Indicates the manual mode of the voice VLAN. |
- |
Ethernet interface view, GE interface view, XGE interface view, 40GE interface view, MultiGE interface view, Eth-Trunk interface view, port group view
The undo voice-vlan mode manual command is not supported in the port group view.
Usage Scenario
Automatic mode
A voice VLAN-enabled port learns source MAC addresses of frames from voice devices, adds ports connecting the device to voice devices to a voice VLAN.
In auto mode, you cannot manually add ports to a voice VLAN.
The automatic mode takes effect only when the voice-vlan remark-mode mac-address command is configured to increase the priority of voice packets based on MAC addresses and the voice-vlan enable command without include-untagged specified is configured to enable voice VLAN on the interface and add voice VLAN IDs to only tagged packets.
Manual mode
After the voice VLAN function is enabled, ports connected to voice devices must be manually added to a voice VLAN. Otherwise, the voice VLAN function does not take effect.
Pre-configuration Tasks
Before configuring a port to work in automatic mode, run the voice-vlan enable command to enable the voice VLAN function and run the voice-vlan remark-mode mac-address command to increase the priority of voice packets based on MAC addresses.
In auto mode, access, negotiation-auto, or negotiation-desirable interfaces cannot be added to a voice VLAN. To add the interface to the voice VLAN, run the port link-type command to change the link type of the interface to trunk or hybrid.
Precautions
The working mode of the voice VLAN on an interface does not affect the working mode of the voice VLAN on another interface. That is, voice VLANs on different interfaces can adopt different working modes.
# On GE0/0/1, configure the voice VLAN to work in manual mode.
<HUAWEI> system-view [HUAWEI] interface gigabitethernet 0/0/1 [HUAWEI-GigabitEthernet0/0/1] port link-type hybrid [HUAWEI-GigabitEthernet0/0/1] voice-vlan 10 enable [HUAWEI-GigabitEthernet0/0/1] voice-vlan remark-mode mac-address [HUAWEI-GigabitEthernet0/0/1] voice-vlan mode manual [HUAWEI-GigabitEthernet0/0/1] port hybrid tagged vlan 10