0% found this document useful (0 votes)
4 views23 pages

01-09 Voice VLAN Configuration

This document provides a configuration guide for Voice VLAN on S1720, S2700, S5700, and S6720 Series Ethernet switches, detailing how to prioritize voice data transmission over other types of data. It covers the definition, purpose, typical networking scenarios, and configuration methods for both MAC address-based and VLAN ID-based Voice VLANs. Additionally, it outlines licensing requirements, version compatibility, and feature limitations associated with Voice VLAN configurations.

Uploaded by

Bacof16
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views23 pages

01-09 Voice VLAN Configuration

This document provides a configuration guide for Voice VLAN on S1720, S2700, S5700, and S6720 Series Ethernet switches, detailing how to prioritize voice data transmission over other types of data. It covers the definition, purpose, typical networking scenarios, and configuration methods for both MAC address-based and VLAN ID-based Voice VLANs. Additionally, it outlines licensing requirements, version compatibility, and feature limitations associated with Voice VLAN configurations.

Uploaded by

Bacof16
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 23

S1720, S2700, S5700, and S6720 Series Ethernet

Switches
Configuration Guide - Ethernet Switching 9 Voice VLAN Configuration

9 Voice VLAN Configuration

About This Chapter

This chapter describes how to configure voice VLAN. A voice VLAN changes the
priority of voice data packets to improve voice data transmission quality.

9.1 Overview of Voice VLANs


9.2 Voice VLAN Typical Networking
9.3 Understanding Voice VLANs
9.4 Application Scenarios for Voice VLANs
9.5 Licensing Requirements and Limitations for Voice VLAN
9.6 Default Settings for Voice VLANs
9.7 Configuring a MAC Address-based Voice VLAN
9.8 Configuring a VLAN ID-based Voice VLAN
9.9 Configuration Examples for Voice VLANs

9.1 Overview of Voice VLANs


Definition
Voice VLAN is a technology that transmits voice data.

Purpose
Data, voice, and video services are often transmitted simultaneously over a
network. Voice services, in particular, require a higher forwarding priority than
data or video services. When bandwidth is limited, voice data must have
transmission preference over other types of data. This can be ensured by
configuring a voice VLAN on the switch to transmit voice data and setting QoS
parameters in the voice VLAN so that voice data is given preference when
congestion occurs.

Issue 13 (2021-10-20) Copyright © Huawei Technologies Co., Ltd. 431


S1720, S2700, S5700, and S6720 Series Ethernet
Switches
Configuration Guide - Ethernet Switching 9 Voice VLAN Configuration

9.2 Voice VLAN Typical Networking


As shown in Figure 9-1, a PC and an IP phone connect to a switch interface
simultaneously. Therefore, the switch interface transmits both voice and data
services.

Figure 9-1 Connecting a PC and an IP phone to a switch

Network

PC IP Phone Switch

The connection mode in Figure 9-1 is widely used on networks.

Figure 9-2 shows another connection mode, in which only an IP phone connects
to a switch interface.

Figure 9-2 Connecting an IP phone to a switch

Network

IP Phone Switch

Some IP phones (for example, Cisco 7962) send tagged voice packets and some IP
phones (for example, Huawei MC850) send untagged voice packets. The following
sections describe how the MAC address-based voice VLAN and VLAN ID-based
voice VLAN transmit tagged and untagged voice packets.

9.3 Understanding Voice VLANs


Some IP phones (for example, Cisco 7960) send tagged voice packets, and others
(for example, Huawei MC850) send untagged voice packets. This section discusses
how MAC address-based voice VLAN and VLAN ID-based voice VLAN transmit
tagged and untagged voice packets.

A switch configured with voice VLAN can:


● Identify voice data.
● Increase the priority of voice data.
● Forward the voice data based on the increased priority.

The switch identifies voice data based on:

● Source MAC addresses of the received packets


The switch identifies data packets as voice data when the source MAC address
matches the organizationally unique identifier (OUI). The OUI must be
preconfigured and is used in scenarios where IP phones send untagged voice
packets.

Issue 13 (2021-10-20) Copyright © Huawei Technologies Co., Ltd. 432


S1720, S2700, S5700, and S6720 Series Ethernet
Switches
Configuration Guide - Ethernet Switching 9 Voice VLAN Configuration

● Source VLAN tags of the received packets


The switch identifies data packets as voice data when the VLAN ID matches
the configured VLAN ID. This simplifies configurations when many IP phones
connect to the switch. IP phones must be able to obtain voice VLAN
information from the switch to use this mode.
The switch can identify voice data flows based on MAC addresses and VLAN IDs
regardless of whether the packets carry VLAN tags. However, OUIs must be
configured in order for the switch to differentiate untagged voice packets from
data packets. If the voice packets are tagged, configuring VLAN ID-based voice
VLAN simplifies configuration when many IP phones connect to the switch.

