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

generate

date_range 19-Nov-23

Syntax

content_copy zoom_out_map
generate {
    defaults {
        generate-options;
    }
    route destination-prefix {
        policy policy-name;
        generate-options;
    }
}

Hierarchy Level

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

Description

Configure generated routes, which are used as routes of last resort.

Options

defaults—(Optional) Specify global generated route options. These options only set default attributes inherited by all newly created generated routes. These are treated as global defaults and apply to all the generated routes you configure in the generate statement.

generate-options—Additional information about generated routes, which is included with the route when it is installed in the routing table. Specify zero or more of the following options in generate-options. Each option is explained separately.

  • (active | passive);

  • as-path <as-path> <origin (egp | igp | incomplete)> <atomic-aggregate> <aggregator as-number in-address>;

  • (brief | full);

  • community [ community-ids ];

  • discard;

  • (metric | metric2 | metric3 | metric4) value <type type>;

  • (preference | preference2 | color | color2) preference <type type>;

  • tag metric type number;

route destination-prefix—Configure a non-default generated route:

  • default—For the default route to the destination. This is equivalent to specifying an IP address of 0.0.0.0/0.

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

The policy statement is explained separately.

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