Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Layer 2 Circuit

Juniper-Cloud Native Router supports Layer 2 circuits over an IP/MPLS-based service provider's network. This topic provides configuration and verification details.

Juniper Cloud-Native Router supports Layer 2 circuits for a point-to-point Layer 2 connection over an IP/MPLS-based service provider's network. To establish the Layer 2 circuit, it uses Label Distribution Protocol (LDP) as the signaling protocol to advertise the ingress label to the remote PE routers. A targeted LDP session is established between the loopback addresses of the two PEs to exchange VPN labels. For more information on L2 circuits, please review Layer 2 Circuit Overview.

The following Layer-2 circuit features are supported by the Cloud-Native Router:

  • Enable l2circuit protocol on Physical (PF/VF), VLAN sub-interface, bond interface (towards core), and pod interfaces

  • Ethernet CCC encapsulations— ethernet-ccc and vlan-ccc
  • Local interface switching

  • Control word

  • Protect Interface for CE redundancy

  • Backup Neighbor for Core redundancy
  • Pseudowire cold and hot-standby

  • Support L2 circuit with BGP-Labeled Unicast (BGP-LU)

  • Support for dual VLAN tagging

  • Interoperability with other Junos devices

Configuration

You can configure Layer 2 circuits in Juniper Cloud-Native Router using configlets. Multiple configlet samples are provided in this section based on the following topology:

For Layer 2 circuit configuration, you configure the Ethernet-based CE-facing interface with the CCC encapsulation type of your choice—ethernet-ccc or vlan-ccc. The Layer 2 circuit configuration such as the remote PE neighbour (usually the loopback address), the interface connected to the CE-router, and a virtual circuit identifier for the virtual circuit (VC) is performed under the edit protocols l2circuit statement. Eventually, you configure MPLS, LDP and an IGP to enable signaling for your Layer 2 circuit. Please review Example: Enternet-based Layer 2 Circuit Configuration for a end-to-end Junos configuration example.

Layer 2 Circuit with ethernet-ccc

Configure Ethernet CCC encapsulation on CE-facing Ethernet interfaces on PE-1 (JCNR) that must accept packets carrying standard Tag Protocol ID (TPID) values.

Layer 2 Circuits with vlan-ccc

Configure VLAN CCC encapsulation on CE-facing Ethernet interfaces on PE-1 (JCNR) with VLAN tagging enabled.

Layer 2 Circuit with Local Switching

You can configure Layer 2 circuit with local switching. Optionally, configure protect-interface for local or remote end to ensure traffic switch over when the primary interface goes down. Protect interfaces act as backups for their associated interfaces that link a virtual circuit to its destination. The primary interface has priority over the protect interface and carries network traffic as long as it is functional. If the primary interface fails, the protect interface is activated. Optionally, configure no-revert to prevent switch back to primary when primary interface is back up.

Layer 2 Circuit with Ignore Mismatch

You can configure the Layer 2 circuit to establish even though the MTU (ignore-mtu-mismatch), encapsulation (ignore-encapsulation-mismatch) or VLAN ID (no-vlan-id-validate) configured on the CE device interface does not match the setting configured on the Layer 2 circuit interface.

Static Layer 2 Circuits

Configure static Layer 2 circuit pseudowires for networks that do not support LDP or do not have LDP enabled. Static pseudowires require you to configure static values for the in and out labels that enable a pseudowire connection.

Layer 2 Circuit with BGP-LU

Enable Layer 2 circuit over BGP-Labeled Unicast (BGP-LU). BGP-LU advertises the ingress label to its peer PE routers.

Configuring via JCNR-CNI (Pod Configuration)

When using the Cloud-Native Router in CNI mode, you can configure cRPD with layer 2 circuit configuration using the JCNR-CNI. Here is an example pod configuration:

Verification

You can verify the Layer 2 circuit configuration and statistics on the cRPD shell and vRouter shell.

Verify L2 circuit Connections

Display status information about Layer 2 virtual circuits from the Cloud-Native Router to its neighbors using show l2circuit connections command on the cRPD.

Verify the LDP sessions

Display information about LDP sessions using the show ldp session command on the cRPD.

Verify LDP Database

Verify vRouter Interfaces

Verify the vRouter interfaces for CE-facing interfaces.

Verify Interface Rate Statistics

Verify the interface statistics inclusing received and transmitted packets and errors.

Verify Routes and Nexthops

Verify the routes and nexthops for interfaces with Ethernet CCC encapsulation enabled.