To make the example as simple as possible. We have an OSPF area setup so that if one link fails or gets congested, traffic will reroute through the other. Is there a way to have traffic pass from one end of the OSPF area to it's destination without adding static routes on every router in-between?
I've tried the following but it doesn't seem to work:
policy-statement into-ospf {
term connected {
from protocol direct;
then accept;
}
term static {
from protocol static;
then accept;
}
}
export [ DEFAULT_ROUTE into-ospf ];
reference-bandwidth 10g;
area 0.0.0.0 {
interface lo0.0;
interface ge-0/0/1.0 {
metric 20;
}
interface ge-0/0/2.0 {
metric 80;
}
}
In the meantime, I'm just redefining every route on every router inside the OSPF area:
static {
route 0.0.0.0/0 next-hop x.x.0.53;
route x.x.0.80/28 next-hop [ x.x.0.62 x.x.0.58 ];
route x.x.0.72/29 next-hop [ x.x.0.62 x.x.0.58 ];
route x.x.0.64/29 next-hop [ x.x.0.62 x.x.0.58 ];
route x.x.0.160/30 next-hop [ x.x.0.62 x.x.0.58 ];
route x.x.0.164/30 next-hop [ x.x.0.62 x.x.0.58 ];
route x.x.1.128/28 next-hop [ x.x.0.62 x.x.0.58 ];
}