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
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

l2vpn

date_range 13-Aug-24

Syntax

content_copy zoom_out_map
l2vpn {
    (control-word | no-control-word);
    encapsulation-type type;
    oam {
        bfd-liveness-detection {
            detection-time {
                threshold milliseconds;
            }
            minimum-interval milliseconds;
            minimum-receive-interval milliseconds;
            multiplier number;
            no-adaptation;
            transmit-interval {
                threshold milliseconds;
                minimum-interval milliseconds;
            }
            version (1 | automatic);
        }
        ping-interval seconds;
    }
    site site-name {
        community COMM;
        control-word ;
        encapsulation-type ethernet;
        ignore-encapsulation-mismatch;
        ignore-mtu-mismatch;
        interface interface-name {
            description text;
            community COMM;
            control-word ;
            encapsulation-type ethernet;
            ignore-encapsulation-mismatch;
            ignore-mtu-mismatch;
            mtu 1500;
            no-control-word;
            oam {
                bfd-liveness-detection {
                    detection-time {
                        threshold milliseconds;
                    }
                    minimum-interval milliseconds;
                    minimum-receive-interval milliseconds;
                    multiplier number;
                    no-adaptation;
                    transmit-interval {
                        threshold milliseconds;
                        minimum-interval milliseconds;
                    }
                    version (1 | automatic);
                }
                ping-interval secondsseconds;
            }
            remote-site-id remote-site-id;
            target-attachment-identifier identifier;
        }
        mtu 1500;
        no-control-word;
        oam {
            bfd-liveness-detection {
                detection-time {
                    threshold milliseconds;
                }
                minimum-interval milliseconds;
                minimum-receive-interval milliseconds;
                multiplier number;
                no-adaptation;
                transmit-interval {
                    threshold milliseconds;
                    minimum-interval milliseconds;
                }
                version (1 | automatic);
            }
            ping-interval secondsseconds;
        }
        site-identifier identifier;
        site-preference preference-value {
            backup;
            primary;
        }
        source-attachment-identifier identifier;
    }
    traceoptions {
        file filename <files number> <size size> <world-readable | no-world-readable>;
        flag flag <flag-modifier> <disable>;
    }
}

Hierarchy Level

content_copy zoom_out_map
[edit logical-systems logical-system-name routing-instances routing-instance-name protocols],
[edit routing-instances routing-instance-name protocols]

Description

Enable a Layer 2 VPN routing instance on a PE router or switch.

The remaining statements are explained separately. See CLI Explorer.

Required Privilege Level

routing—To view this statement in the configuration.

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

Release Information

Statement introduced before Junos OS Release 7.4.

footer-navigation