Here is one example:
First I have an SRX-100 with two tables; the Main Table (inet.0) and a second table called VR-A
I start by adding my default route to the main routing table
[edit routing-options static]
route 0.0.0.0/0 next-hop 23.23.23.1;
My internet facing interface is 23.23.23.2 so I have the r
oute for the next-hop in my main table
router# run show route terse
inet.0: x destinations, x routes (x active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
A Destination P Prf Metric 1 Metric 2 Next hop AS path
* 0.0.0.0/0 S 5 >24.24.24.1
* 24.24.24.0/28 D 0 >ge-0/0/0.0
* 24.24.24.2/32 L 0 Local
I then create a policy statement and use that to import the default route into the VR-A
[edit policy-options policy-statement Internet-Route]
term First {
from {
instance master;
route-filter 0.0.0.0/0 exact;
}
then accept;
}
term LAST {
then reject;
}
[edit routing-instances VR-A]
instance-import Internet-Route;
Which gives me the following in the VR-A Table
VR-A.inet.0: x destinations, x routes (x active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
A Destination P Prf Metric 1 Metric 2 Next hop AS path
* 0.0.0.0/0 S 5 >24.24.24.1
Notice I have a default route in my VR-A table with a next-hop address that i do NOT have a route for in VR-A. This setup works great!