Hi,
in our configuration a default route is generated only when ebgp session is established. The default route is then redistributed to the internal network by ospf. The configuration looks like this:
policy-options {
policy-statement PROD_UPSTREAMv4_EXISTS {
term 1 {
from {
protocol bgp;
neighbor 64.1.1.5;
}
then accept;
}
then reject;
}
}
routing-options {
generate {
route 0.0.0.0/0 {
policy PROD_UPSTREAMv4_EXISTS;
discard;
}
}
}
The configuration is working as it should but there is one problem. For MX80 it takes about 13 minutes to learn the full table by bgp and after that the routes are installed into the forwarding-table. So what we really want is that the default route is not generated when the bgp session is established but after having learnt the full table and the routes have been installed to the forwarding-table so the the traffic can be routed to the upstream before the default route is distributed by ospf.
Any best practice how to solve this problem.
Best regards
Joerg