Configuring the customer-side port
To configure the customer-side port:
To do...
1.
Enter system view
2.
Enter Ethernet interface view
3.
Configure the port as a hybrid port
4.
Assign the port to the SVLANs as an
untagged member
5.
Enable basic QinQ
6.
Apply the uplink policy to the
incoming traffic
Configuring the network-side port
To configure the network-side port:
To do...
1.
Enter system view
2.
Enter Ethernet interface view
3.
Configure the port as a trunk port
4.
Assign the port to all SVLANs
Configuring two-to-two VLAN mapping
Perform two-to-two VLAN mapping on an edge device that connects two SP networks, for example, on PE
3 in
Figure
67. Two-to-two VLAN mapping enables two remote sites in different VLANs to communicate at
Layer 2 across two service provider networks that use different VLAN assignment schemes.
For the ease of description, the VLAN tags of the double-tagged frames that arrive at the customer-side
port are called foreign CVLANs and SVLANs, and the VLAN tags marked by the edge device are called
local CVLANs and SVLANs.
Use the command...
system-view
interface interface-type
interface-number
port link-type hybrid
port hybrid vlan vlan-id-list
untagged
qinq enable
qos apply policy policy-name
inbound
Use the command...
system-view
interface interface-type
interface-number
port link-type trunk
port trunk permit vlan { vlan-id-list
| all }
187
Remarks
—
—
Required.
The default link type of an
Ethernet port is access.
Required.
By default, a hybrid port is
in only VLAN 1.
Required.
By default, basic QinQ is
disabled on all ports.
Required.
Remarks
—
—
Required.
The default link type of an
Ethernet port is access.
Required.
By default, a trunk port is
in only VLAN 1.