Consider the VPLS network shown in Figure 8.
Figure 8: VLAN Tags and VPLS Labels

The L2 PE routers are MX-series routers. Each site is connected to two P routers for redundancy, although both links are only shown for L2-PE1 at Site 1. Site 1 is connected to P0 and P1, Site 2 is connected to P0 and P2 (not shown), Site 3 is connected to P2 and P3, and Site 4 is connected to P1 and P3. VPLS pseudowires configured on the PE and P routers carry traffic between the sites.
The pseudowires for the VPLS instances are shown with distinct dashed and dotted lines. The VLANs at each site are:
Service provider SP-1 is providing VPLS services for customer C1 and C2. L2-PE1 is configured with a VPLS instance called customer-c1-vsi. The VPLS instance sets up pseudowires to remote Site 2 and Site 3. L2-PE1 is also configured with a VPLS instance called customer-c2-vsi. The VPLS instance sets up a pseudowire to remote Site 4.
The following is the configuration of interfaces, virtual switches, and bridge domains for MX-series router L2-PE1:
- [edit]
- interfaces ge-1/0/0 {
- encapsulation flexible-ethernet-services;
- flexible-vlan-tagging;
-
- unit 1 {
- encapsulation vlan-vpls;
- vlan-id 100;
- }
-
- unit 11 {
- encapsulation vlan-vpls;
- vlan-id 301;
- }
- }
- interfaces ge-2/0/0 {
- encapsulation flexible-ethernet-services;
- flexible-vlan-tagging;
-
- unit 1 {
- encapsulation vlan-vpls;
- vlan-id 100;
- }
- }
- interfaces ge-3/0/0 {
- encapsulation flexible-ethernet-services;
- flexible-vlan-tagging;
-
- unit 1 {
- encapsulation vlan-vpls;
- vlan-id 200; # Should be translated to normalized VLAN
value
- }
- }
- interfaces ge-6/0/0 {
- encapsulation flexible-ethernet-services;
- flexible-vlan-tagging;
-
- unit 11 {
- encapsulation vlan-vpls;
- vlan-id 302;
- }
- }
- routing-instances {
-
- customer-c1-vsi {
- instance-type vpls;
- vlan-id 100;
- interface ge-1/0/0.1;
- interface ge-2/0/0.1;
- interface ge-3/0/0.1;
- } # End of customer-c1-vsi
-
- customer-c2-vsi {
- instance-type vpls;
- vlan-id none; # This will remove the VLAN tags from packets
sent on VPLS for customer 2
- interface ge-1/0/0.11;
- interface ge-6/0/0.11;
- } # End of customer-c2-vsi
- } # End of routing-instances
Consider the first VLAN for customer C1. The vlan-id 100 statement in the VPLS instance called customer-c1-vsi sets the normalized VLAN to 100. All packets sent over the pseudowires have a VLAN tag of 100.
The following happens on VLAN 100 as a result of this configuration:
Now consider the second VLAN for Customer C2. The vlan-id none statement in the VPLS instance called customer-c2-vsi removes the incoming VLAN tags before the packets are sent over the VPLS pseudowires.
The following happens on the C2 VLAN as a result of the vlan-id none configuration:
![]() |
Note: The packet can still contain other customer VLAN tags. |