Vyatta OS under VirtualBox in GNS3

https://rbgeek.wordpress.com/2013/05/06/vyatta-basic-configuration-after-installation/

http://vyos.net/wiki/User_Guide

1. Download VyOS and VirtualBox Extention from
2. Install VirtualBox Extention
click menu File/Preferences/Extentions
click triangular icon on the right and point to downloaded VirtualBox Extention
3. Open VirtualBox
click New
4. Welcome to the New Virtual Machine Wizard
click Next
5. VM Name and OS Type
Name: VyOS
Operating System: Linux
Version: Debian (64 bit)
click Next
6. Memory
   512 MB
   click Next
Virtual Hard Disk
   tick Boot Hard Disk
   clck Create new hard disk
7. Welcome to the Create New Virtual Disk Wizard
   click Next
8. Hard Disk Storage Type
   click Dynamically expanding storage
   Hard drive file type: VMDK
   click Next
9. Virtual Disk Location and Size
Location: VyOS
Size: 2 GB
click Next
10. Summary
click Finish
11. click VyOS
click Settings
click System
   untick Floppy Drive
   untick Enable absolute pointing device
click Display
   Video Memory: 1MB
click Audio
   untick Enable Audio
click Network
   click Adapter 1
      tick Enable Network Adapter
      Attached to: Bridged Adapter
      Name: Realtek PCIe FE Family Controller
click USB
   untick Enable USB Controller
click Storage
   click IDE Controller/CD-ROM boot from VyOS iso
click Serial Ports
   tick Enable Serial Port
   Port Number: COM1
   Port Mode: Host Pipe
   tick Create Pipe
   Port File Path: \\.\pipe\VyOS
click OK
click Start
12. Configure VyOS
Login: vyos
Password: vyos
$install system
Would you like to continue? [Yes]
Partition [Auto]:
Install the image os? [sda]
This will destroy all dta on dev/sda
Continue? (Yes/No) [No}: yes
How big a root partition should I create? [2147 MB]:
Which one should I copy to sda? [/opt/vyatta/etc/config/config.boot]:
Enter vyatta password: vyos
Retype vyatta password: vyos
Which drive should GRUB modify the boot partition on? [sda]
$poweroff
Eject VyOS iso CD-ROM
   click Settings/Storage
   click icon on CD/DVD Drive and click “Remove disk from virtual drive”
13. clone VyOS
right click VyOS/Clone
New machine name: VyOS1
   tick Reinitialize the MAC addrress of all network cards
   click Next
Clone type
   click Full clone
   click Clone
right click VyOS/Clone
New machine name: VyOS2
   tick Reinitialize the MAC addrress of all network cards
   click Next
Clone type
   click Full clone
   click Clone
14. Open GNS3
Click Edit/Preferences/VirtualBox VMs
click New
   VM list: VyOS1
   click Finish
click New
   VM list: VyOS2
   click Finish
Image
Configure R1
Login: vyos
Password: vyos
$conf
#set system host-name r1
#set interfaces ethernet eth1 address 10.0.1.1/24
#set protocols static route 0.0.0.0/0 next-hop 10.0.1.254 distance ‘1’
#set system domain-name poc.com
#set service ssh port 22
#set system ntp server 0.pool.ntp.org
#set system login user user1 full-name “user1”
#set system login user user1 authentication plaintext-password mypassword
#set system login user user1 level admin
#commit
#save
NOTE:
You need to exit and login back to reflect hostname changing
Do similar thing above for R2
Test ping r1 from r2
vyos@r2:~$ ping 10.0.1.2
PING 10.0.1.2 (10.0.1.2) 56(84) bytes of data.
64 bytes from 10.0.1.2: icmp_req=1 ttl=64 time=0.038 ms
64 bytes from 10.0.1.2: icmp_req=2 ttl=64 time=0.038 ms

Arista vEOS under VirtualBox in GNS3 1.2.1

Download Arista vEOS vmdk and Aboot-veos from https://www.arista.com/en/support/software-download

In my example are Aboot-veos-2.1.0.iso and vEOS-lab-4.14.2F.vmdk

