Configuring VPLS Interface Encapsulation
You need to specify an encapsulation type for each PE-router-to-CE-router interface configured for VPLS. This section describes the encapsulation statement configuration options available for VPLS. For a complete description of all of the options available for this statement, see the Junos® OS Network Interfaces.
Tvo configure the encapsulation type on the physical interface, include the encapsulation statement:
You can include the encapsulation statement for physical interfaces at the following hierarchy levels:
- [edit interfaces interface-name]
- [edit logical-systems logical-system-name interfaces interface-name]
You can configure the following physical interface encapsulations for VPLS routing instances:
- ethernet-vpls—Use Ethernet VPLS encapsulation
on Ethernet interfaces that have VLAN 802.1Q tagging and VPLS enabled.
The PE router expects to receive Ethernet frames with VLAN tags that
are not service-delimiting. The Ethernet frames are not meaningful
to the PE router and cannot be used by the service provider to separate
customer traffic.
On M Series routers (except the M320 router), the 4-port Fast Ethernet TX PIC and the 1-port, 2-port, and 4-port, 4-slot Gigabit Ethernet PICs can use the Ethernet VPLS encapsulation type.
- ether-vpls-over-atm-llc—For ATM intelligent queuing (IQ) interfaces only, use the Ethernet virtual private LAN service (VPLS) over ATM LLC encapsulation to bridge Ethernet interfaces and ATM interfaces over a VPLS routing instance (as described in RFC 2684, Multiprotocol Encapsulation over ATM Adaptation Layer 5). Packets from the ATM interfaces are converted to standard ENET2/802.3 encapsulated Ethernet frames with the frame check sequence (FCS) field removed.
- extended-vlan-vpls—Use extended virtual
LAN (VLAN) VPLS encapsulation on Ethernet interfaces that have VLAN
802.1Q tagging and VPLS enabled and that must accept packets
carrying TPIDs 0x8100, 0x9100, and 0x9901. On M Series routers
(except the M320 router), the 4-port Fast Ethernet TX PIC and the
1-port, 2-port, and 4-port, 4-slot Gigabit Ethernet PICs can use the
Ethernet VPLS encapsulation type.

Note: The built-in Gigabit Ethernet PIC on an M7i router does not support extended VLAN VPLS encapsulation.
- vlan-vpls—Use VLAN VPLS encapsulation
on Ethernet interfaces with VLAN 802.1Q tagging and VPLS enabled.
The PE router expects to receive Ethernet frames with VLAN tags that
are service-delimiting. These VLAN tags can be used by the service
provider to separate customer traffic. For example, LAN traffic from
different customers can flow through the same service provider switch,
which can then apply VLAN tags to distinguish one customer’s
traffic from the others. The traffic can then be forwarded to the
PE router.
Interfaces with VLAN VPLS encapsulation accept packets carrying standard TPID values only. On M Series routers (except the M320 router), the 4-port Fast Ethernet TX PIC and the 1-port, 2-port, and 4-port, 4-slot Gigabit Ethernet PICs can use the Ethernet VPLS encapsulation type.
To configure the encapsulation type for logical interfaces, include the encapsulation statement:
You can include the encapsulation statement for logical interfaces at the following hierarchy levels:
- [edit interfaces interface-name unit number]
- [edit logical-systems logical-system-name interfaces interface-name unit number]
You can configure the following logical interface encapsulations for VPLS routing instances:
- ether-vpls-over-atm-llc—Use Ethernet VPLS over Asynchronous Transfer Mode (ATM) logical link control (LLC) encapsulation to bridge Ethernet interfaces and ATM interfaces over a VPLS routing instance (as described in RFC 2684, Multiprotocol Encapsulation over ATM Adaptation Layer 5). Packets from the ATM interfaces are converted to standard ENET2/802.3-encapsulated Ethernet frames with the frame check sequence (FCS) field removed. This encapsulation type is supported on ATM intelligent queuing (IQ) interfaces only.
- vlan-vpls—Use VLAN VPLS encapsulation
on Ethernet interfaces with VLAN 802.1Q tagging and VPLS enabled.
The PE router expects to receive Ethernet frames with VLAN tags that
are service-delimiting. These VLAN tags can be used by the service
provider to separate customer traffic. For example, LAN traffic from
different customers can flow through the same service provider switch,
which can then apply VLAN tags to distinguish one customer's traffic
from the others. The traffic can then be forwarded to the PE router.
Interfaces with VLAN VPLS encapsulation accept packets carrying standard TPID values only. On M Series routers (except the M320 router), the 4-port Fast Ethernet TX PIC and the 1-port, 2-port, and 4-port, 4-slot Gigabit Ethernet PICs can use the Ethernet VPLS encapsulation type.

Note: Label-switched interfaces (LSIs) do not support VLAN VPLS encapsulation. Therefore, you can only use VLAN VPLS encapsulation on a PE-router-to-CE-router interface and not a core-facing interface.
When you configure the physical interface encapsulation as vlan-vpls, you also need to configure the same interface encapsulation for the logical interface. You need to configure the vlan-vpls encapsulation on the logical interface because the vlan-vpls encapsulation allows you to configure a mixed mode, where some of the logical interfaces use regular Ethernet encapsulation (the default for logical interfaces) and some use vlan-vpls. For more information, see the Junos® OS Network Interfaces.