< Home

voice-vlan enable

Function

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.

Format

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.

Parameters

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.

-

Views

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

Default Level

2: Configuration level

Usage Guidelines

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

  • If the voice VLAN configured on an interface works in automatic mode, you need to run the port link-type command to set the interface type to trunk or hybrid.
  • To ensure normal transmission of different services, assign different VLAN IDs to the voice VLAN and default VLAN on the interface.
  • Only one VLAN on an interface can be configured as a voice VLAN at a time.
  • Dot1q-tunnel interfaces do not support the voice VLAN function.
  • When you run the voice-vlan enable command multiple times, only the latest configuration takes effect.
  • On the S2720-EI, S5720-HI, S5720I-SI, S5720-LI, S5735-L, S5735S-L, S5735S-L-M, S5720S-LI, S5720S-SI, S5720-SI, S5735-S, S5735S-S, S5735-S-I, S5730-HI, S5730S-EI, S5730-SI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6720-HI, S6720-LI, S6720S-LI, S6720S-SI, S6720-SI, S6730-H, S6730S-H, S6730-S, and S6730S-S include-untagged is valid for both untagged packets and packets tagged with VLAN 0. On other models, include-untagged is valid only for untagged packets. If the voice VLAN is valid for packets tagged with VLAN 0, include-untagged and include-tag0 must be configured.
  • On the S5720-EI, S6720-EI, and S6720S-EI, after a VLAN is associated with a BD or VSI and is specified as a voice VLAN, the VXLAN or MPLS function may not take effect.
  • On the S5720-HI, S5730-HI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6720-HI, S6730-H, S6730S-H, S6730-S, or S6730S-S, after a VLAN is associated with a BD or VSI, if this VLAN needs to be specified as a voice VLAN, you need to run the lldp tlv-enable med-tlv network-policy voice-vlan vlan vlan-id [ cos cvalue | dscp dvalue ]* command to configure the voice VLAN capability of LLDP on an interface.

Example

# Configure VLAN 2 as a voice VLAN and enable the voice VLAN function on GigabitEthernet0/0/1.

<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] voice-vlan 2 enable
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >