Sunday, November 11, 2012

How to add Qemu host in GNS 3


Microcore Linux 2.10 image can be downloaded.

Setup image for Qemu host

  • Start Qemu host and assign ip address and default gateway

· Start Qemu Host by right clicking and pressing Start button Qemu window will open

· Assign IP address for eth0 interface using command:

sudo su
ifconfig eth0 netmask up

· To verify what ip address eth0 interface has use following command

ifconfig eth0

· You can also set hostname to host using hostname command:

hostname Qemu1

Try to reach directly connected network

· Try to ping router ( stop by pressing CRTL + C.


Setup default gateway to reach remote networks

Try to ping the Loopback interface of R1. It's not answering because of host doesn't know any route to it. To see routing table in linux use route command. To add default route use againroute command. After adding default route towards R1 you can reach remote networks.


Using telnet and SSH

You can use Qemu host as telnet and SSH client when connection to R1 for example.



Making IP-address and default gateway persistent

By default when added using ifconfig and route commands IP-address and default gateway do not remain during reboot.

· To make settings persistent do following:

sudo su
vi /

· Add follwing lines to the file:

hostname Qemu1
ifconfig eth0
route add default gw

· Save file:

o Press Esc

o Type :wq!

· Run following command:

/usr/bin/ backup

Now you can reboot the router and settings will remain.

Running multiple host simultaneously

Currently you can't run multiple Microcore host simultaneuosly. GNS3 Development team is trying to resolve this issue...

Using console connection

As you might have noticed there is Qemu window appears after starting Qemu host. However, you have also option to use normal console connection with PuTTY or some other telnet application. To get this working you have to have correct Qemu image. Currently you can download one from here:

No comments:

Post a Comment