published: 6th of February 2019
1 step to configure a static route.
Configure static route under routing-options section.
set routing-options static route 10.1.23.0/24 next-hop 10.1.12.2
set routing-options static route 10.1.23.0/24 next-hop 10.1.12.2
set routing-options static route 10.1.13.0/24 next-hop 10.1.12.1
Show static route table.
show route protocol static
# output
inet.0: 50 destinations, 50 routes (50 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
10.1.23.0/24 *[Static/5] 00:00:07
> to 10.1.12.2 via ge-0/0/2.0
inet6.0: 86 destinations, 86 routes (86 active, 0 holddown, 0 hidden)