Routing
Highlighted
Routing

Problem routing from inet.0 to routing instance

[ Edited ]
‎05-16-2019 05:21 AM

Hi There, 

 

I currently have an issue where I am unable to route from inet.0 to a directly connected device that is in a routing instance

 

The device is reachable when sourcing from the routing-instance however I need to be able to access the device from inet.0.

 

The peer device address is 185.96.18.29 and is connected to ge-0/0/6.782 and BGP is established

 

What am I missing that is making it so that I can not reach the device from inet.0?

 

Interface

description "TEST";
vlan-id 782;
family inet {
    address 185.96.18.28/31;
}

Routing Instance

 

test {
instance-type virtual-router; interface ge-0/0/1.301; interface ge-0/0/1.302; interface ge-0/0/6.782; routing-options { interface-routes { rib-group inet rib-test-interface-routes-v4; } autonomous-system 65500; } protocols { bgp { traceoptions { file btswip_bgp.log size 20k; flag all; } group supplier { neighbor 147.152.22.133 { peer-as 65235; } neighbor 147.152.22.129 { peer-as 65233; } } group customers { neighbor 185.96.18.29 { peer-as 64565; } } } }

Rib Group

    rib-test-interface-routes-v4 {
        import-rib [ BT_WSIP.inet.0 inet.0 ];
    }
}

Interface Route - is done via an apply-group

int-routes-test-v4 {
    routing-options {
        interface-routes {
            rib-group inet rib-test-interface-routes-v4;
        }
    }
}

interface-routes {
apply-groups [ int-route-legacy-voip int-routes-test-v4 ];
}

Route output

inet.0: 172 destinations, 228 routes (170 active, 0 holddown, 2 hidden)
+ = Active Route, - = Last Active, * = Both

185.96.18.28/31    *[Direct/0] 01:59:07
                    > via ge-0/0/6.782

test.inet.0: 9 destinations, 15 routes (9 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

185.96.18.28/31    *[Direct/0] 1w6d 21:59:36
                    > via ge-0/0/6.782
5 REPLIES 5
Highlighted
Routing

Re: Problem routing from inet.0 to routing instance

‎05-16-2019 06:03 AM
Routing instance may not have return route for inet.0 routes. When you ping from inet.0 what is the source ip you are using?

Thanks,
Nellikka
JNCIE x3 (SEC #321; SP #2839; ENT #790)
Please Mark My Solution Accepted if it Helped, Kudos are Appreciated too!!!
Highlighted
Routing

Re: Problem routing from inet.0 to routing instance

‎05-16-2019 06:14 AM

Ah that true, only the BGP routes are leaking into the virtual router.

 

Do you know how to have direct routes leaked into a VRF?

 

Highlighted
Routing

Re: Problem routing from inet.0 to routing instance

‎05-16-2019 06:31 AM

Which platform are you using?

 

EX switches does not support exchanging directly connected subnets between routing tables. See https://kb.juniper.net/InfoCenter/index?page=content&id=KB23027 for more details on this.


--
Best regards,

Jonas Hauge Klingenberg
Juniper Ambassador & Technology Architect, SEC DATACOM A/S (Denmark)
Highlighted
Routing

Re: Problem routing from inet.0 to routing instance

‎05-16-2019 06:34 AM

Hi,

 

Platform is ACX 

 

Thanks

Routing

Re: Problem routing from inet.0 to routing instance

‎05-16-2019 07:09 AM

I think your problem is the return traffic.  Are you doing ping 182.96.18.29 wihout specifying the source address? 

 

ping from inet.0.png

Regards,

Yasmin Lara - Juniper Ambassador #QuadE - JNCIE-SP, JNCIE-ENT, JNCIE-DC, JNCIE-SEC
JNCIS-CLOUD, JNCDS-DC, JNCIA-DevOps
Feedback