208
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Create a class and enter class
view.
traffic classifier
tcl-name
[
operator
{
and
|
or
} ]
Repeat these steps to configure
one class for each SVLAN.
3.
Configure an SVLAN as the
match criterion.
if-match service-vlan-id
vlan-id
4.
Return to system view.
quit
5.
Create a traffic behavior and
enter traffic behavior view.
traffic behavior
behavior-name
Repeat these steps to configure
a behavior for each CVLAN.
6.
Configure a CVLAN marking
action.
remark customer-vlan-id
vlan-id
7.
Return to system view.
quit
8.
Create a QoS policy and
enter QoS policy view.
qos policy
policy-name
N/A
9.
Associate the class with the
behavior to map the SVLAN
to the CVLAN.
classifier
tcl-name
behavior
behavior-name
Repeat this step to create other
CVLAN-to-SVLAN mappings.
Configuring the customer-side port
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enter interface view or port
group view.
•
Enter Layer 2 Ethernet interface
view:
interface
interface-type
interface-number
•
Enter port group view:
port-group manual
port-group-name
N/A
3.
Configure the link type of the
port.
•
Configure the port as a trunk
port:
port link-type
trunk
•
Configure the port as a hybrid
port:
port link-type hybrid
Use one of the commands.
The default link type of an Ethernet
port is access.
4.
Assign the port to all CVLANs
and SVLANs.
•
Assign the trunk port to VLANs:
port trunk permit vlan
{
vlan-list
|
all
}
•
Assign the hybrid port to VLANs
as a tagged member:
port hybrid
vlan
vlan-list
tagged
Use one of the commands.
By default:
•
A trunk port is assigned only to
VLAN 1.
•
A hybrid port is an untagged
member of VLAN 1.
5.
Enable basic QinQ.
qinq enable
By default, basic QinQ is disabled.
6.
Apply the uplink policy to
incoming traffic.
qos apply policy
policy-name
inbound
N/A
7.
Apply the downlink policy to
outgoing traffic.
qos apply policy
policy-name
outbound
N/A