Procedure
Step 1 Create VLANs and configure interfaces on the Router.
# Create VLAN 2 and VLAN 6.
<Huawei> system-view
[Huawei] vlan batch 2 6
# Configure the link type and default VLAN of Ethernet2/0/1.
[Huawei] interface ethernet 2/0/1
[Huawei-Ethernet2/0/1] port hybrid pvid vlan 6
[Huawei-Ethernet2/0/1] port hybrid untagged vlan 6
[Huawei-Ethernet2/0/1] quit
# Create VLANIF 2 and assign IP address 192.168.2.1/24 to VLANIF 2.
[Huawei] interface vlanif 2
[Huawei-Vlanif2] ip address 192.168.2.1 24
[Huawei-Vlanif2] quit
# Assign IP address 192.168.4.1/24 to GE3/0/0.
[Huawei] interface gigabitethernet 3/0/0
[Huawei-GigabitEthernet3/0/0] ip address 192.168.4.1 24
[Huawei-GigabitEthernet3/0/0] quit
Step 2 Configure the voice VLAN on the Router.
# Enable the voice VLAN on Ethernet2/0/1.
[Huawei] interface ethernet 2/0/1
[Huawei-Ethernet2/0/1] voice-vlan 2 enable
# Configure the mode in which Ethernet2/0/1 is added to the voice VLAN.
[Huawei-Ethernet2/0/1] voice-vlan mode manual
[Huawei-Ethernet2/0/1] port hybrid tagged vlan 2
[Huawei-Ethernet2/0/1] quit
# Configure the OUI of the voice VLAN.
[Huawei] voice-vlan mac-address 0011-2200-0000 mask ffff-ff00-0000
# Configure the working mode of the voice VLAN.
[Huawei] interface ethernet 2/0/1
[Huawei-Ethernet2/0/1] voice-vlan security enable
Step 3 Configure a traffic policy and apply it to the inbound interface of voice data packets.
# Configure traffic classifier c1 on the Router.
[Huawei] traffic classifier c1 operator and
[Huawei-classifier-c1] if-match source-mac 0011-2200-0000 mac-address-mask ffff-
ff00-0000
[Huawei-classifier-c1] if-match vlan-id 2
[Huawei-classifier-c1] quit
# Configure traffic behavior b1 on the Router to re-mark the priority of voice data packets.
[Huawei] traffic behavior b1
[Huawei-behavior-b1] remark dscp 46
[Huawei-behavior-b1] quit
# Create traffic policy p1 on the Router, bind the traffic behavior and traffic classifier to the
traffic policy, and apply the traffic policy to the inbound direction of Ethernet2/0/1.
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.
138