Set boot order to cd first
1
2
Set CD/DVD Drive as IDE Primary Slave
3
4
5
6
vEOS1:
login: admin
Last login: Tue Dec 16 12:48:19 on ttyS0
>en
#conf t
(config)#hostname vEOS1
(config)#int e1
(config-if-Et1)#no switchport
(config-if-Et1)#ip address 10.0.0.1/24
(config-if-Et1)#end
#wr
Copy completed successfully.
vEOS2:
login: admin
Last login: Tue Dec 16 12:48:19 on ttyS0
>en
#conf t
(config)#hostname vEOS2
(config)#int e1
(config-if-Et1)#no switchport
(config-if-Et1)#ip address 10.0.0.2/24
(config-if-Et1)#end
#wr
Copy completed successfully.
vEOS2#ping 10.0.0.1
PING 10.0.0.1 (10.0.0.1) 72(100) bytes of data.
80 bytes from 10.0.0.1: icmp_req=1 ttl=64 time=94.3 ms

JunOS under VirtualBox in GNS3 1.2.1

Download JunOS ova VirtualBox from
Import that ova
Rename ova to JunOS1
1
Disable Floppy and CD/DVD
2
While JunOS1 still powered off in VirtualBox
Right click JunOS1 and choose Clone/Ful Clone
16-Dec 16.17.17
Open GNS3
Click menu Preferences
Click menu VirtualBox/VirtualBox VMs
Click New
3
JUNOS1:
# set system root-authentication plain-text-password
New password:
retype new password:
# set interfaces em-0/0/0.0 family inet address 10.0.0.1/24
#commit
JUNOS2:
# set system root-authentication plain-text-password
New password:
retype new password:
# set interfaces em-0/0/0.0 family inet address 10.0.0.2/24
#commit
#ping 10.0.0.1
64 bytes from 10.0.0.1: icmp_seq=0 ttl=64 time=1.073 ms

IOU in GNS3 1.2 Installation

Source:

Download

1. GNS3 1.2 for Windows
2. GNS3 IOU VM.ova
3. IOU License
4. VirtualBox
5. Download these images
i86bi-linux-l2-ipbasek9-15.1g.bin
i86bi-linux-l3-adventerprisek9-15.4.1T.bin

search from Google Cisco-IOU-L2-L3-Collection-v3.7z

STEPS:

1. install GNS3 1.2 for Windows

2. install VirtualBox

3. put IOU license into C:\GNS3\Images\

4. run VirtualBox

5. import GNS3 IOU VM.ova into VirtualBox
6. check GNS3IOU  vm settings
In my test, I don’t have to do this. Its already there
Go to Settings → Network → Adapter 1 Make sure it is attached to Host-only Adapter with name VirtualBox Host-Only Ethernet Adapter. Then click OK.
 7. Start the GNS3 IOU VM, and login with following credentials.
User name : root
Password  : cisco
8. check its ip address
by default is 192.168.56.101

#ifconfig

9. move these images into GNS3 IOU VM

i86bi-linux-l2-ipbasek9-15.1g.bin
i86bi-linux-l3-adventerprisek9-15.4.1T.bin
open http://192.168.56.101:8000/upload in Web browser
upload both files above
1
10. open GNS3
click menu Edit/Preferences
click VirtualBox/VirtualBox VMs
click New button
choose VM list: GNS3 IOU VM
11. click GNS3 server
click Local server tab
Path: gns3server.exe
Host binding: 127.0.0.1
Port: 8000 TCP
tick Automatically start the server on startup
click Remote servers tab
Host: 192.168.56.101
Port: 8000 TCP

click Add

12. click IOS on UNIX

click General settings tab
Path to IOURC(pushed to the server): C:\GNS3\images\iourc.txt
13. click IOU devices
click New button
2
3
4
click New button
5
6
7

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

Mikrotik under Qemu in GNS3 1.2.3

