vSRX in GNS3 1.1 QEMU

SOURCE: http://poucksa.wordpress.com/2014/09/26/juniper-firefly-on-gns3-version-1/
Download Juniper FireFly from https://webdownload.juniper.net/swdl/dl/secure/site/1/record/55919.html
Download and install 7-Zip
Download and install GNS3 1.1 from https://community.gns3.com/community/software/download

right click junos-vsrx-12.1X46-D10.2-domestic.ova and choose 7-Zip/Extract to c:\junos-vsrx-12.1X46-D10.2-domestic
run cmd
>cd c:\junos-vsrx-12.1X46-D10.2-domestic
c:\Program Files\GNS3\qemu\>qemu-img.exe convert -O qcow2 c:\junos-vsrx-12.1X46-D10.2-domestic\junos-vsrx-12.1X46-D10.2-domestic-disk1.vmdk c:\junos-vsrx-12.1X46-D10.2-domestic\junos-vsrx-12.1X46-D10.2-domestic.img
Move junos-vsrx-12.1X46-D10.2-domestic.img into C:\Users\user\GNS3\Images

run GNS3
open menu Edit/Preferences/QEMU/QEMU VMs
click New button
Type default

24-Oct 10.14.59

24-Oct 10.14.25

24-Oct 10.15.20

24-Oct 10.15.38

24-Oct 19.15.10
vsrx1:
# set system host-name vsrx1
# set system root-authentication plain-text-password
New password:
Retype new password:
# set interfaces ge-0/0/0.0 family inet address 10.1.12.1/30
# set interfaces lo0.0 family inet address 1.1.1.1/32
# delete security
# set security forwarding-options family mpls mode packet-based
# commit
# run request system reboot
Reboot the system ? [yes,no] (no) yes

vsrx2:
# set system host-name vsrx2
# set system root-authentication plain-text-password
New password:
Retype new password:
# set interfaces ge-0/0/0.0 family inet address 10.1.12.2/30
# set interfaces ge-0/0/1.0 family inet address 10.1.23.1/30
# set interfaces lo0.0 family inet address 2.2.2.2/32
# delete security
# set security forwarding-options family mpls mode packet-based
# commit
# run request system reboot
Reboot the system ? [yes,no] (no) yes

vsrx3:
# set system host-name vsrx3
# set system root-authentication plain-text-password
New password:
Retype new password:
# set interfaces ge-0/0/0.0 family inet address 10.1.23.2/30
# set interfaces lo0.0 family inet address 3.3.3.3/32
# delete security
# set security forwarding-options family mpls mode packet-based
# commit
# run request system reboot
Reboot the system ? [yes,no] (no) yes

Test ping to vsrx1 and vsrx3
vsrx2# run ping 10.1.12.1
vsrx2# run ping 10.1.23.2

Configure OSPF in vsrx1, vsrx2 and vsrx3
vsrx1# set protocols ospf area 0 interface ge-0/0/0.0
vsrx1# set protocols ospf area 0 interface lo0.0
vsrx2# set protocols ospf area 0 interface ge-0/0/0.0
vsrx2# set protocols ospf area 0 interface ge-0/0/1.0
vsrx2# set protocols ospf area 0 interface lo0.0
vsrx3# set protocols ospf area 0 interface ge-0/0/0.0
vsrx3# set protocols ospf area 0 interface lo0.0
vsrx2# run show ospf neighbour
> show ospf neighbor
Address Interface State ID Pri Dead
10.1.12.1 ge-0/0/0.0 Full 1.1.1.1 128 33
10.1.23.2 ge-0/0/1.0 Full 3.3.3.3 128 36

Advertisements

2 thoughts on “vSRX in GNS3 1.1 QEMU

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s