In this example, routing table groups are common in the four configuration scenarios. The routing table groups are used to install routes (including interface, static, OSPF, and BGP routes) into several routing tables for the default and other instances. In the routing table group definition, the first routing table is called the primary routing table. (Normally, the primary routing table is the table into which the route would be installed if you did not configure routing table groups. The other routing tables are called secondary routing tables.)
The routing table groups in this configuration install routes as follows:
Configure the routing table groups:
- [edit]
- routing-options {
-
- rib-groups {
-
- vpna-vpnab {
- import-rib [ VPN-A.inet.0 VPN-AB.inet.0 ];
- }
-
- vpnb-vpnab {
- import-rib [ VPN-B.inet.0 VPN-AB.inet.0 ];
- }
-
- vpnab-vpna_and_vpnb {
- import-rib [ VPN-AB.inet.0 VPN-A.inet.0 VPN-B.inet.0 ];
- }
- }
- }