NOTE:
Better alternative is to run Mikrotik under VirtualBox instead of Qemu
Download and install GNS3 All-in-One that already include Qemu and WireShark
Download latest mikrotik iso from http://www.routeros.co.id/ and put into c:\Program Files\GNS3>
click Start/Search cmd
right click cmd and “Run as administrator”
>cd c:\Program Files\GNS3\qemu-2.1.0
>qemu-img.exe create -f qcow2 mikrotik.img 128M
>qemu-system-x86_64w.exe mikrotik.img -boot d -cdrom mikrotik-6.27.iso
04091401
press a
press i
Do you want to keep old configuration? [y/n]n
Warning: all data on the disk will be erased!
Continue? [y/n]y
when it ask to press ENTER to reboot, just click Close
-verify mikrotik.img
>qemu-system-x86_64w.exe mikrotik.img
Mikrotik Login: admin
empty password
-open GNS3 menu Edit/Symbol Manager
040902
-open GNS3 menu Edit/Preferences
click Qemu/Qemu Guest
09-Mar 04.47.46
Install loopback
>hdwwiz.exe
-Welcome to the Add Hardware Wizard
click Next
-The wizard can help you to install other hardware
click Install the hardware that I manually select from a list (Advanced)
click Next
-From the list below…
click Network adapters
click Next
-Select Network Adapter
select Microsoft/Microsoft KM-TEST Loopback Adapter
click Next
-The wizard is ready to install your hardware
click Next
-Completing the Add Hardware Wizard
click Finish
Rename Ethernet 2 nic to Loopback
06091401
click 2x your Loopback nic
disable iov6
06091402
click 2x IPv4 and set your pc loopback ip address
06091403
-right click GNS3/Run as Administrator
06091404
-drag Cloud
-right click Cloud C1 and choose “Change the hostname”
-change C1 to Cloud1 hostname
-click 2x Cloud Cloud1
change NIO Ethernet/Generic Ethernet NIO to Loopback NIC
06091405
click Add
06091406
06091407
NOTE:
In picture above I need to use Hub instead of Switch for GNS3 1.2.3, because if I use switch, I can’t ping host loopback ip address
-Start mikrotik
Click 2x mikrotik
Set console port to 8291, so that you can connect Winbox from your PC to mikrotik ip address
09-Mar 05.22.14
-set Mikrotik ip address
>ip address add address=10.0.0.254/24 interface=ether1
>ip address print
To connect your PC to Cloud1
set your pc ip to static ip
06091408
-click Advanced
06091409
-click Add IP Address
06091410
-click Add
06091411
Now, if you try to ping from your pc to Cloud1 loopback. You should get reply
C:\Users\user>ping 1.1.1.101
Pinging 1.1.1.101 with 32 bytes of data:
Reply from 1.1.1.101: bytes=32 time<1ms TTL=128
Reply from 1.1.1.101: bytes=32 time<1ms TTL=128
Reply from 1.1.1.101: bytes=32 time<1ms TTL=128
Reply from 1.1.1.101: bytes=32 time<1ms TTL=128
Ping statistics for 1.1.1.101:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 0ms, Average = 0ms
-open WInbox and go to 10.0.0.254

Add Olive in VMWare without using TCP Named Pipe

This is especially important when you trying to run this lab on Mac
diag1
03-Sep 07.53.38
in every R1 R2 R3
vNet1
 vNet2
root@R1# run show interfaces terse
Interface               Admin Link Proto    Local                 Remote
dsc                     up    up
em0                     up    up
em0.0                   up    up   inet     192.168.2.101/24
em1                     up    up
em1.0                   up    up   inet     10.1.12.1/30
root@R1#set system services ssh
root@R2# run show interfaces terse
Interface               Admin Link Proto    Local                 Remote
dsc                     up    up
em0                     up    up
em0.0                   up    up   inet     192.168.2.102/24
em1                     up    up
em1.0                   up    up   inet     10.1.12.2/30
em2                     up    up
em2.0                   up    up   inet     10.1.23.1/30
root@R2#set system services ssh
root@R3# run show interfaces terse
Interface               Admin Link Proto    Local                 Remote
dsc                     up    up
em0                     up    up
em0.0                   up    up   inet     192.168.2.103/24
em1                     up    up
em2                     up    up
em2.0                   up    up   inet     10.1.23.2/30
root@R3#set system services ssh