Support Support Downloads Knowledge Base Case Manager My Juniper Community

Knowledge Base

Search our Knowledge Base sites to find answers to your questions.

Ask All Knowledge Base Sites All Knowledge Base Sites JunosE Defect (KA)Knowledge BaseSecurity AdvisoriesTechnical BulletinsTechnotes Sign in to display secure content and recently viewed articles

[J/SRX/Junos] Commit fails with a "next-table may loop" message

0

0

Article ID: KB12985 KB Last Updated: 09 Jun 2020Version: 5.0
Summary:

This article describes an error in the configuration file that causes the commit command to fail with the following error message:

error: [rib VR1.inet.0 routing-options static] next-table may loop

This article explains that the error is caused by an unsupported configuration, and provides an alternative that allows routing information to be shared between routing instances.

 

Symptoms:

When a commit is attempted in the following configuration snippet, the command fails with the following error message:

    VR1 {
        instance-type virtual-router;
        routing-options {
            static {
                route 10.0.0.0/24 next-table VR2.inet.0;
            }
        }
    }
    VR2 {
        instance-type virtual-router;
             routing-options {
               static {
                route 192.168.1.0/24 next-table VR1.inet.0;
            }
        }
    }

root@B8_42# commit check
error: [rib VR1.inet.0 routing-options static]
next-table may loop
error: configuration check-out failed

 

Cause:

This is caused by an error in the configuration file. As shown in the above configuration, there is a route for 10.0.0.0/24 with the next-table as VR2.inet.0, and there is a route in the VR2 routing-instance for network 192.168.1.0/24 with the next-table as VR1.inet.0. This is not a supported configuration.

 

Solution:

The use of next-table from one routing instance (VR1) to another routing instance (V. VR2) is allowed only in one direction, not in both directions. This is to prevent any route lookup loops. The network subnets do not need to be the same. 

As an alternative, use either Rib-groups or the Policy option to share routing information between routing instances. Refer to KB19787: [SRX, J Series] Example - Importing Routes to and from virtual routers on SRX and J Series for more information.

 

Modification History:

2020-06-09: Article checked for accuracy and validity; no changes made; article relevant

 

Comment on this article > Affected Products Browse the Knowledge Base for more articles related to these product categories. Select a category to begin.

Getting Up and Running with Junos

Getting Up and Running with Junos Security Alerts and Vulnerabilities Product Alerts and Software Release Notices Problem Report (PR) Search Tool EOL Notices and Bulletins JTAC User Guide Customer Care User Guide Pathfinder SRX High Availability Configurator SRX VPN Configurator Training Courses and Videos End User Licence Agreement Global Search