MAC Address-based Voice VLAN


● OUI
An OUI is the first 24 bits of a 48-bit MAC address assigned to each vendor by
the Institute of Electrical and Electronics Engineers (IEEE). Voice packets sent
by IP phones can be identified by the MAC address ranges requested by IP
phone vendors.
In voice VLAN, the OUI is user-defined and not necessarily 24 bits long. The
OUI is the result of the AND operation between the MAC address and mask in
the voice-vlan mac-address command.
● Implementation
In Figure 9-3, after receiving an untagged packet from the PC and IP phone,
the switch processes the packet as follows:
– If the source MAC address matches the configured OUI, the switch adds
the voice VLAN tag to the packet and increases the packet priority. (If the
result of the AND operation between the MAC address and mask is the
OUI, the source MAC address matches the OUI.)
– If the source MAC address does not match the configured OUI, the switch
adds the VLAN tag with the PVID to the packet so that voice packets are
preferentially sent.

Figure 9-3 MAC address-based voice VLAN


Data packet Low-priority data packet

Network

PC IP Phone Switch

Voice packet High-priority voice packet

VLAN ID-based Voice VLAN


After receiving packets from the PC and IP phone, the switch determines whether
the VLAN IDs in the packets match the configured voice VLAN ID. If they match,
the switch considers data as voice data and increases the priority. The switch adds
the VLAN tag of the PVID to untagged packets from the PC. When VLAN ID-based

Issue 13 (2021-10-20) Copyright © Huawei Technologies Co., Ltd. 433


S1720, S2700, S5700, and S6720 Series Ethernet
Switches
Configuration Guide - Ethernet Switching 9 Voice VLAN Configuration

voice VLAN is configured, the IP phone must be able to obtain voice VLAN
information from the switch.
LLDP is one of multiple methods in which an IP phone can obtain voice VLAN
information from a switch.

Figure 9-4 VLAN ID-based voice VLAN


Data packet Low-priority data packet

Network

PC IP phone Switch
1 Send an LLDPDU

2 Encapsulate the voice VLAN 4 High-priority voice packet


ID in the LLDPDU

3 Send the tagged voice packet


to the switch

Figure 9-4 shows a PC and an IP phone connecting to a switch. The IP phone


obtains voice VLAN information from the switch through LLDP as follows:
1. After the IP phone goes online, it sends an LLDPDU to the switch.
2. After receiving the LLDPDU, the switch encapsulates voice VLAN information
in the LLDPDU and sends it to the IP phone.
3. After receiving the LLDPDU, the IP phone sends tagged voice packets.
4. The switch receives tagged voice packets. If the tag matches the voice VLAN
ID on the switch, the switch increases the priority of the packets and forwards
them.
When receiving untagged packets, the switch still sends them in the VLAN
specified by the PVID. When congestion occurs, the switch preferentially sends
voice packets.

9.4 Application Scenarios for Voice VLANs


Figure 9-5 shows PCs and IP phones connecting to the Internet through switches.
Because the voice service is sensitive to delay and jitter, the priority of voice data
flows needs to be increased so that they can be preferentially forwarded when
congestion occurs.

Issue 13 (2021-10-20) Copyright © Huawei Technologies Co., Ltd. 434


S1720, S2700, S5700, and S6720 Series Ethernet
Switches
Configuration Guide - Ethernet Switching 9 Voice VLAN Configuration

Figure 9-5 Application scenarios for voice VLAN


Switch Switch1
Internet

IP Phone A
IP Phone C

IP Phone B

PC A PC C

Configure a voice VLAN based on the type of voice packets sent by IP phones:
● Configure MAC address-based voice VLAN when voice packets are untagged
or tagged with VLAN 0.
● Configure VLAN ID-based voice VLAN when IP phones can obtain voice VLAN
information on the switch.

9.5 Licensing Requirements and Limitations for Voice


VLAN

Involved Network Elements


Other network elements are not required.

Licensing Requirements
Voice VLAN configuration commands are available only after the S1720GW,
S1720GWR, and S1720X have the license (WEB management to full management
Electronic RTU License) loaded and activated and the switches are restarted. Voice
VLAN configuration commands on other models are not under license control.
For details about how to apply for a license, see S Series Switch License Use
Guide.

Issue 13 (2021-10-20) Copyright © Huawei Technologies Co., Ltd. 435


S1720, S2700, S5700, and S6720 Series Ethernet
Switches
Configuration Guide - Ethernet Switching 9 Voice VLAN Configuration

Version Requirements

Table 9-1 Products and versions supporting the voice VLAN


Product Product Software Version
Model

S1700 S1720GFR V200R006C10, V200R009C00, V200R010C00,


V200R011C00, V200R011C10

