- Table of Contents
-
- H3C Low-End Ethernet Switches Configuration Guide(V1.01)
- 01-Login Configuration Guide
- 02-VLAN Configuration Guide
- 03-IP Address Configuration Guide
- 04-Voice VLAN Configuration Guide
- 05-GVRP Configuration Guide
- 06-Ethernet Interface Basic Configuration Guide
- 07-Link Aggregation Configuration Guide
- 08-Port Isolation Configuration Guide
- 09-Port Security Configuration Guide
- 10-Port Binding Configuration Guide
- 11-MAC Address Table Management Configuration Guide
- 12-DLDP Configuration Guide
- 13-Auto Detect Configuration Guide
- 14-MSTP Configuration Guide
- 15-Routing Configuration Guide
- 16-Multicast Configuration Guide
- 17-802.1x Configuration Guide
- 18-AAA Configuration Guide
- 19-MAC Authentication Configuration Guide
- 20-VRRP Configuration Guide
- 21-ARP Configuration Guide
- 22-DHCP Configuration Guide
- 23-ACL Configuration Guide
- 24-QoS-QoS Profile Configuration Guide
- 25-Web Cache Redirection Configuration Guide
- 26-Mirroring Configuration Guide
- 27-IRF Configuration Guide
- 28-Cluster Configuration Guide
- 29-PoE-PoE Profile Configuration Guide
- 30-UDP Helper Configuration Guide
- 31-SNMP-RMON Configuration Guide
- 32-NTP Configuration Guide
- 33-SSH Configuration Guide
- 34-FTP and TFTP Configuration Guide
- 35-Information Center Configuration Guide
- 36-VLAN-VPN Configuration Guide
- 37-HWPing Configuration Guide
- 38-DNS Configuration Guide
- 39-Access Management Configuration Guide
- 40-Web Authentication Configuration Guide
- 41-IPv6 Management Configuration Guide
- 42-Smart link - Monitor Link Configuration Guide
- 43-VLAN Mapping Configuration Guide
- Related Documents
-
Title | Size | Download |
---|---|---|
04-Voice VLAN Configuration Guide | 56.25 KB |
Configuring Voice VLAN
The voice VLAN feature improves voice traffic transmission priority and guarantee voice quality by assigning voice traffic to a dedicated VLAN for transmission. This dedicated VLAN is called the voice VLAN. A port is assigned to the voice VLAN in one of the following two modes:
l In automatic mode, the switch checks the source MAC address of each incoming packet against the voice device OUI address list maintained on the switch. If a match is found, the switch assigns the port to the voice VLAN and tags the packet with the voice VLAN ID automatically. When the port joins the voice VLAN, a voice VLAN aging timer starts. If no voice packets have been received before the timer expires, the port leaves the voice VLAN.
l In manual mode, you need to manually assign a port to or remove the port from the voice VLAN.
Network Diagram
Figure 1-1 Network diagram for voice VLAN in automatic mode
Networking and Configuration Requirements
As shown in Figure 1-1, the PC is connected to Ethernet 1/0/1 of Switch A through IP phone 1, and IP phone 2 is connected to Ethernet 1/0/2 of Switch A. IP phone 1 sends out voice traffic with the tag of the voice VLAN, while IP phone 2 sends out voice traffic without any VLAN tag. Configure the voice VLAN feature to satisfy the following requirements:
l VLAN 2 functions as the voice VLAN for transmitting voice traffic, and set the aging timer of the voice VLAN to 100 minutes. VLAN 6 transmits user service data.
l Ethernet 1/0/1 and Ethernet 1/0/2 can recognize voice traffic automatically. Service data from the PC and voice traffic are assigned to different VLANs and then transmitted to the server and the voice gateway respectively through Switch B.
l As the OUI address of IP phone 2 is not in the default voice device OUI address list of the switch, add its OUI address 000f-2200-0000 to the voice device OUI address list. In addition, configure its description as IP Phone2.
Applicable Product Matrix
Product series |
Software version |
Hardware version |
S5600 series |
Release 1510, Release1602 |
All versions |
S5100-SI/EI series |
Release 2200, Release2201 |
All versions |
S3600-SI/EI series |
Release 1510, Release1602 |
All versions |
S3100-EI series |
Release 2104, Release 2107 |
All versions |
S3100-52P |
Release 1500, Release 1602 |
S3100-52P |
Configuration Procedure
# Create VLAN 2 and VLAN 6.
<SwitchA> system-view
[SwitchA] vlan 2
[SwitchA-vlan2] quit
[SwitchA] vlan 6
[SwitchA-vlan6] quit
# Set the aging timer for the voice VLAN.
[SwitchA] voice vlan aging 100
# Add 000f-2200-0000 to the voice device OUI address list and configure its description as IP Phone2.
[SwitchA] voice vlan mac-address 000f-2200-0000 mask ffff-ff00-0000 description IP Phone2
# Configure VLAN 2 as the voice VLAN and enable the voice VLAN feature globally.
[SwitchA] voice vlan 2 enable
# Set the voice VLAN assignment mode on Ethernet 1/0/1 to automatic. This step is optional, because the default voice VLAN assignment mode is automatic.
[SwitchA] interface Ethernet 1/0/1
[SwitchA-Ethernet1/0/1] voice vlan mode auto
# Configure Ethernet 1/0/1 as a trunk port.
[SwitchA-Ethernet1/0/1] port link-type trunk
# Set VLAN 6 as the default VLAN of Ethernet 1/0/1 and configure Ethernet 1/0/1 to permit the packets of VLAN 6 to pass through. (PC data will be transmitted in the VLAN.)
[SwitchA-Ethernet1/0/1] port trunk pvid vlan 6
[SwitchA-Ethernet1/0/1] port trunk permit vlan 6
# Enable voice VLAN on Ethernet 1/0/1.
[SwitchA-Ethernet1/0/1] voice vlan enable
l After the configuration is finished, PC data is automatically assigned to the default VLAN of Ethernet 1/0/1 (namely the service VLAN) for transmission. When IP phone traffic arrives at Ethernet 1/0/1, the port automatically permits the voice VLAN and transmits the voice traffic with the voice VLAN tag, so that the IP phone can receive packets normally.
l You can set Ethernet 1/0/1 as a hybrid or trunk port following the same procedure. In either case, you need to set the service VLAN as the default VLAN. As for voice traffic, when IP phone traffic arrives at the port, the port automatically permits the voice VLAN and transmits the traffic with the voice VLAN tag.
# Set the voice VLAN assignment mode of Ethernet 1/0/2 to manual. The mode must be manual because IP phone 2 can send out only untagged voice traffic.
[SwitchA-Ethernet1/0/1] quit
[SwitchA] interface Ethernet 1/0/2
[SwitchA-Ethernet1/0/2] undo voice vlan mode auto
# Configure Ethernet 1/0/2 to be an access port and permit the voice VLAN.
[SwitchA-Ethernet1/0/2] port access vlan 2
# Enable voice VLAN on Ethernet 1/0/2.
[SwitchA-Ethernet1/0/2] voice vlan enable
l You can set Ethernet 1/0/2 as a trunk or hybrid port. In either case, configure the voice VLAN as the default VLAN and configure the port to remove the VLAN tag when forwarding traffic with the voice VLAN tag.
l If traffic from IP phone 2 is tagged, configure Ethernet 1/0/2 as a trunk or hybrid port where the default VLAN cannot be set to VLAN 20 and the packets of VLAN 20 must be sent with the VLAN tag.
Complete Configuration
#
vlan 1 to 2
#
vlan 6
#
interface Ethernet1/0/1
port link-type trunk
port trunk permit vlan 1 6
port trunk pvid vlan 6
voice vlan enable
#
interface Ethernet1/0/2
port access vlan 2
undo voice vlan mode auto
voice vlan enable
#
voice vlan aging 100
voice vlan mac-address 000f-2200-0000 mask ffff-ff00-0000 description IP Phone2
voice vlan 2 enable
Precautions
Follow these guidelines when configuring the voice VLAN feature:
l You cannot assign a port operating in automatic mode to the voice VLAN manually. Therefore, if you configure a VLAN as a voice VLAN and a protocol VLAN at the same time, you will be unable to associate the protocol VLAN with such a port. Refer to VLAN Configuration Guide in this manual for description on protocol VLAN.
l You cannot set the voice VLAN as the default VLAN on a port operating in automatic voice VLAN assignment mode.
l The switch supports only one voice VLAN.
l You cannot enable voice VLAN on a port configured with the Link Aggregation Control Protocol (LACP).
l Only a static VLAN can be configured as the voice VLAN.
l When the number of ACL rules applied to a port reaches the upper threshold, enabling voice VLAN on the port will fail. You can use the display voice vlan error-info command to locate such ports.
l In the voice VLAN operating in security mode, the device allows only the packets whose source address matches a recognizable voice device vendor OUI to pass through. All other packets, including authentication packets such as 802.1x authentication packets, will be dropped. Therefore, you are recommended not to transmit both voice data and service data in the voice VLAN.