# l2vpn encapsulation-type

#### Syntax

l2vpn l2VpnName encapsulation-type { atm-aal5-vcc | atm-vcc-cell | cisco-hdlc |
ethernet | frame-relay | ppp | vlan }

no l2vpn l2VpnName

#### Release Information

Command introduced in JunosE Release 8.1.0.

#### Description

Creates a VPWS L2VPN instance and configures the encapsulation type for interfaces in that VPWS instance. The no version removes the VPWS instance.

#### Options

- l2VpnName—Name of the VPWS instance
- atm-aal5-vcc—Specifies ATM AAL5 VCC encapsulation
- atm-vcc-cell—Specifies ATM VCC Cell encapsulation
- cisco-hdlc—Specifies Cisco HDLC encapsulation
- ethernet—Specifies Ethernet encapsulation
- frame-relay—Specifies Frame-Relay encapsulation
- ppp—Specifies PPP encapsulation
- vlan—Specifies VLAN encapsulation

#### Mode

Global Configuration

#### Related Topics

- Configuring an L2VPN Instance in the JunosE BGP and MPLS Configuration Guide