S1720GW, V200R010C00, V200R011C00, V200R011C10


S1720GWR

S1720GW- V200R010C00, V200R011C00, V200R011C10


E,
S1720GWR
-E

S1720X, V200R011C00, V200R011C10


S1720X-E

Other Models that cannot be configured using commands.


S1700 For details about features and versions, see S1700
models Documentation Bookshelf.

S2700 S2700SI Not supported

S2700EI V100R005C01, V100R006(C00&C01&C03&C05)

S2710SI V100R006(C03&C05)

S2720EI V200R006C10, V200R009C00, V200R010C00,


V200R011C10

S2750EI V200R003C00, V200R005C00SPC300, V200R006C00,


V200R007C00, V200R008C00, V200R009C00,
V200R010C00, V200R011C00, V200R011C10

S3700 S3700SI V100R005C01, V100R006(C00&C01&C03&C05)

S3700EI V100R005C01, V100R006(C00&C01&C03&C05)

S3700HI V100R006C01, V200R001C00

S5700 S5700LI V200R001C00, V200R002C00,


V200R003(C00&C02&C10), V200R005C00SPC300,
V200R006C00, V200R007C00, V200R008C00,
V200R009C00, V200R010C00, V200R011C00,
V200R011C10

S5700S-LI V200R001C00, V200R002C00, V200R003C00,


V200R005C00SPC300, V200R006C00, V200R007C00,
V200R008C00, V200R009C00, V200R010C00,
V200R011C00, V200R011C10

S5710-C-LI V200R001C00

Issue 13 (2021-10-20) Copyright © Huawei Technologies Co., Ltd. 436


S1720, S2700, S5700, and S6720 Series Ethernet
Switches
Configuration Guide - Ethernet Switching 9 Voice VLAN Configuration

Product Product Software Version


Model

S5710-X-LI V200R008C00, V200R009C00, V200R010C00,


V200R011C00, V200R011C10

S5700EI V100R005C01, V100R006(C00&C01),


V200R001(C00&C01), V200R002C00, V200R003C00,
V200R005(C00&C01&C02&C03)

S5700SI V100R005C01, V100R006C00, V200R001C00,


V200R002C00, V200R003C00, V200R005C00

S5710EI V200R001C00, V200R002C00, V200R003C00,


V200R005(C00&C02)

S5720EI V200R007C00, V200R008C00, V200R009C00,


V200R010C00, V200R011C00, V200R011C10

S5720LI, V200R010C00, V200R011C00, V200R011C10


S5720S-LI

S5720SI, V200R008C00, V200R009C00, V200R010C00,


S5720S-SI V200R011C00, V200R011C10

S5700HI V100R006C01, V200R001(C00&C01), V200R002C00,


V200R003C00, V200R005(C00SPC500&C01&C02)

S5710HI V200R003C00, V200R005(C00&C02&C03)

S5720HI V200R006C00, V200R007(C00&C10), V200R008C00,


V200R009C00, V200R010C00, V200R011C00,
V200R011C10

S5730SI V200R011C10

S5730S-EI V200R011C10

S6700 S6700EI V100R006C00, V200R001(C00&C01), V200R002C00,


V200R003C00, V200R005(C00&C01&C02)

S6720EI V200R008C00, V200R009C00, V200R010C00,


V200R011C00, V200R011C10

S6720S-EI V200R009C00, V200R010C00, V200R011C00,


V200R011C10

S6720LI, V200R011C00, V200R011C10


S6720S-LI

S6720SI, V200R011C00, V200R011C10


S6720S-SI

NOTE
To know details about software mappings, see Hardware Query Tool.

Issue 13 (2021-10-20) Copyright © Huawei Technologies Co., Ltd. 437


S1720, S2700, S5700, and S6720 Series Ethernet
Switches
Configuration Guide - Ethernet Switching 9 Voice VLAN Configuration

Feature Limitations
● 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 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.
● Do not set the VLAN ID to 0 on an IP phone.
● The automatic mode is not supported on the S5720HI.
● 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.
● When an IP phone is connected to a switch through the OUI-based voice
VLAN, disable LLDP on the interface. If LLDP is enabled on the interface, the
switch will allocate a voice VLAN ID to the IP phone. The IP phone sends
tagged packets to the switch, whereas the switch sends untagged packets to
the IP phone. As a result, the IP phone cannot go online.
● In V200R003 and later versions, 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.
● When the remark (user group view) and voice-vlan remark commands are
used together to modify the user packet priority, if the services conflict:
– For S5720HI, the priority configured using the remark (user group view)
command takes effect.
– For S5720EI, S6720EI, and S6720S-EI, the priority configured using the
voice-vlan remark command takes effect.

9.6 Default Settings for Voice VLANs


Parameter Default Setting

Voice VLAN on an interface Disabled

