Routing

 View Only
last person joined: 5 days ago 

Ask questions and share experiences about ACX Series, CTP Series, MX Series, PTX Series, SSR Series, JRR Series, and all things routing, including portfolios and protocols.
  • 1.  static routing next-table option

    Posted 05-26-2025 15:42

    Dear Juniper,

    I am curious about the "next-table" option of "static routing".

    The topology is as follows.

    First, the below config is committed.
    "set routing-options static route 33.33.33.0/24 next-table VRF10.inet.0"

    After that, when I commit the below config, an error occurs.
    "set routing-instances VRF10 routing-options static route 11.11.11.0/24 next-table inet.0"

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

    I searched on the internet and it says it's because of "loop protection".

    I'm curious about the conditions under which loop protection occurs (when it occurs).

    And is it impossible to communicate between different routing instances with only static routing?



    ------------------------------
    YOON JUN CHOI
    ------------------------------


  • 2.  RE: static routing next-table option

    Posted 06-11-2025 15:47

    Hello,

    You can configure a static route with the next-table option from a VRF table to inet.0, or from inet.0 to a VRF table. However, in both cases, there's a risk of creating a routing loop.

    For example, if you configure a default route (0.0.0.0/0) in a VRF pointing to inet.0, and then configure another default route in inet.0 pointing back to the VRF using next-table, this would cause a routing loop. To prevent such situations, Junos enforces loop protection and rejects the configuration.



    ------------------------------
    Guilherme Etorri Uecker Soares
    ------------------------------



  • 3.  RE: static routing next-table option

    Posted 06-16-2025 10:28

    Hello Guilherme,

    Then how we can achieve the requirement mentioned by yoon in that scenario.



    ------------------------------
    AVINASH KUMAR
    ------------------------------



  • 4.  RE: static routing next-table option

    Posted 06-16-2025 15:08

    Go asymmetrically through a third (otherwise empty) VRF. The commit check won't bother you this way (but check yourself that you're not creating any loop, or be prepared for PFE WEDGE errors and total loss of traffic).



    ------------------------------
    Olivier BenghoziOlivier Benghozi
    ------------------------------



  • 5.  RE: static routing next-table option

    Posted 06-16-2025 15:14

    Thanks Olivier.




    ------------------------------
    AVINASH KUMAR
    ------------------------------