Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Announcement: Try the Ask AI chatbot for answers to your technical questions about Juniper products and solutions.

close
header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Junos CLI Reference
Table of Contents Expand all
list Table of Contents

mpls

date_range 20-Nov-23

Syntax

content_copy zoom_out_map
mpls {
    disable;
    class-of-service cos-value;
    no-cspf;
    no-decrement-ttl;
      
    advertisement-hold-time seconds;
    explicit-null;
    icmp-tunneling;
    interface (interface-name | all) {
        disable;
    }
    ipv6-tunneling;
    no-propagate-ttl;
    path path-name {
        (address | hostname) <loose | strict>;
    }
    label-switched-path lsp-name {
        disable;
        auto-bandwidth {
            adjust-interval seconds;
            adjust-threshold percentage;
            adjust-threshold-overflow-limit count;
            adjust-threshold-underflow-limit
            maximum-bandwidth bps;
            minimum-bandwidth bps;
            monitor-bandwidth;
        }
        description text-string;
        from address;
        install destination-prefix</prefix-length> <active>;
        ldp-tunneling;
        no-cspf;
        no-decrement-ttl;
        primary path-name {
            adaptive;
            select (manual | unconditional);
        }
        secondary path-name {
            adaptive;
            select (manual | unconditional);
        }
        to address;
        traceoptions {
            file filename <files number> <size maximum-file-size> <world-readable | no-world-readable>;
            flag flag;
        }
    }
    static-label-switched-path lsp-name {
        bypass bypass-name {
            description text-string;
            next-hop (address | interface-name | address/interface-name);
            to address;
        }
        ingress {
            description string;
            install {
                destination-prefix <active>;
            }
            link-protection bypass-name name;
            next-hop (address | interface-name | address/interface-name);
            to address;
        }
        transit incoming-label {
            bandwidth bps;
            description text-string;
            link-protection bypass-name name;
            next-hop (address | interface-name | address/interface-name);
            pop;
            swap out-label;
        }
    statistics {
        auto-bandwidth;
        file filename <files number> <size maximum-file-size> <world-readable | no-world-readable>;
        interval seconds;
    }
    traceoptions {
        file filename <files number> <size maximum-file-size> <world-readable | no-world-readable>;
        flag flag;
    }
    traffic-engineering (bgp | bgp-igp);
}
}

Hierarchy Level

content_copy zoom_out_map
[edit protocols]

Description

Enable MPLS on the switch.

The remaining statements are explained separately.

Default

MPLS is disabled.

Required Privilege Level

routing—To view this statement in the configuration.

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

Release Information

Statement introduced in Junos OS Release 9.5.

footer-navigation