Increase in voice VLAN VLAN ID-based


priority

Adding an interface to voice Manual


VLAN

802.1p priority of the voice 6


VLAN

DSCP priority of the voice 46


VLAN

Issue 13 (2021-10-20) Copyright © Huawei Technologies Co., Ltd. 438


S1720, S2700, S5700, and S6720 Series Ethernet
Switches
Configuration Guide - Ethernet Switching 9 Voice VLAN Configuration

Parameter Default Setting

Working mode of the voice Normal


VLAN

Interworking with voice Disabled


devices of other vendors

9.7 Configuring a MAC Address-based Voice VLAN

9.7.1 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
Step 1 Run system-view

The system view is displayed.

Step 2 Run interface interface-type interface-number

The interface view is displayed.

Step 3 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.

NOTE

● 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 an IP phone sends packets tagged with VLAN 0, include-tag0 must be specified
on the S5720EI, S6720EI, and S6720S-EI. On other models, include-untagged takes
effect for untagged packets and packets tagged with VLAN 0.
● If a VLAN is associated with a BD, it cannot be configured as a voice VLAN.

----End

Issue 13 (2021-10-20) Copyright © Huawei Technologies Co., Ltd. 439


S1720, S2700, S5700, and S6720 Series Ethernet
Switches
Configuration Guide - Ethernet Switching 9 Voice VLAN Configuration

9.7.2 Configuring a Mode in Which the Priority of Voice


Packets Is Increased Based on MAC Addresses
Context
The switch can identify voice data flows according to the source MAC address of
the received data packets. The switch considers data packets with the source MAC
address matching the Organizationally Unique Identifier (OUI) as voice data flows.

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run interface interface-type interface-number
The interface view is displayed.
Step 3 Run voice-vlan remark-mode mac-address
A mode in which the priority of voice packets is increased is configured.
By default, the priority of voice packets is increased based on VLAN IDs.

----End

9.7.3 Configuring an OUI for a Voice VLAN


Context
An OUI is the first 24 bits of a 48-bit MAC address assigned to each vendor by the
Institute of Electrical and Electronics Engineers (IEEE). Voice packets sent by IP
phones can be identified by the MAC address ranges requested by IP phone
vendors.
In voice VLAN, the OUI is user-defined and not necessarily 24 bits long. The OUI is
the result of the AND operation between the MAC address and mask in the voice-
vlan mac-address command.

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run voice-vlan mac-address mac-address mask oui-mask [ description text ]
An OUI is configured for a voice VLAN.
By default, no OUI address is set.
When configuring an OUI for a voice VLAN, note the following:
● The MAC address cannot be all 0s, multicast address, or broadcast address.
● The S5720HI, S5720EI, S6720EI, and S6720S-EI support a maximum of 100
OUIs. When the switch is configured with 100 OUIs, subsequent

Issue 13 (2021-10-20) Copyright © Huawei Technologies Co., Ltd. 440


S1720, S2700, S5700, and S6720 Series Ethernet
Switches
Configuration Guide - Ethernet Switching 9 Voice VLAN Configuration

configurations will not take effect. Other models support a maximum of 16


OUIs. When the switch is configured with 16 OUIs, subsequent configurations
will not take effect.
● When you run the undo voice-vlan mac-address mac-address command to
delete an OUI, set mac-address to the result of the logical AND operation
between the OUI and the OUI mask that you set.

----End

9.7.4 Configuring a Mode in Which an Interface Is Added to a


Voice VLAN
Context
Based on MAC addresses, an interface can be added to a voice VLAN in auto or
manual mode. You can configure a mode in which an interface is added to a voice
VLAN according to data flows on the interface.
● Auto
The system adds the interface connected to a voice device to the voice VLAN
if the source MAC address of packets sent from the voice device matches the
OUI.
● Manual
In manual mode, the interface connected to a voice device must be added to
the voice VLAN manually after the voice VLAN function is enabled on the
interface. Otherwise, the voice VLAN does not take effect on the interface.

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run interface interface-type interface-number
The interface view is displayed.
Step 3 Run port link-type hybrid
The interface is configured as the hybrid interface.
Step 4 Run voice-vlan mode { auto | manual }
A mode in which an interface is added to a voice VLAN is configured.
By default, an interface is added to a voice VLAN in manual mode.

Issue 13 (2021-10-20) Copyright © Huawei Technologies Co., Ltd. 441


S1720, S2700, S5700, and S6720 Series Ethernet
Switches
Configuration Guide - Ethernet Switching 9 Voice VLAN Configuration

NOTE

● S5720HI does not support this configuration.


● 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.
● 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.

Step 5 (Optional) Add an interface to a voice VLAN in manual mode according to 5.7.1
Configuring Interface-based VLAN Assignment (Statically Configured
Interface Type).

----End

