Install a Static Route into More than One Routing Table
You can install a static route into more than one routing table. For example, you might want a simple configuration that allows you to install a static route into the default routing table
inet.0,as well as a second routing tableinet.2. Instead of configuring the same static route for each routing table, you can use routing table groups to insert the route into multiple tables. To create a routing table group, include therib-groupstatement.For a list of hierarchy levels at which you can configure this statement, see the statement summary section for this statement.
To install the routing table into a configured routing table group, include the
import-ribstatement:rib-groupgroup-name{import-rib [routing-table-names]}For a list of hierarchy levels at which you can configure this statement, see the statement summary section for this statement.
The first routing table you list in the
import-ribstatement must be the one you configured in therib-groupstatement.Examples: Install a Static Route into More than One Routing Table
Install an IPv4 static route into
inet.0andinet.2:[edit routing-options rib table1.inet.0 static]rib-group groupA;[edit routing-options rib-groups]groupA {import-rib [table1.inet.0 inet.0 inet.2]}Install an IPv6 static route into the
inet6.0andinet6.2routing tables:[edit routing-options rib table1.inet6.0 static]rib-group groupA;[edit routing-options rib-groups]groupA {import-rib [table1.inet6.0 inet6.0 inet6.2]}