Route aggregation when your ISPs do not summarize their routes30 Sep
There is a “generate route” option that almost does what is required, but can cause bad side effects if you loose the route configured for generate.
rib inet.0 {
generate {
route 1.0.0.0/16 {
policy inactive-routes;
}
}
}
group test {
import inactive-routes;
neighbor 10.10.10.2;
peer-as 1;
}
policy-statement inactive-routes {
term a {
from {
route-filter 1.0.0.0/24;
}
then accept;
}
term 1 {
from {
route-filter “1.0.0.0/[16-24]”;
}
then reject;
}
}
Destination Ctr Type Interface NextHop
1.0.0.0/16 0 locl ge-u5/0.0 10.10.10.2
1.0.0.0/24 0 locl ge-u5/0.0 10.10.10.2
10.10.10.0/30 0 locl ge-u5/0.0
10.10.10.0/32 0 dscd
10.10.10.1/32 0 recv
10.10.10.3/32 0 bcst ge-u5/0.0
71.44.19.77/32 0 recv