9.7.5 (Optional) Configuring the Secure or Normal Mode of a


Voice VLAN
Context
Based on the data filtering mechanism, a voice VLAN works in either secure or
normal mode.
Table 9-2 describes the voice VLAN working modes.

Issue 13 (2021-10-20) Copyright © Huawei Technologies Co., Ltd. 442


S1720, S2700, S5700, and S6720 Series Ethernet
Switches
Configuration Guide - Ethernet Switching 9 Voice VLAN Configuration

Table 9-2 Security and normal modes


Wor Scenario Packet Processing Configuration Note
king
Mod
e

Secu The inbound interface If the source MAC The secure mode takes
re enabled with the voice address does not effect only when the
VLAN function allows match the OUI, the voice-vlan remark-
only the voice packets interface does not mode mac-address
in which the source change the priority of command is
MAC address matches voice packets and configured to increase
the OUI address of the prevents the voice the priority of voice
voice VLAN, and packets from being packets based on MAC
discards non-voice forwarded in the voice addresses.
packets from the voice VLAN.
VLAN and forwards If the source MAC
packets from other address matches the
VLANs. OUI, the interface
changes the priority of
voice packets and
allows the voice
packets to be
forwarded in the voice
VLAN.

Nor The inbound interface If the source MAC Transmitting voice and
mal enabled with the voice address does not service data at the
VLAN function match the OUI, the same time in a voice
transmits both voice interface does not VLAN is not
packets and non-voice change the priority of recommended. If a
packets. In normal voice packets and voice VLAN must
mode, the interface is allows the voice transmit both voice
vulnerable to attacks packets to be and service data,
from malicious data forwarded in the voice ensure that the voice
traffic. VLAN. VLAN works in normal
If the source MAC mode.
address matches the
OUI, the interface
changes the priority of
voice packets and
allows the voice
packets to be
forwarded in the voice
VLAN.

Procedure
● Configuring the secure mode
a. Run system-view
The system view is displayed.

Issue 13 (2021-10-20) Copyright © Huawei Technologies Co., Ltd. 443


S1720, S2700, S5700, and S6720 Series Ethernet
Switches
Configuration Guide - Ethernet Switching 9 Voice VLAN Configuration

b. Run interface interface-type interface-number


The interface view is displayed.
c. Run voice-vlan security enable
The voice VLAN is configured to work in secure mode.
By default, a voice VLAN works in normal mode.
● Configuring the normal mode
a. Run system-view
The system view is displayed.
b. Run interface interface-type interface-number
The interface view is displayed.
c. Run undo voice-vlan security enable
The voice VLAN is configured to work in normal mode.
By default, a voice VLAN works in normal mode.

----End

9.7.6 (Optional) Configuring the 802.1p Priority and DSCP


Priority for a Voice VLAN

Context
By default, the 802.1p priority and DSCP priority for a voice VLAN are 6 and 46
respectively. You can dynamically configure 802.1p priority and DSCP priority to
plan priorities for different voice services.
● The 802.1p priority is indicated by the value in the 3-bit PRI field in each
802.1Q VLAN frame. This field determines the transmission priority for data
packets when a switching device is congested.
● The DSCP value is indicated by the 6 bits in the Type of Service (ToS) field in
the IPv4 packet header. DSCP, as the signaling for DiffServ, is used for QoS
guarantee on IP networks. The traffic controller on the network gateway
takes actions merely based on the information carried by the 6 bits.

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run voice-vlan remark { 8021p 8021p-value | dscp dscp-value } *

The 802.1p priority and DSCP priority are configured for a voice VLAN.

By default, the 802.1p priority and DSCP priority for a voice VLAN are 6 and 46
respectively.

----End

Issue 13 (2021-10-20) Copyright © Huawei Technologies Co., Ltd. 444


S1720, S2700, S5700, and S6720 Series Ethernet
Switches
Configuration Guide - Ethernet Switching 9 Voice VLAN Configuration

9.7.7 Verifying the MAC Address-based Voice VLAN


Configuration
Procedure
● Run the display voice-vlan [ vlan-id ] status command to check information
about a voice VLAN, including the status, working mode, 802.1p priority and
DSCP priority of the voice VLAN, and interface enabled with voice VLAN.
● Run the display voice-vlan oui command to check the organizationally
unique identifier (OUI), OUI mask, and OUI description of the voice VLAN.
----End

9.8 Configuring a VLAN ID-based Voice VLAN

9.8.1 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
Step 1 Run system-view
The system view is displayed.
Step 2 Run interface interface-type interface-number
The interface view is displayed.

Step 3 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.

Issue 13 (2021-10-20) Copyright © Huawei Technologies Co., Ltd. 445


S1720, S2700, S5700, and S6720 Series Ethernet
Switches
Configuration Guide - Ethernet Switching 9 Voice VLAN Configuration

