Static Route Configuration on Juniper Routers

Juniper Static Configuration
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 Comments

  1. krishan shakya
    May 8, 2012
    Reply

    Good One dear….please share more on juniper

  2. gokhankosem
    May 20, 2012
    Reply

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

  3. Khan
    May 28, 2012
    Reply

    please share how to upgrade junos IOS

  4. Syareefdol
    July 21, 2012
    Reply

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

  5. gokhankosem
    July 21, 2012
    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;)

  6. mumtaz
    November 16, 2012
    Reply

    u didnt upload more, ? plz upload more

  7. kausik maitra
    June 8, 2017
    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

Your email address will not be published. Required fields are marked *

You May Also Like

  • Mar 17, 2022
Networking Certifications has served as a stepping stone for those seeking to advance their careers in Networking, h they are...
What is Segment Routing? Network technology is developing day by day. With this development many Technologies are coming to our...
VPN Types   VPN (Virtual Private Network) is a technology that provides a secure connection to a private network  over...
What is a BGP Confederation?   BGP Confederations is an another mechanism to avoid iBGP Full Mesh topology like Route...