Juniper Lab Scenarios
Juniper Lab Scenarios
Juniper Lab Scenarios
Step-by-Step Procedure
[edit interfaces]
[edit routing-options]
user@B# commit
[edit interfaces]
[edit routing-options]
[edit]
user@D# commit
Results
Confirm your configuration by issuing the show interfaces and show routing-options commands.
If the output does not display the intended configuration, repeat the instructions in this example
to correct the configuration.
Device B
Device D
Verification
Purpose
Make sure that the static routes appear in the routing tables of Device B and Device D.
Action
Meaning
Purpose
Action
JunOs2 configuration:
login: root
root@% Cli
[edit]
root # commit
JunOs3 configuration:
Cli
configure
commit
JunOs4 configuration:
Cli
configure
commit
Cli
configure
Cli
configure
Cli
configure
Testing:
You can verify your configurations with following results:
root@% cli
root>
root> configure
[edit]
root#
Command example:
root# show interfaces em0
set interfaces <interface-name> unit <unit number> family inet <IP address>/mask
Suppose you want to set IP address 22.2.2.2 to interface ge-0/0/2 you can do it like this:
root# commit
Lab Tasks:
We have three JunOS routers in our topology, our task is to configure all the routers in same
OSPF area 0.
Few commands are required for the configuration of OSPF on juniper but if you want to explore
how to configure IP addresses to JunOS interfaces you can visit IP & static routing on JunOS.
Configuration of OSPF on JunOS2:
login: root
root@% Cli
root > configure
[edit]
root # set interfaces em0 unit 0 family inet address 172.16.1.1/24
root # set protocols ospf area 0.0.0.0 interface em0
root #Commit
Having issue with commit command visit missing mandatory statement'root-authentication'
learn more about the configuration of junos in gns3 you can see how to configure junos on
gns3 and Juniper commands.
Configuration of OSPF on JunOS3:
login: root
root@% Cli
root > configure
[edit]
root # set interfaces em0 unit 0 family inet address 172.16.1.2/24
root # set interfaces em1 unit 0 family inet address 192.168.1.1/24
OSPF Configurations commands
root # set protocols ospf area 0.0.0.0 interface em0
root # set protocols ospf area 0.0.0.0 interface em1
root #Commit
Configuration of OSPF on JunOS4:
login: root
root@% Cli
root > configure
[edit]
root # set interfaces em0 unit 0 family inet address 192.168.1.2/24
You can ping 192.168.1.2 from JunOS2 and it will be successful in case of correct
configurations, also find the show route command output on JunOS2 which is showing some
OSPF routes in routing table.
If you want learn more about the configuration of junos in gns3 you can visit how to
configure junos on gns3 and Juniper commands.
Lab Requirements:
There are three Junos routers in given topology which are connected with each other and already
configured with correct IP addresses according to topology. If you want to explore how to
configure IP addresses to JunOS interfaces you can visit IP & static routing on JunOS. We have
the following task for this Gns3 Lab:
Explanation:
Configuration of RIP on junOS is very simple, you need only few commands and then good to
go..:).
By default JunOS don't advertise RIP routes & the routes received from neighbors, so we need to
define a routing policy for advertisement of RIP routes.
login: root
root@% Cli
root > configure
[edit]
root # set protocols rip group rip-routes neighbor em0
where rip-routes is the group name, which you can set it of own choice and em0 is the connected
interface of Junos2.
Where "advertise-RIProutes" is the name of policy. now you need to apply this policy with
following command.
root # set protocols rip group rip-routes export advertise-RIProutes
root # commit
Useful link: how to save current configuration in junos.
RIP Configuration on JunOS3:
root
Cli
configure
set protocols rip group rip-routes neighbor em0
set protocols rip group rip-routes neighbor em1
RIP Configuration on JunOS4:
root
Cli
configure
set protocols rip group rip-routes neighbor em0
You can test your configuration by ping from junos2 to 222.0.0.1 which is a loopback address on
junos4. Also "show route" will show all routes on all routers. An output of show route command
will have the following routes:
Junos static route configuration:
In this article i will show you how to configure static routing with junier router on gns3. For configuring
static routing you need to define the route as static and with a next-hop address with it.
Please note this lab is performed only for study and practice purposes using Junos
olive , which is unsupported and unsupportable platform & it is not suitable for any type of
commercial use.
Lab Requirements
You have three juniper routers connected with each other, you have the following tasks to perform:
Other Detail:
Junos image version= JunOS Olive image 12.1
Gns3 version= Gns3 1.1 (you can use any version)
VM VirtualBox version= 4.2.4 (you can use any version)
login: root
root@% Cli
[edit]
root # commit
JunOs3 configuration:
Cli
configure
commit
JunOs4 configuration:
Cli
configure
commit
Cli
configure
Cli
configure
Cli
configure
Testing:
You can verify your configurations with following results: