Configuring inner VLAN ID substitution
When you configure basic QinQ or an outer VLAN tagging policy for selective QinQ on a port connecting the device to the customer network, basic QinQ or the outer VLAN tagging policy can add outer VLAN tags to packets, but cannot modify the inner VLAN IDs of packets.
To modify the inner VLAN IDs of packets, follow these steps on the port connecting the device to the service provider network:
Configure a class to match the specified inner VLAN IDs and outer VLAN ID of packets.
Configure a behavior to modify the inner VLAN IDs of packets.
Associate the class with the behavior in a QoS policy.
Apply the QoS policy to the outgoing traffic of the port connecting the device to the service provider network.
To configure inner VLAN ID substitution:
Step | Command | Remarks |
---|---|---|
1. Enter system view. | system-view | N/A |
2. Create a class and enter class view. | traffic classifier classifier-name [ operator and ] | By default, the operator of a class is AND. |
3. Configure a match criterion to match the specified inner VLAN IDs. | if-match customer-vlan-id vlan-id-list | N/A |
4. Configure a match criterion to match the specified outer VLAN IDs. | if-match service-vlan-id vlan-id | N/A |
5. Return to system view. | quit | N/A |
6. Create a traffic behavior and enter traffic behavior view. | traffic behavior behavior-name | N/A |
7. Configure the action of marking the inner VLAN IDs. | remark customer-vlan-id vlan-id | N/A |
8. Return to system view. | quit | N/A |
9. Create a QoS policy and enter QoS policy view. | qos policy policy-name | N/A |
10. Associate the traffic class with the traffic behavior defined earlier. | classifier classifier-name behavior behavior-name | N/A |
11. Return to system view. | quit | N/A |
12. Enter Ethernet interface view or port group view of the service provider network-side ports. |
| Use either command. |
13. Apply the QoS policy to the outgoing traffic. | qos apply policy policy-name outbound | N/A |