Static Route Configuration on Juniper Routers

Juniper Static Configuration

Static Route Configuration on Juniper Routers

In this article we will focus on static route configuration on Juniper routers. Here, we will use Juniper JuNOS and we will be familiar with some JuNOS commands.

The basic topology that we will use is below. We have three routers and two network. We will provide the route from one network to another.

Juniper Static Route GNS3 Configuration Example
 

Juniper Static Route Configuration
Example Topology
First of all we will give IP addresses to the interfaces. On JUNOS1 Router use the below commands to assign an ip to the interface em0.

root@JUNOS1> configure
[edit]
root@JUNOS1# edit interfeces em0
[edit interfaces em0]
root@JUNOS1# edit unit 0
[edit interfaces em0 unit 0]
root@JUNOS1# edit family inet
[edit interfaces em0 unit 0 family inet]
root@JUNOS1# set address 10.0.0.1/24
[edit interfaces em0 unit 0 family inet]
root@JUNOS1# commit

On JUNOS2 Router you can use the full command in only one line like below. But here we have two interfaces, so we will give to ip addresses that are in different network.

root@JUNOS2> configure
[edit]
root@JUNOS2# set interfeces em0 unit 0 family inet address 10.0.0.2/24
[edit]
root@JUNOS2# set interfeces em1 unit 0 family inet address 172.29.2.2/24
[edit]
root@JUNOS2# commit

For the last router, JUNOS3 Router use the below commands. Here we can also give ip address to the second interface but there is no device is connected to that interface.

Other Static Routing Lessons on Other Vendors

IPv4 Static Route Configuration on Cisco
IPv6 Static Route Configuration on Cisco
IPv6 Default Route Configuration on Cisco

IPv4 Static Route Configuration on Juniper
IPv6 Static Route Configuration on Juniper
IPv6 Static Route Configuration on Juniper

IPv4 Static Route Configuration on Nokia
IPv4 Default and Floating Route Configuration on Nokia

St Route Configuratioatic Route on Huawei and Load Balancing
IPv4 Default and Floating Route Configuration on Huawei

7 Responses to “Static Route Configuration on Juniper Routers”


  • krishan shakya / Reply

    Good One dear….please share more on juniper

    • gokhankosem / Reply

      Thank you Krishan…More on Juniper will come with next articles, keep on;)

  • Khan / Reply

    please share how to upgrade junos IOS

  • Syareefdol / Reply

    Salam gokhan..whats difference between unit 1 n unit 0?thks

    • gokhankosem / Reply

      Hi Syareefdol, it is the logical interface name taht you can give numver 0 through 16384. For example there is an interface, ge-0/0/1.0 . Here the “0” after “.” is unit number;)

  • mumtaz / Reply

    u didnt upload more, ? plz upload more

  • kausik maitra / Reply

    Sir,
    We have two set routing-options static route but i want to change default next hop i don know what is previous preference, how to change it please help me

Leave a Reply