Step
1.
Enter system view.
2.
Enter Layer 2 Ethernet
interface view or Layer 2
aggregate interface view.
Configure the link type of the
3.
port.
4.
Assign the port to all SVLANs.
Configuring one-to-two VLAN mapping
Perform one-to-two VLAN mapping on the edge devices from which customer traffic enters SP networks,
on PE 1 and PE 4 in
insert an outer VLAN tag to each incoming packet.
Perform these tasks to configure one-to-two VLAN mapping:
Task
Configuring an uplink policy
Configuring the customer-side port
Configuring the network-side port
Configuration prerequisites
Create VLANs, and plan CVLAN-to-SVLAN mappings.
Configuring an uplink policy
To configure an uplink policy to insert an SVLAN to VLAN tagged packets:
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
•
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
Figure 57
for example. One-to-two VLAN mapping enables the edge devices to
Description
Configures an uplink policy for the customer-side port (required).
Configures VLAN and other settings required for one-to-two VLAN
mapping (required).
Configures VLAN and other settings required for one-to-two VLAN
mapping (required).
181
Remarks
N/A
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.