NOTE

● 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 an IP phone sends packets tagged with VLAN 0, include-tag0 must be specified
on the S5720EI, S6720EI, and S6720S-EI. On other models, include-untagged takes
effect for untagged packets and packets tagged with VLAN 0.
● If a VLAN is associated with a BD, it cannot be configured as a voice VLAN.

----End

9.8.2 Configuring a Mode in Which the Priority of Voice


Packets Is Increased Based on VLAN IDs

Context
If the VLAN ID in packets received by a switch interface is the same as the voice
VLAN ID, the switch considers the packets as voice packets and increases the
packet priority.

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run interface interface-type interface-number

The interface view is displayed.

Step 3 Run voice-vlan remark-mode vlan

A mode in which the priority of voice packets is increased is configured.

By default, the priority of voice packets is increased based on VLAN IDs.

----End

9.8.3 Configuring a Mode in Which an Interface Is Added to a


Voice VLAN

Context
When a VLAN ID-based voice VLAN is used, the interface connected to a voice
device must be added to the voice VLAN manually so that the voice VLAN can
take effect.

Issue 13 (2021-10-20) Copyright © Huawei Technologies Co., Ltd. 446


S1720, S2700, S5700, and S6720 Series Ethernet
Switches
Configuration Guide - Ethernet Switching 9 Voice VLAN Configuration

Procedure
Step 1 Add an interface to a voice VLAN in manual mode according to 5.7.1 Configuring
Interface-based VLAN Assignment (Statically Configured Interface Type).

----End

9.8.4 Configuring the Switch to Advertise Voice VLAN


Information to an IP Phone
Context
Generally, IP phones that can send tagged voice packets can obtain voice VLAN
information from the switch using a protocol such as LLDP (LLDP is used as an
example). LLDP needs to be enabled. When the switch receives an LLDPDU from
an IP phone, the switch encapsulates voice VLAN information in the LLDPDU and
sends it to the IP phone. The IP phone then sends tagged voice packets.

The switch can encapsulate voice VLAN information into LLDPDUs and send them
to connected IP phones. However, IP phones of some vendors send Cisco Discovery
Protocol (CDP) packets. You can run the voice-vlan legacy enable command to
enable CDP-compatible function so that the switch encapsulates voice VLAN
information in CDP packets and sends them to connected IP phones.

Procedure
● Configuring the switch to advertise voice VLAN information to an IP phone
through LLDP
a. Run system-view

The system view is displayed.


b. Run lldp enable

LLDP is enabled globally.

By default, LLDP is enabled globally.


c. Run interface interface-type interface-number

The interface view is displayed.


d. Run lldp enable

LLDP is enabled on the interface.

After LLDP is enabled in the system view, all interfaces are enabled with
LLDP.
● Configuring Cisco Discovery Protocol (CDP)-compatible Voice VLAN function
a. Run system-view

The system view is displayed.


b. Run interface interface-type interface-number

The interface view is displayed.


c. Run voice-vlan legacy enable

Issue 13 (2021-10-20) Copyright © Huawei Technologies Co., Ltd. 447


S1720, S2700, S5700, and S6720 Series Ethernet
Switches
Configuration Guide - Ethernet Switching 9 Voice VLAN Configuration

CDP-compatible Voice VLAN function is enabled so that the switch


encapsulates voice VLAN information in CDP packets and sends them to
the IP phone.
By default, CDP-compatible Voice VLAN function is disabled.
----End

9.8.5 (Optional) Configuring the 802.1p Priority and DSCP


Priority for a Voice VLAN
Context
By default, the 802.1p priority and DSCP priority for a voice VLAN are 6 and 46
respectively. You can dynamically configure 802.1p priority and DSCP priority to
plan priorities for different voice services.
● The 802.1p priority is indicated by the value in the 3-bit PRI field in each
802.1Q VLAN frame. This field determines the transmission priority for data
packets when a switching device is congested.
● The DSCP value is indicated by the 6 bits in the Type of Service (ToS) field in
the IPv4 packet header. DSCP, as the signaling for DiffServ, is used for QoS
guarantee on IP networks. The traffic controller on the network gateway
takes actions merely based on the information carried by the 6 bits.

Procedure
Step 1 Run system-view
The system view is displayed.

Step 2 Run voice-vlan remark { 8021p 8021p-value | dscp dscp-value } *

The 802.1p priority and DSCP priority are configured for a voice VLAN.
By default, the 802.1p priority and DSCP priority for a voice VLAN are 6 and 46
respectively.

----End

9.8.6 Verifying the VLAN ID-based Voice VLAN Configuration


Procedure
● Run the display voice-vlan [ vlan-id ] status command to check information
about a voice VLAN, including the status, 802.1p priority and DSCP priority of
the voice VLAN, and interface enabled with voice VLAN.
----End

