Junos OS

Expand all | Collapse all

Import a route from inet.0 into a route instance

Jump to Best Answer
  • 1.  Import a route from inet.0 into a route instance

    Posted 08-09-2019 20:52

    We have a simple route instance with a few thousand peering routes. We would like to be able to use send all non-peered traffic into main (inet.0) routing table. In other words, we want to use inet.0 table as default route.

     

    I tried the following :

     

    [edit routing-instances VRF-1]

    #show routing-options

    routing-options {
     static {
     route 0.0.0.0/0 next-table inet.0;
     }
    }

     

    This does show up in route table:

     

    > show route 1.1.1.1

    inet.0: 30121 destinations, 65847 routes (30120 active, 0 holddown, 1 hidden)
    + = Active Route, - = Last Active, * = Both

    0.0.0.0/0 *[Static/160] 8w0d 06:36:39
    > to 10.5.2.1 via xe-0/0/44.0


    VRF-1.inet.0: 42552 destinations, 42553 routes (42552 active, 0 holddown, 0 hidden)
    + = Active Route, - = Last Active, * = Both

    0.0.0.0/0 *[Static/5] 00:08:33
    to table inet.0
    [BGP/170] 00:00:36, localpref 100
    AS path: 65530 I, validation-state: unverified
    > to 172.16.212.2 via irb.100

     

     

    However the packets sent to 1.1.1.1 are still sent to 172.16.212.2 and not to 10.5.2.1.

     

    What am I missing? Any advice is appreciated!



  • 2.  RE: Import a route from inet.0 into a route instance

    Posted 08-09-2019 21:28

    Hello,

    What is the Juniper product You are using?

    This works on MX but not on EX/QFX5K.

    HTH

    Thx

    Alex



  • 3.  RE: Import a route from inet.0 into a route instance

    Posted 08-09-2019 22:34

    Hi Alex,

     

    We are using QFX5100. 

    Do you know of a way around this?

     

     



  • 4.  RE: Import a route from inet.0 into a route instance

    Posted 08-09-2019 22:56

    Hello,

    Please see if this thread gives You any clues

    https://forums.juniper.net/t5/Routing/Route-leaking-and-floating-unreachability/m-p/320973

    But generally speaking, route leaking is a horrible kludge which is rarely justified.

    HTH

    Thx

    Alex 



  • 5.  RE: Import a route from inet.0 into a route instance
    Best Answer

     
    Posted 08-12-2019 12:13

    Let's try using RIB-groups. Remove the statis route in your vrf first 

     

    1. Define rib-group
    set routing-options rib-groups inet0->vrf1 import-rib inet.0
    set routing-options rib-groups inet0->vrf1 import-rib VRF-1.inet.0

    2. Apply rib-group for both static and direct route

    set routing-options static rib-group inet0->vrf1
    set routing-options interface-routes rib-group inet inet0->vrf1

    3. Check "show route 1.1.1.1" again. This time, in VRF-1.inet.0 table, you should see Next Hop as xe-0/0/44.0 instead of "next-table" <<I remember some limiation with BCM chipset in terms of next-table

    4. Verify your traffic



  • 6.  RE: Import a route from inet.0 into a route instance

    Posted 08-12-2019 20:30

    Thank you mhu for the reply. I was able to solve this with rib-groups.
    Also thank toy aarseniev for the link, I will keep that issue in mind.



  • 7.  RE: Import a route from inet.0 into a route instance

    Posted 04-05-2020 08:51

    Hi Boomstick,

     

     

    Could u share the config that u made to leak route from VRF to master instance and vice versa? I'm try to leak EVPN route from VRF to master instance but not work.

     

    Thanks and appreciate your feedback