# Configure a traffic policy.
[Quidway] traffic policy PermitMAC
[Quidway-trafficpolicy-PermitMAC] classifier STB behavior PermitMAC
[Quidway-trafficpolicy-PermitMAC] quit
# Apply the traffic policy in the inbound direction of GE 1/0/0 and GE 2/0/0.
[Quidway] interface gigabitethernet 1/0/0
[Quidway-GigabitEthernet1/0/0] traffic-policy PermitMAC inbound
[Quidway-GigabitEthernet1/0/0] quit
[Quidway] interface gigabitethernet 2/0/0
[Quidway-GigabitEthernet2/0/0] traffic-policy PermitMAC inbound
[Quidway-GigabitEthernet2/0/0] quit
Step 3 Verify the configuration.
The IPTV and Internet access services can be used. STBs obtain IP addresses from ME60-B,
and PCs obtain IP addresses from ME60-A.
----End
Configuration Files
Configuration file of the Switch
#
sysname Quidway
#
vlan batch 10 20
#
acl number 4001
rule 1 permit source-mac 00e0-8e00-0000 ffff-ff00-0000
rule 100 deny
#
traffic classifier STB operator and precedence 5
if-match vlan-id 20
if-match acl 4001
#
traffic behavior PermitMAC
#
traffic policy PermitMAC
classifier STB behavior PermitMAC
#
interface GigabitEthernet1/0/0
port hybrid untagged vlan 10 20
port vlan-stacking vlan 100 to 999 stack-vlan 10
port vlan-stacking vlan 1000 to 1999 stack-vlan 20
traffic-policy PermitMAC inbound
#
interface GigabitEthernet2/0/0
port hybrid untagged vlan 10 20
port vlan-stacking vlan 100 to 999 stack-vlan 10
port vlan-stacking vlan 1000 to 1999 stack-vlan 20
traffic-policy PermitMAC inbound
#
interface GigabitEthernet3/0/0
port hybrid tagged vlan 10
#
interface GigabitEthernet4/0/0
port hybrid tagged vlan 20
#
return
5.12.5 Example for Configuring Flow-based Selective QinQ
Quidway S7700 Smart Routing Switch
Configuration Guide - Ethernet 5 QinQ Configuration
Issue 01 (2011-07-15) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
227