Overview

1 step to configure a static route.

  • Configure static route under routing-options section

Configuration

Configure static route under routing-options section.

cmd

set routing-options static route 10.1.23.0/24 next-hop 10.1.12.2
            

Topology

P1R1

cmd

set routing-options static route 10.1.23.0/24 next-hop 10.1.12.2
            

P1R2

cmd

set routing-options static route 10.1.13.0/24 next-hop 10.1.12.1
            

Verification

Show static route table.

cmd

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)