Step
2.
Enter Layer 2 Ethernet
interface view or Layer 2
aggregate interface view.
3.
Configure the link type of the
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
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.
Perform these tasks to configure two-to-two VLAN mapping:
Task
Configuring an uplink policy for the
customer-side port
Configuring an uplink policy for the
network-side port
Configuring a downlink policy for the
customer-side port
Configuring the customer-side port
Command
•
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
•
Assign the trunk port to VLANs:
port trunk permit vlan { vlan-list
| all }
•
Assign the hybrid port to VLANs
as a tagged member:
port hybrid vlan vlan-list
tagged
57. Two-to-two VLAN mapping enables two remote sites in different VLANs to
Description
Required
Replace foreign SVLANs with local SVLANs for uplink traffic.
Required
Replace foreign CVLANs with local CVLANs for uplink traffic.
Required
Replace local SVLANs and CVLANs with foreign SVLANs and
CVLANs.
Required
Configure VLAN and other settings required for two-to-two VLAN
mapping.
183
Remarks
N/A
Use one of the commands.
The default link type of an Ethernet
port is access.
Use one of the commands.
By default:
•
A trunk port is assigned only to
VLAN 1.
•
A hybrid port is an untagged
member of VLAN 1.