Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Ethernet Switching User Guide
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

Configuring a Layer 2 Circuit on a VLAN-Bundled Logical Interface

date_range 20-Dec-24

This topic describes how to configure a Layer 2 circuit on a logical interface bound to a list of VLAN IDs.

Configuring a VLAN-Bundled Logical Interface to Support a Layer 2 VPN Routing Instance

To configure a VLAN-bundled logical interface, specify the list of VLAN IDs by including the vlan-id-list statement or the vlan-tags statement:

content_copy zoom_out_map
interfaces {
    ethernet-interface-name {
        vlan-tagging; # Support single- or dual-tag logical interfaces 
        flexible-vlan-tagging; # Support mixed tagging
        encapsulation (extended-vlan-ccc | flexible-ethernet-services);
        unit logical-unit-number {
            encapsulation vlan–ccc; # Required for single-tag
            vlan-id-list [vlan-id vlan-idvlan-id]; # For single-tag
            vlan-tags outer tpid.vlan-id inner-list [vlan-id vlan-idvlan-id]; # For dual-tag
        }
        . . .
    }
}

You can include the statements at the following hierarchy levels:

  • [edit]

  • [edit logical-systems logical-system-name]

For a single-tag logical interface, include the encapsulation statement and specify vlan-ccc so that CCC circuit encapsulation is used inside the Layer 2 circuit.

Note:

In the case of a dual-tag logical interface, the Junos OS automatically uses the vlan-ccc encapsulation type.

Specifying the Interface to Handle Traffic for a CCC Connected to the Layer 2 Circuit

To configure the VLAN-bundled logical interface as the interface to handle traffic for a circuit connected to the Layer 2 circuit, include the following statements:

content_copy zoom_out_map
l2circuit {
    neighbor address {
        interface logical-interface-name {
            virtual-circuit-id number;
            no-control-word;
        }
    }
}

You can include the statements at the following hierarchy levels:

  • [edit protocols]

  • [edit logical-systems logical-system-name protocols]

To enable a Layer 2 circuit, include the l2circuit statement.

To configure the router as a neighbor for a Layer 2 circuit, specify the neighbor address using the neighbor statement.

To specify the interface to handle traffic for a circuit connected to the Layer 2 circuit, include the interface statement and specify the VLAN-bundled logical interface.

footer-navigation