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