After you have configured aggregate routes, you can have a protocol advertise the routes by configuring a policy that is then exported by a routing protocol.
To configure a protocol to advertise routes, include the policy-statement statement:
- policy-statement advertise-aggregate-routes {
-
- term first-term {
- from protocol aggregate;
- then accept;
- }
-
- term second-term {
- then next policy;
- }
- }
- protocols {
-
- bgp {
- export advertise-aggregate-routes;
- ...
- }
- }
For a list of hierarchy levels at which you can configure this statement, see the statement summary section for this statement.