1-6
The two approaches can achieve the same result. If two approaches are both used to configure
different outer VLAN tagging policies on the same port, the outer VLAN tagging policy configured in the
QoS policy approach takes effect.
Configuring Selective QinQ Based on Ports
Switch 4800G switches support the configuration of basic QinQ and selective QinQ at the same time on
a port and when the two features are both enabled on the port, frames that meet the selective QinQ
condition are handled with selective QinQ on this port first, and the left frames are handled with basic
QinQ.
Follow these steps to configure an outer VLAN tagging policy:
To do...
Use the command...
Remarks
Enter system view
system-view
—
Enter
Ethernet or
Layer-2
aggregate
interface view
interface interface-type
interface-number
Enter interface
view or port
group view
Enter port
group view
port-group manual
port-group-name
Required
Use either command
Enter QinQ view and configure
the SVLAN tag for the port to add
qinq vid vlan-id
Required
By default, the SVLAN tag to
be added is the default VLAN
tag of the receiving port.
Tag frames of the specified
CVLANs with the current SVLAN
raw-vlan-id inbound
{
all
|
vlan-list
}
Required
z
An inner VLAN tag corresponds to only one outer VLAN tag.
z
If you want to change an outer VLAN tag, you must delete the old outer VLAN tag configuration and
configure a new outer VLAN tag.
Configuring Selective QinQ through QoS Policies
The Switch 4800G series switch support configuring selective QinQ through QoS policies. To
implement adding outer VLAN tags according to inner VLAN tags, you can configure a class to match
packets with the specified inner VLAN tags, configure an outer VLAN tagging behavior, associate the
class with the behavior in a QoS policy, and then apply the QoS policy to the port connecting to users.
Follow these steps to configure an outer VLAN tagging policy though QoS policies:
To do...
Use the command...
Remarks
Enter system view
system-view
—