Generated routes in Junos are used to conditionally create a route in the routing table when specific criteria are satisfied. They are policy-driven and allow operators to inject a prefix only when the device has the necessary supporting reachability or other configured conditions. This is useful in data center environments to ensure that certain aggregate or service prefixes are advertised only when the infrastructure can truly forward traffic toward the intended destinations. For example, a generated route can be used to advertise a summary prefix into BGP only if one or more contributing routes exist, preventing blackholing that could occur if a summary is advertised while downstream reachability is missing.
Generated routes do not create a separate routing table; routing tables are created by routing instances and related configuration constructs. They also are not intended simply to increase the number of advertisements. Their value is correctness and control, not volume. Finally, expanding a single advertisement into multiple routes is not the purpose of generated routes; that behavior is more aligned with route policies that manipulate announcements, prefix lists, or mechanisms that originate multiple prefixes by configuration.
In short, generated routes provide conditional route origination based on defined match conditions, enabling safer summarization and controlled advertisement patterns that are common in scalable data center routing designs.
Contribute your Thoughts:
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit