l Voice VLAN aging time: 100 minutes
l Default VLAN of Ethernet2/0/1: VLAN 6
l IP address of the WAN-side interface: 192.168.4.1/24
l Re-marked DSCP priority for voice data packets with the source MAC address
0011-2200-0000 or VLAN ID 2: 46
l Type and number of the interface and direction to which the traffic policy is applied:
inbound direction of Ethernet2/0/1 on the Router
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 auto
[Huawei-Ethernet2/0/1] quit
# Configure the OUI of the voice VLAN.
[Huawei] voice-vlan mac-address 0011-2200-0000 mask ffff-ff00-0000
# Set the voice VLAN aging time.
[Huawei] voice-vlan aging-time 100
# Configure the working mode of the voice VLAN.
[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-
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.
134