Propagate Static Routes into Routing Protocols
A common way to propagate static routes into the various routing protocols is to configure the routes so that the next-hop router is the loopback address (commonly,
127.0.0.1). However, configuring static routes in this way with the JUNOS software (by including a statement such asrouteaddress/mask-lengthnext-hop 127.0.0.1) does not propagate the static routes, because the forwarding table ignores static routes whose next-hop router is the loopback address. To propagate IPv4 static routes into the routing protocols, include thediscardstatement at the[edit routing-options static (defaults | route)]hierarchy level:[edit routing-options rib inet6.0 static (defaults | route)]discard;To propagate IPv6 static routes into the routing protocols, include the
discardstatement at the[edit routing-options rib inet6.0 static (defaults | route)]hierarchy level:[edit routing-options rib inet6.0 static (defaults | route)]discard;In this configuration, you use the
discardoption instead ofrejectbecausediscarddoes not send an ICMP (or ICMPv6) unreachable message for each packet that it drops.