Issue 13 (2021-10-20) Copyright © Huawei Technologies Co., Ltd. 448


S1720, S2700, S5700, and S6720 Series Ethernet
Switches
Configuration Guide - Ethernet Switching 9 Voice VLAN Configuration

9.9 Configuration Examples for Voice VLANs


9.9.1 Example for Configuring a MAC Address-based Voice
VLAN (IP Phones Send Untagged Voice Packets)

Networking Requirements
As shown in Figure 9-6, the switch connects to IP phones and a PC. The switch
uses VLAN 2 to transmit voice packets and VLAN 3 to transmit data packets. PC A
connects to IP phone A and they connect to the switch, and IP phone B separately
connects to the switch. IP phones send untagged voice packets. Users require high
quality of the VoIP service; therefore, voice data flows must be transmitted with a
high priority to ensure the call quality.

Figure 9-6 Networking for configuring a MAC address-based voice VLAN


Switch Switch1

Internet

GE0/0/1 GE0/0/2
IP Phone A GE0/0/1
MAC:0003-6B00-0001
Mask:ffff-ff00-0000

IP Phone C

IP Phone B
MAC:0003-6B00-0002
Mask:ffff-ff00-0000

PC A PC C
286E-D400-0001

Configuration Roadmap
Because voice and data packets received by the switch are untagged, you need to
configure OUIs to differentiate voice and data traffic. The configuration roadmap
is as follows:
1. Create VLANs on the switch and add interfaces to VLANs to implement Layer
2 connectivity.
2. Configure an OUI so that the switch adds a VLAN tag to voice packets in
which the source MAC address matches the OUI.
3. Configure VLAN 2 as the voice VLAN and configure the interface to allow
voice packets to pass through.

Issue 13 (2021-10-20) Copyright © Huawei Technologies Co., Ltd. 449


S1720, S2700, S5700, and S6720 Series Ethernet
Switches
Configuration Guide - Ethernet Switching 9 Voice VLAN Configuration

Procedure
Step 1 Configure VLANs and interfaces on the Switch.
# Create VLANs.
<HUAWEI> system-view
[HUAWEI] sysname Switch
[Switch] vlan batch 2 3

# Configure VLANs allowed by GE0/0/1.


[Switch] interface gigabitethernet 0/0/1
[Switch-GigabitEthernet0/0/1] port link-type hybrid
[Switch-GigabitEthernet0/0/1] port hybrid pvid vlan 3
[Switch-GigabitEthernet0/0/1] port hybrid untagged vlan 2 to 3
[Switch-GigabitEthernet0/0/1] quit
[Switch] interface gigabitethernet 0/0/2
[Switch-GigabitEthernet0/0/2] port link-type hybrid
[Switch-GigabitEthernet0/0/2] port hybrid untagged vlan 2
[Switch-GigabitEthernet0/0/2] quit

Step 2 Configure an OUI.


[Switch] voice-vlan mac-address 0003-6B00-0000 mask ffff-ff00-0000

Step 3 # Enable the voice VLAN function on GE0/0/1. The configuration of GE0/0/2 is
similar to the configuration of GE0/0/1, and is not mentioned here.
[Switch] interface gigabitethernet 0/0/1
[Switch-GigabitEthernet0/0/1] voice-vlan 2 enable include-untagged
[Switch-GigabitEthernet0/0/1] voice-vlan remark-mode mac-address
[Switch-GigabitEthernet0/0/1] quit

Step 4 Verify the configuration.


Run the display voice-vlan 2 status command to check the voice VLAN
configuration.
[Switch] display voice-vlan 2 status
Voice VLAN Configurations:
-----------------------------------------------------------
Voice VLAN ID :2
Voice VLAN status : Enable
Voice VLAN 8021p remark : 6
Voice VLAN dscp remark : 46
-----------------------------------------------------------
Port Information:
-------------------------------------------------------------------------------
Port Add-Mode Security-Mode Legacy PribyVLAN Untag
-------------------------------------------------------------------------------
GigabitEthernet0/0/2 Manual Normal Disable Disable Enable
GigabitEthernet0/0/1 Manual Normal Disable Disable Enable

----End

Configuration Files
Switch configuration file
#
sysname Switch
#
voice-vlan mac-address 0003-6b00-0000 mask ffff-ff00-0000
#
vlan batch 2 to 3
#
interface GigabitEthernet0/0/1

Issue 13 (2021-10-20) Copyright © Huawei Technologies Co., Ltd. 450


S1720, S2700, S5700, and S6720 Series Ethernet
Switches
Configuration Guide - Ethernet Switching 9 Voice VLAN Configuration

port link-type hybrid


