A common topology used to explain the use of a generate route is the following:
R1 ------ R2 --------------- ISP
On R2, we configure a generate default route (0/0) that becomes active only if R2 receives a BGP route of 10/16 from the ISP. This generate default route on R2 will have a next hop of the ISP. R2 then redistributes this default route into OSPF. R1 now uses the default route to forward traffic exiting the local OSPF network.
All good. Except for the fact that the same default route on R2 will be used to forward traffic towards 11/16, which will then be blackholed at the ISP, which means that the generate default route on R2 can cause blackholing of traffic, which is bad.
Is there a better scenario that highlights the usefulness of a generate route?
Juniper Business Use Only