![H3C S3600V2 SERIES Layer 2-Lan Switching Configuration Manual Download Page 182](http://html2.mh-extra.com/html/h3c/s3600v2-series/s3600v2-series_layer-2-lan-switching-configuration-manual_3654240182.webp)
167
Figure 55
Network diagram
Configuration procedure
# Create VLAN 2 and VLAN 3.
<DeviceA> system-view
[DeviceA] vlan 2 to 3
Please wait... Done.
# Set the voice VLAN aging time to 30 minutes.
[DeviceA] voice vlan aging 30
# Since Ethernet 1/0/1 might receive both voice traffic and data traffic at the same time, to ensure the
quality of voice packets and effective bandwidth use, configure voice VLANs to operate in security mode.
Configure the voice VLANs to transmit only voice packets. By default, voice VLANs operate in security
mode. (Optional)
[DeviceA] voice vlan security enable
# Configure the allowed OUI addresses as MAC addresses prefixed by 0011-1100-0000 or
0011-2200-0000. In this way, Device A identifies packets whose MAC addresses match any of the
configured OUI addresses as voice packets.
[DeviceA] voice vlan mac-address 0011-1100-0001 mask ffff-ff00-0000 description IP phone
A
[DeviceA] voice vlan mac-address 0011-2200-0001 mask ffff-ff00-0000 description IP phone
B
# Configure Ethernet 1/0/1 as a hybrid port.
[DeviceA] interface ethernet 1/0/1
[DeviceA-Ethernet1/0/1] port link-type hybrid
# Configure Ethernet 1/0/1 to operate in automatic voice VLAN assignment mode. By default, a port
operates in automatic voice VLAN assignment mode. (Optional)
[DeviceA-Ethernet1/0/1] voice vlan mode auto
# Configure VLAN 2 as the voice VLAN for Ethernet 1/0/1.
[DeviceA-Ethernet1/0/1] voice vlan 2 enable
[DeviceA-Ethernet1/0/1] quit
# Configure Ethernet 1/0/2.
[DeviceA] interface ethernet 1/0/2
[DeviceA-Ethernet1/0/2] port link-type hybrid