Specify Generated Route Options
In the
defaultsandrouteparts of thegeneratestatement, you can specify options that define additional information about generated routes that is included with the route when it is installed in the routing table. All generated options are optional. Generated options that you specify in thedefaultspart of thegeneratestatement are treated as global defaults and apply to all the generated routes you configure in thegeneratestatement. Generated options that you specify in theroutepart of thegeneratestatement override any global generated options and apply to that destination only.To configure generated route options, include one or more of them in the
defaultsorroutepart of thegeneratestatement (for routing instances, include the statement. For a list of hierarchy levels at which you can configure this statement, see the statement summary section for this statement. Each of these options is explained in the sections that follow.[edit]routing-options {generate {(defaults | route) {(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)metric<typetype>;(preference | preference2 | color | color2)preference<typetype>;tagstring;}}}The following sections explain how to specify generated route options: