Static Routes Configuration in Juniper
You want to be able to connect your router to the Internet.
Create a default static route:
# set routing-options static route 0.0.0.0/0 next-hop 172.16.100.1
Check the routing table to see the route:
# run show route table inet.0
inet.0: 20 destinations, 20 routes (19 active, 0 holddown, 1 hidden)
+ = Active Route, – = Last Active, * = Both
0.0.0.0/0 *[Static/5] 00:06:50
> to 172.16.100.1 via se-0/0/3
Here’s what the static route configuration might look like on the edge router:
# set routing-options static route 126.96.36.199 next-hop 172.16.100.1
Here, 188.8.131.52 is the address of the system outside your network, and 172.16.100.1 is the address of the other router to which the interface on your router connects.