Junos
Junos

Import a route from inet.0 into a route instance

‎08-09-2019 08:52 PM

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!

5 REPLIES 5
Junos

Re: Import a route from inet.0 into a route instance

‎08-09-2019 09:27 PM

Hello,

What is the Juniper product You are using?

This works on MX but not on EX/QFX5K.

HTH

Thx

Alex

_____________________________________________________________________

Please ask Your Juniper account team about Juniper Professional Services offerings.
Juniper PS can design, test & build the network/part of the network as per Your requirements

+++++++++++++++++++++++++++++++++++++++++++++

Accept as Solution = cool !
Accept as Solution+Kudo = You are a Star !
Junos

Re: Import a route from inet.0 into a route instance

‎08-09-2019 10:33 PM

Hi Alex,

 

We are using QFX5100. 

Do you know of a way around this?

 

 

Junos

Re: Import a route from inet.0 into a route instance

‎08-09-2019 10:55 PM

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 

_____________________________________________________________________

Please ask Your Juniper account team about Juniper Professional Services offerings.
Juniper PS can design, test & build the network/part of the network as per Your requirements

+++++++++++++++++++++++++++++++++++++++++++++

Accept as Solution = cool !
Accept as Solution+Kudo = You are a Star !
Junos
Solution
Accepted by topic author Boomstick
‎08-12-2019 08:28 PM

Re: Import a route from inet.0 into a route instance

‎08-12-2019 12:13 PM

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


Mengzhe Hu
JNCIE x 3 (SP DC ENT)
Highlighted
Junos

Re: Import a route from inet.0 into a route instance

‎08-12-2019 08:30 PM

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.