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

ldp

date_range 20-Nov-23

Syntax

content_copy zoom_out_map
ldp {
    auto-targeted-session {
         maximum-sessions;
         no-dynamic-tunnels;
         no-rlfa;
         teardown-delay;
        {
        color-import-policy [ policy-names ]
    (deaggregate | no-deaggregate);
        dod-request-policy
    dual-transport {
        inet-lsr-id ;
        inet6-lsr-id;
        }
    egress-policy [ policy-names ];
    entropy-label {
        ingress-policy [ policy-names ] 
    explicit-null;
    export [ policy-names ];
    family {
        inet;
        inet6;
      }
    graceful-restart {
        disable;
        helper-disable;
        maximum-neighbor-reconnect-time;
        maximum-neighbor-recovery-time;
        reconnect-time;
        recovery-time;
      }
    igp-synchronization {
        holddown-interval;
       }
    import [ policy-names];
    interface (interface-name | all);
    keepalive-interval seconds;
    keepalive-timeout seconds;
        l2-smart-policy;
        label-withdrawal-delay;
    log-updown {
        trap {
            disable;
        }
     }
    longest-match {
        policy {
            [ policy-names]; 
          }
      }
    make-before-break {
        switchover-delay ;
        timeout;
      }
        mtu-discovery;
    neighbor [ neighbor];
        next-hop {
            merged {
              policy [ policy names];
            }
            no-rsvp-tunneling {
              policy [ policy names]; 
             }
        }
        no-deaggregate;
    no-forwarding;
        no-mtu-discovery;
        no-propagate-ttl;
    oam {
        bfd-liveness-detection {
            detection-time {
                threshold;
                }
            }
            ecmp;
            failure-action {
                remove-nexthop;
                remove-route;
            }
            holddown-interval ;
            minimum-interval;
            minimum-receive-interval;
            multiplier;
            no-adaptation;
            no-router-alert-option;
            transmit-interval {
                 minimum-interval;
                 threshold;
               }
        bfd-port-egress-policy [policy names];
        fec [fec address];
        ingress-policy [policy names];
        lsp-ping-interval;
        lsp-ping-multiplier;
        periodic-traceroute {
            exp;
            fanout;
            frequency;
            paths;
            retries;
            source;
            ttl;
            wait;
        }
      }
    p2mp {
        no-rsvp-tunneling;
        recursive {
            route;
          }
        root-address [address];
      }
    policing {
        fec [address];
      }
    preference preference;
        rib-group;
        rib-group6;
    session [address];
    session-group session prefix;
    session-protection {
        timeoute;
       }
        sr-mapping-client {
            policy policy;
           }
        }
    strict-targeted-hellos;
        targeted-hello {
            hello-interval;
            hold-time;
       }
    traceoptions {
            flag [trace flags];
            file [file name];
       }
    track-igp-metric;
    traffic-statistics {
            file [file name];
            interval;
            no-penultimate-hop;
            sensor-based-stats;
       }
    transport-address (address | interface | router-id);
transport-preference [ipv4 | ipv6];
        upstream-label-assignment;
  }

Hierarchy Level

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

Description

Enable LDP routing on the router or switch.

You must include the ldp statement in the configuration to enable LDP on the router or switch.

Default

LDP is disabled on the router.

Options

transport-preference ipv4 | ipv6

Select the preferred transport for TCP connection when both IPv4 and IPv6 are enabled. If transport-preference ipv4 is configured, LDP will attempt to establish the TCP connection using IPv4. If transport-preference ipv6 is configured, LDP will attempt to establish the TCP connection using IPv6.

  • Default: ipv6

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

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.

dual-transport statement introduced in Junos OS Release 16.1 for the M320 Series, MX Series, and PTX Series.

family statement introduced in Junos OS Release 16.1 for the M320 Series, MX Series, and PTX Series.

transport-preference option introduced in Junos OS Release 16.1 for the M320 Series, MX Series, and PTX Series.

footer-navigation