#
vlan batch 2 6
#
voice-vlan aging-time 100
#
voice-vlan mac-address 0011-2200-0000 mask ffff-ff00-0000
#
traffic classifier c1 operator and
if-match source-mac 0011-2200-0000 mac-address-mask ffff-ff00-0000
if-match vlan-id 2
#
traffic behavior b1
remark dscp 46
#
traffic policy p1
classifier c1 behavior b1
#
interface Vlanif2
ip address 192.168.2.1 255.255.255.0
#
interface Ethernet2/0/1
port hybrid pvid vlan 6
port hybrid untagged vlan 6
voice-vlan 2 enable
traffic-policy p1 inbound
#
interface GigabitEthernet3/0/0
ip address 192.168.4.1 255.255.255.0
#
return
4.4.2 Example for Configuring a Voice VLAN in Manual Mode
In manual voice VLAN mode, an interface must be added to the voice VLAN manually after
the voice VLAN function is enabled on the interface. The interface connected to a voice device
can forward voice data packets only after the interface is added to the voice VLAN manually.
Networking Requirements
Data flows of the HSI, VoIP, and IPTV services are transmitted on the network. Users require
high quality of VoIP services; therefore, voice data flows must be transmitted with a high
priority.
As shown in Figure 4-3, the voice VLAN function is configured on the Router. The Router
determines whether a data packet received by Ethernet2/0/1 is a voice data packet based on the
source MAC address. If the source MAC address matches the OUI, the Router changes the packet
priority and transmits the packet in the voice VLAN. Otherwise, the Router does not change the
packet priority and transmits the packet in a common VLAN. Ethernet2/0/1 connects to the
WAN through GE3/0/0 and needs to be added to or deleted from the voice VLAN manually.
Huawei AR3200 Series Enterprise Routers
Configuration Guide - LAN 4 Voice VLAN Configuration
Issue 02 (2012-03-30) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
136