Specify When the Route Can Be Resolved to a Prefix not Directly Connected
By default, static routes can point only to a directly connected next hop. You can configure an IPv4 route to a prefix that is not directly connected by resolving the route through the
inet.0andinet.3routing tables. To configure an IPv4 static route to a prefix that is not a directly connected next hop, include theresolvestatement at the[edit routing-options static (defaults | route)]hierarchy level:[edit routing-options static (defaults | route)]resolve;You can configure an IPv6 route to a prefix that is not directly connected by resolving the route through the
inet6.0routing table. To configure an IPv6 static route to a prefix that is not a directly connected next hop, include theresolvestatement at the[edit routing-options rib inet6.0 static (defaults | route)]hierarchy level:[edit routing-options rib inet6.0 static (defaults | route)]resolve;