This article describes the procedure for importing all the routes of a default routing table, inet.0, into the routing instances on SRX and J Series devices.
The Problem:
When a term is added in the routing-policy and is specified with a from-condition, it does not give the instance name to import from:
[edit] # set policy-options policy-statement import-from-default term 1 from instance ? Possible completions: <instance> Routing protocol instance
Step 1. Make a policy-statement as follows:
# set policy-options policy-statement import-from-default term 1 from instance master # set policy-options policy-statement import-from-default term 1 then accept
Step 2. Import the policy statement into a preconfigured routing-instance instance1:
# set routing-instances instance1 routing-options instance-import import-from-default
After you have completed the above steps, the configuration will look as follows:
# show policy-options policy-statement import-from-default { term 1 { from instance master; <-- this is the trick then accept; } } # show routing-instances instance1 instance-type virtual-router; interface ge-0/0/0.0; routing-options { instance-import import-from-default; }
Now when the command show route table instance1.inet.0, is run, you will see the routes imported from the default routing table inet.0.