Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 5

UNOS on GNS3 through 

Qemu
November 26, 2013

Hi everyone, last week I was trying for the junOS on GNS3, first I try VirtualBox, but it didn’t
workout for me, eventually I find some link and thought to come with the complete blog with
Qemu on GNS3, reference is pasted at the bottom of the blog, thank you.

Here is the link you can download the image from:

https://kickass.to/junos-binary-image-ready-for-qemu-gns3-t7523827.html

Steps:
1- extract the zipped files , you will get a 2.9 GB img file size

2- OPEN GNS3 —>Edit —> Qemu–>JunOS –> Binery Image->save

3- run your junos router it takes about 5-8 min


4- login = root

VIP note :
if you want ta add multiple juniper routers, you have to make multiple copies of the image with
different names
then from the GNS3 program right click on every juniper router -> configure -> Binary image
( but the path to another copy of the binary image
Initial configuration of junOS is done by these steps:

Exercise 1 – root password


Go to configuration mode using the configure command and try to commit the current candidate
configuration, then set a password for root and commit again.

Solution below

root> configure
Entering configuration mode

[edit]
root# commit

[edit]
'system'
Missing mandatory statement: 'root-authentication'
error: commit failed: (missing statements)

[edit]
root# set system root-authentication plain-text-password
New password:
Retype new password:

[edit]
root# commit
commit complete

Exercise 2 – edit
Let’s configure an IP address for the first interface on our JUNOS1 router using the edit
command. Place yourself at the following level: interfaces em0 unit 0 family inet. em0 is the
name for our first interface, give it this IP address and mask: 192.168.1.1/24

Solution below

[edit]
root@JUNOS1# edit interfaces em0 unit 0 family inet

[edit interfaces em0 unit 0 family inet]


root@JUNOS1# set address 192.168.1.1/24

[edit interfaces em0 unit 0 family inet]


root@JUNOS1# show
address 192.168.1.1/24;

Exercise 3 – top & commit check


Go to the top level, check your configuration and commit.

Solution below

[edit interfaces em1 unit 0 family inet]


root@JUNOS1# top

[edit]
root@JUNOS1# commit check
configuration check succeeds

[edit]
root@JUNOS1# commit
commit complete

Exercise 4 – telnet
Now we would like to configure telnet (SSH would be a better choice as it is secured) to
remotely configure JUNOS2 from JUNOS1. First check that nothing is configured under system
services level while staying at your current level (hint: use top). Then edit that level without
going back to the top level. Configure telnet with the set command, exit to the top level, check
what you are about to change and finally commit.

Solution below

[edit interfaces em1 unit 0 family inet]


root@JUNOS2# top show system services

[edit interfaces em1 unit 0 family inet]


root@JUNOS2# top edit system services
[edit system services]
root@JUNOS2# set telnet

[edit system services]


root@JUNOS2# exit

[edit]
root@JUNOS2# show | compare
[edit system]
+ services {
+ telnet;
+ }
[edit]
+ interfaces {
+ em0 {
+ unit 0 {
+ family inet {
+ address 192.168.1.2/24;
+ }
+ }
+ }
+ em1 {
+ unit 0 {
+ family inet {
+ address 10.1.1.2/8;
+ }
+ }
+ }
+ }

[edit]
root@JUNOS2# commit
commit complete

References:
http://www.sadikhov.com/
http://www.gns3.net
http://proximacentauri360.blogspot.in

You might also like