- Table of Contents
-
- H3C Low-End and Mid-Range Ethernet Switches Configuration Examples(V1.01)
- 00-1Cover
- 01-Login Configuration Guide
- 02-VLAN Configuration Guide
- 03-GVRP Configuration Guide
- 04-Voice VLAN Configuration Guide
- 05-IP Addressing and Performance Configuration Guide
- 06-QinQ Configuration Guide
- 07-BPDU Tunnel Configuration Guide
- 08-VLAN Mapping Configuration Guide
- 09-MAC Address Table Management Configuration Guide
- 10-Link Aggregation Configuration Guide
- 11-IP Source Guard Configuration Guide
- 12-DLDP Configuration Guide
- 13-MSTP Configuration Guide
- 14-IPv4 Routing Configuration Guide
- 15-IPv6 Configuration Guide
- 16-IPv6 Routing Configuration Guide
- 17-IPv4 Multicast Configuration Guide
- 18-IPv6 Multicast Configuration Examples
- 19-802.1x Configuration Guide
- 20-AAA Configuration Guide
- 21-MAC Authentication Configuration Guide
- 22-Portal Configuration Guide
- 23-ARP Configuration Guide
- 24-DHCP Configuration Guide
- 25-ACL Configuration Guide
- 26-QoS Configuration Guide
- 27-Port Mirroring Configuration Guide
- 28-Cluster Management Configuration Guide
- 29-SNMP-RMON Configuration Guide
- 30-NTP Configuration Guide
- 31-FTP-TFTP Configuration Guide
- 32-UDP Helper Configuration Guide
- 33-Information Center Configuration Guide
- 34-DNS Configuration Guide
- 35-File System Management Configuration Guide
- 36-Remote Upgrade Configuration Guide
- 37-NQA Configuration Guide
- 38-VRRP Configuration Guide
- 39-SSH Configuration Guide
- 40-Port Security Configuration Guide
- 41-Port Isolation Configuration Guide
- 42-LLDP Configuration Guide
- 43-MCE Configuration Guide
- 44-PoE Configuration Guide
- 45-OAM Configuration Guide
- 46-Connectivity Fault Detection Configuration Guide
- 47-RRPP Configuration Guide
- 48-sFlow Configuration Guide
- 49-SSL-HTTPS Configuration Guide
- 50-PKI Configuration Guide
- 51-Track Configuration Guide
- 52-EPON-OLT Configuration Guide
- 53-Smart Link Configuration Guide
- 54-MPLS Configuration Guide
- Related Documents
-
04-Voice VLAN Configuration Guide
Configuring Voice VLAN
The voice VLAN feature is provided to separate voice traffic from data traffic and assign higher priority to voice traffic, thus decreasing voice transmission delay and jitter.
You can assign or remove a port to or from the voice VLAN manually or have the switch do that dynamically by configuring the automatic voice VLAN assignment mode on the port.
On a port configured with the automatic voice VLAN assignment mode, the switch automatically assigns the port to the voice VLAN when receiving a packet with the source MAC address matching a recognizable voice device vendor OUI. As soon as the port is assigned to the voice VLAN, an aging timer starts. If no recognizable voice traffic has been received before the timer expires, the port is removed from the voice VLAN.
Network Diagram
Figure 1-1 Network diagram for automatic voice VLAN assignment configuration
Networking and Configuration Requirements
As shown in Figure 1-1_Ref166924823, PC is connected to GigabitEthernet 1/0/1 of Switch A through IP phone 1, and IP phone 2 is connected to GigabitEthernet 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 Configure VLAN 2 as the voice VLAN, and set the aging time of the voice VLAN to 100 minutes. Use VLAN 6 to transmit user service data.
l GigabitEthernet 1/0/1 and GigabitEthernet 1/0/2 can recognize voice traffic automatically. Service data from PC and voice traffic are assigned to different VLANs and then transmitted to the server and the voice gateway respectively through Switch B.
Applicable Product Matrix
Product Series |
Software Version |
Hardware Version |
S3610 series Ethernet switches |
Release 5301, Release 5303 |
All versions |
S5510 series Ethernet switches |
Release 5301, Release 5303 |
All versions |
S5510-SI series Ethernet switches |
Release 1207 |
All versions except S5500-20TP-SI |
Release 1301 |
S5500-20TP-SI |
|
S5510-EI series Ethernet switches |
Release 2102 |
All versions |
S7500E series Ethernet switches |
Release 6100, Release 6300 |
All versions |
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 time for the voice VLAN.
[SwitchA] voice vlan aging 100
# Add 000f-e200-0000 to the OUI address list and configure its description as IP Phone1.
[SwitchA] voice vlan mac-address 000f-e200-0000 mask ffff-ff00-0000 description IP Phone1
# Add 000f-2200-0000 to the 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.
[SwitchA] voice vlan 2 enable
# Configure the automatic voice VLAN assignment mode on Ethernet 1/0/1. This step is optional, because the mode is enabled by default.
[SwitchA] interface GigabitEthernet 1/0/1
[SwitchA-GigabitEthernet1/0/1] voice vlan mode auto
# Configure Ethernet 1/0/1 as a trunk port.
[SwitchA-GigabitEthernet1/0/1] port link-type trunk
# Configure 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-GigabitEthernet1/0/1] port trunk pvid vlan 6
[SwitchA-GigabitEthernet1/0/1] port trunk permit vlan 6
# Enable voice VLAN on GigabitEthernet 1/0/1.
[SwitchA-GigabitEthernet1/0/1] voice vlan enable
l After the configuration is completed, PC data will be assigned to VLAN 6 (the data VLAN) on GigabitEthernet 1/0/1 for transmission. When IP phone traffic arrives at GigabitEthernet 1/0/1, the port automatically joins the voice VLAN and transmits the voice traffic with the voice VLAN tag, so that IP phone 1 can receive packets normally.
l GigabitEthernet 1/0/1 can be a hybrid port. In this case, you can follow the same configuration procedure except that you should set the data VLAN as the default VLAN. 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 GigabitEthernet 1/0/2 to manual. The manual mode must be adopted because the voice traffic from IP phone 2 is untagged.
[SwitchA-GigabitEthernet1/0/1] quit
[SwitchA] interface GigabitEthernet 1/0/2
[SwitchA-GigabitEthernet1/0/2] undo voice vlan mode auto
# Configure GigabitEthernet 1/0/2 to be an access port and assign it to the voice VLAN.
[SwitchA-GigabitEthernet1/0/2] port access vlan 2
# Enable voice VLAN on GigabitEthernet 1/0/2.
[SwitchA-GigabitEthernet1/0/2] voice vlan enable
l You can set GigabitEthernet 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 GigabitEthernet 1/0/2 as a trunk or hybrid port and send the packets of VLAN 2 with the VLAN tag.
Complete Configuration
#
vlan 1 to 2
#
vlan 6
#
interface GigabitEthernet1/0/1
port link-type trunk
port trunk permit vlan 1 6
port trunk pvid vlan 6
voice vlan enable
#
interface GigabitEthernet1/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 mac-address 000f-e200-0000 mask ffff-ff00-0000 description IP Phone1
voice vlan 2 enable
Configuration Guidelines
By default, the system maintains the OUI list shown in Table 1-1. You can remove or modify these pre-defined OUI addresses as needed.
Table 1-1 Default OUI addresses preconfigured on the switch
No. |
OUI Address |
Vendor |
1 |
0001-e300-0000 |
Siemens phones |
2 |
0003-6b00-0000 |
Cisco phones |
3 |
0004-0d00-0000 |
Avaya phones |
4 |
00d0-1e00-0000 |
Pingtel phones |
5 |
0060-b900-0000 |
Philips/NEC phones |
6 |
00e0-7500-0000 |
Polycom phones |
7 |
00e0-bb00-0000 |
3com phones |
l To use a VLAN as a protocol VLAN and the voice VLAN at the same time, ensure that the voice VLAN assignment mode on the port to be associated with the protocol VLAN is not automatic mode. In automatic mode, the port cannot be assigned to the voice VLAN manually and thus can cause your attempt to associate the protocol VLAN with the port to fail.
l You cannot set the voice VLAN as the default VLAN on a port in automatic voice VLAN assignment mode.
l The switch supports only one voice VLAN.
l Only a static VLAN can be configured as the voice VLAN.
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 discouraged to transmit both voice and data in the voice VLAN at the same time. If that is needed, disable the security mode of the voice VLAN first.