Task Description
Configuring an uplink policy
Required
Create CVLAN-to-SVLAN mappings.
Configuring the customer-side port
Required
Configure settings required for one-to-one VLAN mapping.
Configuring the network-side port
Required
Configure VLAN settings required for normal communication.
Configuration prerequisites
Create CVLANs and SVLANs, and plan CVLAN-to-SVLAN mappings.
Configuring an uplink policy
Follow these steps to configure an uplink policy to map each CVLAN to a unique SVLAN:
To do... Use the command... Remarks
Enter system view system-view —
Configure a class for a CVLAN
• Create a class and enter class view
traffic classifier tcl-name [ operator { and | or } ]
• Specify a CVLAN as the match criterion
if-match customer-vlan-id vlan-id
Required
Return to system view quit —
Configure a behavior for an
SVLAN
• Create a traffic behavior and enter traffic
behavior view
traffic behavior behavior-name
• Configure an SVLAN marking action
remark service-vlan-id vlan-id
Required
Return to system view quit —
Create a QoS policy and enter
QoS policy view
qos policy policy-name Required
Associate the class with the
behavior to map the CVLAN to the
SVLAN
classifier tcl-name behavior behavior-name Required
Return to system view quit —
Apply the QoS policy to the
incoming traffic of all ports
qos apply policy policy-name global inbound Required
Configuring the customer-side port
Follow these steps to configure the customer-side port:
To do... Use the command... Remarks
Enter system view system-view —
Enter Layer 2 Ethernet interface
view
interface interface-type
interface-number
—
155