generate
Syntax
generate { defaults {generate-options; } routedestination-prefix{policypolicy-name;generate-options; } }Hierarchy Level
[edit logical-routerslogical-router-namerouting-instancesrouting-instance-namerouting-optionsribrouting-table-name],[edit logical-routerslogical-router-namerouting-instancesrouting-instance-namerouting-options],[edit routing-optionsribrouting-table-name],[edit routing-options]Description
Configure generated routes, which are used as routes of last resort.
Options
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 ingenerate-options. Each option is explained separately.
- (
active|passive);as-path<as-path> <origin(egp|igp|incomplete)> <atomic-aggregate> <aggregatoras-number in-address>;community[community-ids];discard;- (
brief| full);- (
metric|metric2|metric3|metric4)value<typetype>;- (
preference|preference2| color | color2)preference<typetype>;tagstring;
defaults—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 thegeneratestatement. This part of thegeneratestatement is optional.
routedestination-prefix—Configure a non-default generated route:
default—For the default route to the destination. This is equivalent to specifying an IP address of0.0.0.0/0.destination-prefix/prefix-length—destination-prefixis the network portion of the IP address, andprefix-lengthis the destination prefix length.The
policystatement is explained separately.Usage Guidelines
See Configuring Generated Routes.
Required Privilege Level
routing—To view this statement in the configuration.
routing-control—To add this statement to the configuration.