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

add-path

date_range 19-Nov-23

Syntax

content_copy zoom_out_map
add-path {
    receive;
    send {
        include-backup-path backup_path_number;
        multipath;
        path-count number;
        path-selection-mode {
            (all-paths | equal-cost-paths);
        }
        prefix-policy [ policy-names ];
    }
}

Hierarchy Level

content_copy zoom_out_map
[edit logical-systems logical-system-name protocols bgp group group-name family family family-modifier],
[edit logical-systems logical-system-name protocols bgp group group-name neighbor address family family-modifier],
[edit logical-systems logical-system-name routing-instances name protocols bgp group group-name family family family-modifier],
[edit logical-systems logical-system-name routing-instances name protocols bgp group group-name neighbor address family family-modifier],
[edit logical-systems logical-system-name tenants name routing-instances name protocols bgp group group-name family family family-modifier],
[edit logical-systems logical-system-name tenants name routing-instances name protocols bgp group group-name neighbor address family family-modifier],
[edit protocols bgp group group-name family family-modifier],
[edit protocols bgp group group-name neighbor address family family-modifier],
[edit tenants name routing-instances name protocols bgp group group-name family family-modifier ],
[edit tenants name routing-instances name protocols bgp group group-name neighbor address family family-modifier]

Description

Enable advertisement and/or reception of multiple paths to a destination to/from the same BGP peer, instead of advertising/receiving only the active path to/from the same BGP peer.

Note:

The minimum configuration for the send side is add-path send path-count <n>. The configuration for the receive side is add-path send receive.

You cannot just configure add-path. You must configure at least one send/receive. (If you attempt to configure only add-path, it will fail.) If only send/receive is configured, the corresponding support is enabled: send for advertisement of add-path routes and receive for reception of add-path routes.

Note:

The effective receive/send add-path state of a BGP session depends on the add-path capability advertisement from both the ends. That is, if R1 configures send, but R2 doesn't configure receive, then R1 will not send add-path to R2.

Note:

On PTX1000 devices, the add-path configuration statement is not supported under routing instances.

Options

receive

Enable the router to receive multiple paths to a destination. You can enable the router to receive multiple paths from specified neighbors or from all neighbors.

The remaining statement is explained separately. See 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 in Junos OS Release 11.3.

Support for range from 2 through 20 (for BGP) introduced in Junos OS Release 14.1.

multipath option introduced in Junos OS Release 16.1R2.

Support for 64 BGP add-paths introduced in Junos OS Release 18.4R1 for the MX Series.

include-backup-path and path-selection-mode options introduced in Junos OS Release 18.4R1 for the MX Series and PTX Series.

footer-navigation