153
Tasks at a glance
Remarks
PE 4, as shown in
, through which traffic
from customer networks enters the service provider
networks.
Configuring zero-to-two VLAN mapping
N/A
Configuring two-to-two VLAN mapping
Configure two-to-two VLAN mapping on PE 3, as
shown in
, which is an edge device of the
SP 2 network.
Configuring two-to-three VLAN mapping
N/A
Configuring one-to-one VLAN mapping
Configure one-to-one VLAN mapping on the customer-side ports of wiring-closet switches
(see
) to isolate traffic of the same service type from different homes.
Before you configure one-to-one VLAN mapping, create the original VLAN and the translated VLAN.
To configure one-to-one 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 one-to-one VLAN
mapping.
vlan mapping vlan-id
translated-vlan vlan-id
By default, no VLAN mapping
is configured on an interface.
Configuring one-to-two VLAN mapping
Configure one-to-two VLAN mapping on the customer-side ports of edge devices from which
customer traffic enters SP networks, for example, on PEs 1 and 4 in
. One-to-two VLAN
mapping enables the edge devices to add an SVLAN tag to each incoming packet.
Before you configure one-to-two VLAN mapping, create the CVLAN and the SVLAN.
The MTU of an interface is 1500 bytes by default. After a VLAN tag is added to a packet, the packet
length is added by 4 bytes. As a best practice, set the MTU to a minimum of 1504 bytes for ports on
the forwarding path of the packet in the service provider network.