Configure the Encapsulation Type
The encapsulation type you configure at each Layer 2 VPN site varies depending on which Layer 2 protocol you choose to configure. You need to use the same protocol at each Layer 2 VPN site if you configure
ethernet-vlanas the encapsulation type. You do not need to use the same protocol at each Layer 2 VPN site if you configure any of the following encapsulation types:
atm-aal5—ATM Adaptation Layer (AAL/5)atm-cell—ATM cellcisco-hdlc—Cisco Systems-compatible High-level Data Link Control (HDLC)ethernet—Ethernetethernet-vlan—Ethernet VLANframe-relay—Frame Relayinterworking—Layer 2.5 interworking VPNppp—Point-to-Point Protocol (PPP)Note that if you configure different protocols at your Layer 2 VPN sites, you need to configure a TCC encapsulation type. For more information, see Configure TCC Encapsulation on Interfaces.
To configure the Layer 2 protocol accepted by the PE router, specify the encapsulation type by including the
encapsulationstatement at the[edit routing-instancesrouting-instance-nameprotocols l2vpn]hierarchy level:[edit routing-instancesrouting-instance-nameprotocols l2vpn]encapsulationtype