Step
3.
Configure the link type of the
port as hybrid.
4.
Assign the port to the original
VLANs.
5.
Assign the port to the
translated outer VLANs as an
untagged member.
6.
Configure a one-to-two VLAN
mapping.
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
VLANs to communicate at Layer 2 across two service provider networks that use different VLAN
assignment schemes.
Before configuring two-to-two VLAN mapping, create the original VLANs and the translated VLANs.
To configure two-to-two VLAN mapping:
Step
1.
Enter system view.
2.
Enter Layer 2 Ethernet
interface view or Layer 2
aggregate interface view.
3.
Set the port link type.
4.
Assign the port to the original
VLANs and the translated
VLANs.
5.
Configure a two-to-two VLAN
mapping.
Command
port link-type hybrid
port hybrid vlan vlan-id-list { tagged |
untagged }
port hybrid vlan vlan-id-list untagged
vlan mapping nest { range
vlan-range-list | single vlan-id-list }
nested-vlan vlan-id
Figure
56. Two-to-two VLAN mapping enables two sites in different
Command
system-view
•
Enter Layer 2 Ethernet interface
view:
interface interface-type
interface-number
•
Enter Layer 2 aggregate interface
view:
interface bridge-aggregation
interface-number
•
Configure the port as a trunk port:
port link-type trunk
•
Configure the port as a hybrid
port:
port link-type hybrid
•
port trunk permit vlan vlan-id-list
•
port hybrid vlan vlan-id-list tagged
vlan mapping tunnel outer-vlan-id
inner-vlan-id translated-vlan
outer-vlan-id inner-vlan-id
213
Remarks
By default, the link type of a
port is access.
By default, a hybrid port is an
untagged member of VLAN 1.
By default, a hybrid port is an
untagged member of VLAN 1.
By default, VLAN mapping is
not configured on an interface.
Remarks
N/A
N/A
By default, the link type of a
port is access.
By default, a trunk port is
assigned only to VLAN 1, and
a hybrid port is an untagged
member of VLAN 1.
By default, VLAN mapping is
not configured on an interface.