KB ID 0001008
It takes me seconds to do this on an ASA, on every occasion I’ve had to do the same on a Juniper firewall I’ve had to research how to do it again.
Here I’m setting up the ‘default’ route to the Internet, but the syntax is the same for setting up any static route.
1. Connect to the firewall either by console cable or via SSH, go to CLI mode then configuration mode.
login: PeteL Password: ************
— JUNOS 12.1X47-D10.4 built 2014-08-14 22:21:50 UTC
PeteL@Petes-SRX> configure Entering configuration mode
2.Here is the syntax for adding a route, (0.0.0.0/0 denotes the default route or GOLR).
 PeteL@Petes-SRX# set routing-options static route 0.0.0.0/0 next-hop 126.96.36.199
3. Save the changes.
 PeteL@Petes-SRX# commit commit complete
Related Articles, References, Credits, or External Links