[Huawei] traffic policy p1
[Huawei-trafficpolicy-p1] classifier c1 behavior b1
[Huawei-trafficpolicy-p1] quit
[Huawei] interface ethernet 2/0/1
[Huawei-Ethernet2/0/1] traffic-policy p1 inbound
[Huawei-Ethernet2/0/1] quit
[Huawei] quit
Step 4 Verify the configuration.
Run the display voice-vlan oui command to check whether OUI of the voice VLAN.
<Huawei> display voice-vlan oui
---------------------------------------------------
OuiAddress Mask Description
---------------------------------------------------
0011-2200-0000 ffff-ff00-0000
Run the display voice-vlan 2 status command to check the voice VLAN configuration,
including the status, aging time, and mode in which the interface is added to the voice VLAN.
<Huawei> display voice-vlan 2 status
Voice VLAN Configurations:
---------------------------------------------------
Voice VLAN ID : 2
Voice VLAN status : Enable
Voice VLAN aging time : 1440(minutes)
Voice VLAN 8021p remark : 6
Voice VLAN dscp remark : 46
----------------------------------------------------------
Port Information:
-----------------------------------------------------------
Port Add-Mode Security-Mode Legacy
-----------------------------------------------------------
Ethernet2/0/1 Manual Security Disable
Run the display traffic policy user-defined command to view details about the traffic policy
configuration.
<Huawei> display traffic policy user-defined p1
User Defined Traffic Policy Information:
Policy: p1
Classifier: c1
Operator: AND
Behavior: b1
Marking:
Remark DSCP 46
----End
Configuration Files
Configuration file of the Router
#
vlan batch 2 6
#
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
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.
139