Junos: ping: invalid routing instance `RI0'
The following routing instance related error is not a bug, but a configuration mistake:
Here is a routing instance that commits into configuration:
Code:
# show RI_0
instance-type virtual-router;
interface ge-0/0/7.770;
interface st0.0;
routing-options {
static {
route 0.0.0.0/0 next-hop st0.0;
}
}
# run show route table RI_0.inet.0
RI_0.inet.0: 5 destinations, 5 routes (5 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
0.0.0.0/0 *[Static/5] 00:01:33
> via st0.0
11.75.0.0/30 *[Direct/0] 00:01:33
> via st0.0
11.75.0.1/32 *[Local/0] 00:01:43
Local via st0.0
12.77.0.0/24 *[Direct/0] 00:01:43
> via ge-0/0/7.770
12.77.0.1/32 *[Local/0] 00:01:43
Local via ge-0/0/7.770
So logically if I try to ping a host in the 12.77.0.0/24 or 11.75.0.0/30 subnets, I should be able to ping them right ? Wrong...
Code:
# run ping 12.77.0.2 routing-instance RI_0
ping: invalid routing instance `RI_0'
This because the routing instance needs to be defined as a virtual router:
Code:
# set routing-instances RI_0 instance-type virtual-router
# commit
Now ping can use the routing instance (VRF light - VPN routing and forwarding, but without vpn capabilities, just a simple alternate routing table) .
Code:
# run ping 12.77.0.2 routing-instance RI_0
PING 12.77.0.2 (12.77.0.2): 56 data bytes