155
Step Command
Remarks
aggregate interface view.
interface-number
•
Enter Layer 2 aggregate
interface view:
interface bridge-aggregation
interface-number
3.
Set the port link type.
•
Set the port link type to trunk:
port link-type trunk
•
Set the port link type to hybrid:
port link-type hybrid
By default, the link type of a
port is
access
.
4.
Assign the port to the SVLAN.
•
Assign the trunk port to the
SVLAN:
port trunk permit vlan
vlan-id-list
•
Assign the hybrid port to the
SVLAN as a tagged member:
port hybrid vlan vlan-id-list
tagged
Do not configure the SVLAN
as the PVID of the trunk port.
5.
Configure a zero-to-two
VLAN mapping.
vlan mapping untagged
nested-outer-vlan outer-vlan-id
nested-inner-vlan
inner-vlan-id
By default, no VLAN mapping
is configured on an interface.
Configuring two-to-two VLAN mapping
Configure two-to-two VLAN mapping on the customer-side port of an edge device that connects two
SP networks, for example, on PE 3 in
. Two-to-two VLAN mapping enables two sites in
different VLANs to communicate at Layer 2 across two service provider networks that use different
VLAN assignment schemes.
Before you configure two-to-two VLAN mapping, create the original VLANs and the translated
VLANs.
To configure two-to-two VLAN mapping:
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enter Layer 2 Ethernet
interface view or Layer 2
aggregate interface view.
•
Enter Layer 2 Ethernet interface
view:
interface interface-type
interface-number
•
Enter Layer 2 aggregate
interface view:
interface bridge-aggregation
interface-number
N/A
3.
Set the link type of the port.
•
Set the port link type to trunk:
port link-type trunk
•
Set the port link type to hybrid:
port link-type hybrid
By default, the link type of a
port is
access
.
4.
Assign the port to the original
VLANs and the translated
VLANs.
•
For the trunk port:
port trunk permit vlan
vlan-id-list
•
For the hybrid port:
port hybrid vlan vlan-id-list
tagged
N/A
5.
Configure a two-to-two VLAN
vlan mapping tunnel outer-vlan-id
By default, no VLAN mapping