voice-vlan 2 enable include-untagged
voice-vlan remark-mode mac-address
port hybrid pvid vlan 3
port hybrid untagged vlan 2 to 3
#
interface GigabitEthernet0/0/2
port link-type hybrid
voice-vlan 2 enable include-untagged
voice-vlan remark-mode mac-address
port hybrid untagged vlan 2
#
return

9.9.2 Example for Configuring a VLAN ID-based Voice VLAN


(IP Phones Send Tagged Voice Packets)

Networking Requirements
As shown in Figure 9-7, the switch connects to IP phones and a PC. The switch
uses VLAN 2 to transmit voice packets and VLAN 3 to transmit data packets. PC A
connects to IP phone A and they connect to the switch, and IP phone B separately
connects to the switch. IP phones can obtain voice VLAN information through
LLDP and send tagged voice packets. Users require high quality of the VoIP
service; therefore, voice data flows must be transmitted with a high priority to
ensure the call quality. In addition, the administrator manages many IP phones
and requires simplified configurations.

Figure 9-7 Networking for configuring a VLAN ID-based voice VLAN


Switch Switch1

Internet

GE0/0/1 GE0/0/2
GE0/0/1

IP Phone A
IP Phone C

IP Phone B

PC A PC C

Configuration Roadmap
The configuration roadmap is as follows:
1. Create VLANs on the switch and add interfaces to VLANs to implement Layer
2 connectivity.

Issue 13 (2021-10-20) Copyright © Huawei Technologies Co., Ltd. 451


S1720, S2700, S5700, and S6720 Series Ethernet
Switches
Configuration Guide - Ethernet Switching 9 Voice VLAN Configuration

2. Enable LLDP so that IP phones can obtain voice VLAN information through
LLDP.
3. Configure VLAN 2 as the voice VLAN and configure the interface to allow
voice packets to pass through. Configure a VLAN ID-based voice VLAN, which
relieves you from configuring OUIs.

Procedure
Step 1 Configure VLANs and interfaces on the Switch.
# Create VLANs.
<HUAWEI> system-view
[HUAWEI] sysname Switch
[Switch] vlan batch 2 3

# Configure VLANs allowed by GE0/0/1.


[Switch] interface gigabitethernet 0/0/1
[Switch-GigabitEthernet0/0/1] port link-type hybrid
[Switch-GigabitEthernet0/0/1] port hybrid pvid vlan 3
[Switch-GigabitEthernet0/0/1] port hybrid untagged vlan 3
[Switch-GigabitEthernet0/0/1] port hybrid tagged vlan 2
[Switch-GigabitEthernet0/0/1] quit
[Switch] interface gigabitethernet 0/0/2
[Switch-GigabitEthernet0/0/2] port link-type hybrid
[Switch-GigabitEthernet0/0/2] port hybrid tagged vlan 2
[Switch-GigabitEthernet0/0/2] quit

Step 2 Enable LLDP.


[Switch] lldp enable

Step 3 # Enable the voice VLAN function on GE0/0/1. The configuration of GE0/0/2 is
similar to the configuration of GE0/0/1, and is not mentioned here.
[Switch] interface gigabitethernet 0/0/1
[Switch-GigabitEthernet0/0/1] voice-vlan 2 enable
[Switch-GigabitEthernet0/0/1] voice-vlan remark-mode vlan
[Switch-GigabitEthernet0/0/1] quit

Step 4 Verify the configuration.


Run the display voice-vlan 2 status command to check the voice VLAN
configuration.
[Switch] display voice-vlan 2 status
Voice VLAN Configurations:
-----------------------------------------------------------
Voice VLAN ID :2
Voice VLAN status : Enable
Voice VLAN 8021p remark : 6
Voice VLAN dscp remark : 46
-----------------------------------------------------------
Port Information:
-------------------------------------------------------------------------------
Port Add-Mode Security-Mode Legacy PribyVLAN Untag
-------------------------------------------------------------------------------
GigabitEthernet0/0/2 Manual Normal Disable Enable Disable
GigabitEthernet0/0/1 Manual Normal Disable Enable Disable

----End

Configuration Files
Switch configuration file

Issue 13 (2021-10-20) Copyright © Huawei Technologies Co., Ltd. 452


S1720, S2700, S5700, and S6720 Series Ethernet
Switches
Configuration Guide - Ethernet Switching 9 Voice VLAN Configuration

#
sysname Switch
#
vlan batch 2 to 3
#
lldp enable
#
interface GigabitEthernet0/0/1
port link-type hybrid
voice-vlan 2 enable
port hybrid pvid vlan 3
port hybrid tagged vlan 2
port hybrid untagged vlan 3
#
interface GigabitEthernet0/0/2
port link-type hybrid
voice-vlan 2 enable
port hybrid tagged vlan 2
#
return

Issue 13 (2021-10-20) Copyright © Huawei Technologies Co., Ltd. 453

You might also like