Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

close
keyboard_arrow_left
Junos CLI Reference
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

layer2-control

date_range 21-Nov-24

Syntax

content_copy zoom_out_map
layer2-control {
    bpdu-block {
        disable-timeout seconds;
        interface interface-name;
    }
    ephemeral-db-support;
    l2pt { 
        interface name {
            destination {
                vxlan-tunnel;
            }
            enable-all-ifl; 
            protocol {
                (all | protocol-name);
        }
    }
    mac-rewrite {
        interface interface-name {
            enable-all-ifl;
            protocol protocol-name;
            
        }
        tunnel-destination-mac destination mac address;
    }
    nonstop-bridging;
    traceoptions {
        file filename <files number> <size maximum-file-size> <world-readable | no-world-readable>;
        flag flag <disable>;
    }
}

Hierarchy Level

content_copy zoom_out_map
[edit protocols]

Description

Configure Layer 2 control protocols to enable features such as Layer 2 protocol tunneling (L2PT) and nonstop bridging.

You can't configure the l2pt and mac-rewrite child statements for the same interface at the same time.

  • The l2pt child statement enables L2PT transparency over destination encapsulation tunnel types on the device (such as VXLAN tunnels).

  • The mac-rewrite child statement enables standard L2PT for interfaces that are not encapsulation tunnel interfaces, and uses MAC rewrite operations. You can configure a destination MAC address using the tunnel-destination-mac destination-mac-address option.

Options

ephemeral-db-support (Junos OS only) Enable users to configure Multiple Spanning Tree Protocol (MSTP), Rapid Spanning Tree Protocol (RSTP), or VLAN Spanning Tree Protocol (VSTP) in the ephemeral configuration database.
nonstop-bridging For details on configuring nonstop-bridging, see the Junos OS High Availability User Guide. When you configure this statement on routing platforms with two Routing Engines, a primary Routing Engine switches over gracefully to a backup Routing Engine and preserves Layer 2 Control Protocol (L2CP) information.

The remaining statements are explained separately. Search for a statement in CLI Explorer or click a linked statement in the Syntax section for details.

Required Privilege Level

interface—To view this statement in the configuration.

interface-control—To add this statement to the configuration.

Release Information

Statement introduced in Junos OS Release 8.4.

bpdu-block statement added in Junos OS Release 9.4.

Statement introduced in Junos OS Release 14.1X53-D10 for EX4300 switches.

tunnel-destination-mac statement added in Junos OS Evolved Release 21.3R1.

ephemeral-db-support statement added in Junos OS Release 23.4R1.

external-footer-nav