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

bgp-static

date_range 19-Nov-23

Syntax

content_copy zoom_out_map
bgp-static {
    route destination-prefix/prefix-length {
        as-path <as-path> <origin (egp | igp | incomplete)> <atomic-aggregate> <aggregator as-number in-address>;
        community [ community-ids ];
        (metric | metric2 | metric3 | metric4) value <type type>;
        (preference | preference2 | color | color2) preference <type type>;
        (tag | tag2) metric type number;
    }
}

Hierarchy Level

content_copy zoom_out_map
[edit logical-systems logical-system-name routing-options],
[edit logical-systems logical-system-name routing-options rib routing-table-name],
[edit routing-options],
[edit routing-options rib routing-table-name]

Description

Specify a BGP-static route. You can specify any number of routes within a single BGP-static statement, and you can specify any number of BGP-static options in the configuration.

Options

route destination-prefix/prefix-length

destination-prefix is the network portion of the IP address, and prefix-length is the destination prefix length.

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 in Junos OS Release 14.2.

footer-navigation