211Step Command Remarks4. Return to system view. quit5. Create a traffic behavior andenter traffic behavior view. traffic behavior behavior-nameRepeat these steps to configure onebehavior for each SVLAN.6. Configure an SVLANmarking action. remark service-vlan-id vlan-id7. Return to system view. quit8. Create a QoS policy andenter QoS policy view. qos policy policy-name N/A9. Map the CVLANs to theSVLAN by associating theclass with the behavior.classifier tcl-name behaviorbehavior-name modedot1q-tag-manipulationRepeat this step to create otherCVLANs-to-SVLAN mappings.Configuring the customer-side portCAUTION:Before applying a QoS policy to the customer-side port, enable customer-side QinQ on the port. Beforedisabling customer-side QinQ on the customer-side port, remove the QoS policy from the port first.To configure the customer-side port:Step Command Remarks1. Enter system view. system-view N/A2. Enter interface view or portgroup view.• Enter Layer 2 Ethernet interfaceview:interface interface-typeinterface-number• Enter port group view:port-group manualport-group-nameN/A3. Configure the link type of theport.• Configure the port as a trunkport:port link-type trunk• Configure the port as a hybridport:port link-type hybridUse one of the commands.The default link type of an Ethernetport is access.4. Assign the port to all CVLANsand SVLANs.• Assign the trunk port to VLANs:port trunk permit vlan { vlan-list| all }• Assign the hybrid port to VLANsas a tagged member:port hybrid vlan vlan-listtaggedUse one of the commands.By default:• A trunk port is assigned only toVLAN 1.• A hybrid port is an untaggedmember of VLAN 1.5. Enable customer-side QinQ. qinq enable downlink By default, customer-side QinQ isdisabled on all ports.6. Apply the uplink policy toincoming traffic.qos apply policy policy-nameinbound N/A