Showing posts with label GNS3. Show all posts
Showing posts with label GNS3. Show all posts
How To – Create Cisco Switch with IOU [IOS On Unix] Loaded on CentOS
Posted by Ahsan Tasneem | 10:36 AM | CentOS, cisco, GNS3, How To, Linux, Qemu | 3 comments »
The tutorial describes steps
required for creating Cisco switch based on IOUl2. The Qemu image with
installed CentOS Linux is loaded with IOU image. The IOU (IOS on UNIX) instances are attached
to the network using iou2net.pl script written by Jeremy L. Gaddis. The script
forwards frames between a IOU instance and a Qemu network adapters. The script
is started using tap mode when Qemu interfaces are bridged with virtual tap
interfaces.
[How To] - Troubleshoot GNS3 Qemu
Posted by Ahsan Tasneem | 5:59 AM | GNS3, How To, Qemu | 2 comments »
Many
GNS3 users use Qemu emulator to run various network OS installed on Qemu images
– for example Olive, ASA, Vyatta and many others. Some users complain about not
having a network connections between these devices or a console window appears
and disappears after the short time. In both cases Qemu hosts are not started
properly and Qemu images don’t work.
This issues are typically caused by entering a wrong parameter in GNS3 setting. For instance when user checks a box “Use kvm” in GNS3 settings and CPU doesn’t support kvm or kvm is not enabled in BIOS, it ends with warning message “unknown parameter kvm” and Qemu image is not started. Please remember that kvm is not supported by Windows so you shouldn’t have “Use kvm” checked if GNS3 is installed on Windows.
Another issue mainly occurs on Linux and Mac OS and it is caused by using unpatched Qemu binary. GNS3 create UDP tunnels in order to make connection between Qemu devices and that is why Qemu source have to be patched for UDP tunnels, compiled and installed by user. Although many Linux distributions already have Qemu installed in /usr/bin/ directory, this version of Qemu is unlikely to be patched for UDP tunnels. For this reason the Qemu doesn’t understand parameter -net type udp and it is halted after its start.
As long as patched Qemu binary is included in GNS3 all-in-one package, the Windows users don’t need to patch, compile and install Qemu by themselves.
Except of the wrong parameters I have already mentioned there can be another problems which prevent Qemu starting successfully. If you find Qemu difficult to start you should consider to do following troubleshooting to find out the reasons why Qemu doesn’t work.
This issues are typically caused by entering a wrong parameter in GNS3 setting. For instance when user checks a box “Use kvm” in GNS3 settings and CPU doesn’t support kvm or kvm is not enabled in BIOS, it ends with warning message “unknown parameter kvm” and Qemu image is not started. Please remember that kvm is not supported by Windows so you shouldn’t have “Use kvm” checked if GNS3 is installed on Windows.
Another issue mainly occurs on Linux and Mac OS and it is caused by using unpatched Qemu binary. GNS3 create UDP tunnels in order to make connection between Qemu devices and that is why Qemu source have to be patched for UDP tunnels, compiled and installed by user. Although many Linux distributions already have Qemu installed in /usr/bin/ directory, this version of Qemu is unlikely to be patched for UDP tunnels. For this reason the Qemu doesn’t understand parameter -net type udp and it is halted after its start.
As long as patched Qemu binary is included in GNS3 all-in-one package, the Windows users don’t need to patch, compile and install Qemu by themselves.
Except of the wrong parameters I have already mentioned there can be another problems which prevent Qemu starting successfully. If you find Qemu difficult to start you should consider to do following troubleshooting to find out the reasons why Qemu doesn’t work.
How To Install Olive 12.1R1.9 With Qemu
Posted by Ahsan Tasneem | 3:37 AM | GNS3, Juniper, juniper olive, junOS, Linux, Qemu | 0 comments » The article describes installation of Junos 12.1R1.9 on emulated x86 hardware. Hardware is emulated by Qemu and Junos installed on it is known as Olive.
As Olive does not have Packet Forwarding Engine PFE attached, packet forwarding is exclusively depending on performance of the host CPU. In addition, they are also configurations known as not working on Olive. Considering these limits, Olive can never substitute real Juniper hardware.
In spite all of that Olive is an excellent tool for testing configurations that can be later deployed on real Juniper hardware. Thanks to GNS3 project that offers lightweight GUI for Qemu, complex labs can be easily deployed without real need of knowing Qemu commands.
My goal was to rewrite these articles for actual Junos 12.1R1.9 version and create a guide that helps you to install Junos. Please use links above if you feel that you need to clarify details or further explanation.
As Olive does not have Packet Forwarding Engine PFE attached, packet forwarding is exclusively depending on performance of the host CPU. In addition, they are also configurations known as not working on Olive. Considering these limits, Olive can never substitute real Juniper hardware.
In spite all of that Olive is an excellent tool for testing configurations that can be later deployed on real Juniper hardware. Thanks to GNS3 project that offers lightweight GUI for Qemu, complex labs can be easily deployed without real need of knowing Qemu commands.
My goal was to rewrite these articles for actual Junos 12.1R1.9 version and create a guide that helps you to install Junos. Please use links above if you feel that you need to clarify details or further explanation.
JUNOS OLIVE 12.1R1.9 VMware/Qemu for GNS3
Posted by Ahsan Tasneem | 3:19 AM | Emulators, GNS3, Juniper, juniper olive, junOS, Qemu, Vmware | 4 comments » First download JunOS Olive 12.1R1.9 and setup all requirement http://certcollection.org/forum/topic/150241-juniper-junos-olive-121r19-for-vmwareqemu/
Note: you can also download from some other link by searching on google if this link is found inactive
then download StarWind V2V Converter
http://www.starwindsoftware.com/converter
Step 1
Note: you can also download from some other link by searching on google if this link is found inactive
then download StarWind V2V Converter
http://www.starwindsoftware.com/converter
Step 1
JUNOS Emulators: Features You CAN & You CAN’T PRACTICE
Posted by Ahsan Tasneem | 2:55 AM | Emulators, GNS3, Juniper, Juniper Networks, junOS | 0 comments » Emulators runs the real JUNOS software(which runs on a router) on a virtual machine using Qemu or the VMware. As per experience you can practice almost all the features but for sure there are few which you can't.
2:- OSPF & ISIS. If you are using Qemu, under protocol ISIS you need to
configure interface type "point-to-point" otherwise adjacency will not be up. If you are using VM ware then you don’t need "point-to-point".
3:- BGP, you can configure almost all the knobs mentioned in the books.
4:- Policies works just fine with either emulators.
5:- MPLS TE also works fine.
2:- Few firewall features
3:- L2 VPN
4:- Multicasting
JUNOS allows to configure the hardware or services which are currently not running in the router, means you can configure an ATM or a frame-relay interface and save the configuration but this configuration will not be associated with any interface, in short you can just type the command even for the hardware which is not present but you cannot see it working.
If you are a beginner then there is lot more you could do with these.
Best of luck.
You CAN do the following:
1:- Basic system configuration like snmp, syslog, user accounts & NTP etc.2:- OSPF & ISIS. If you are using Qemu, under protocol ISIS you need to
configure interface type "point-to-point" otherwise adjacency will not be up. If you are using VM ware then you don’t need "point-to-point".
3:- BGP, you can configure almost all the knobs mentioned in the books.
4:- Policies works just fine with either emulators.
5:- MPLS TE also works fine.
You CAN'T do the following:
1:- VRRP on either emulators2:- Few firewall features
3:- L2 VPN
4:- Multicasting
JUNOS allows to configure the hardware or services which are currently not running in the router, means you can configure an ATM or a frame-relay interface and save the configuration but this configuration will not be associated with any interface, in short you can just type the command even for the hardware which is not present but you cannot see it working.
If you are a beginner then there is lot more you could do with these.
Best of luck.
Step By Step Guide To Install JunOS Olive in VMWware Fusion
Posted by Ahsan Tasneem | 2:39 AM | GNS3, Juniper, Juniper Networks, juniper olive, junOS, Virtualization, Vmware | 0 comments »Tested with VMWare Fusion Version 3.1.2 and JunOS 10.4.R3.
Requirements
VMWare Fusion #should also work with VMWare Workstation
FreeBSD 7.1
JunOS M-, MX- oder T-Series Router Firmware
Disc (8GB) Partition overview:
ad0s1a / 1024M
ad0s1b swap 1024M
ad0s1d swap 24M
ad0s1e /config 12M
ad0s1f /var the rest
Command summary to prepare the original JunOS Image to an Olive Image:
Requirements
VMWare Fusion #should also work with VMWare Workstation
FreeBSD 7.1
JunOS M-, MX- oder T-Series Router Firmware
Disc (8GB) Partition overview:
ad0s1a / 1024M
ad0s1b swap 1024M
ad0s1d swap 24M
ad0s1e /config 12M
ad0s1f /var the rest
Command summary to prepare the original JunOS Image to an Olive Image:
[Video] - Step By Step Guide To Install JunOS on GNS3
Posted by Ahsan Tasneem | 10:35 AM | GNS3, Juniper Networks, junOS, Qemu | 1 comments »Note: Steps by Steps video guide to install JunOS 10.1 in Qemu for GNS3 for Juniper router simulation can be viewed at the end of this post.
Download the required software
1. JunOS 10.X (use Torrents may OS Image are available from there i also got) Link
2. Download FreeBSD 4.11 as base OS for Router Download
3. Download Qemu 0.11.0 from GNS3 web site Download
4. Need to Software to create CD ISO image. ex: Deep Burner
Time to Start
Step 1: Download all the given files above
Step 2: Extract Qemu in a folder
Step 3: Open cmd and navigate to extracted folder
Step 4: Create a HDD image to install JunOS of 4GB
qemu-img.exe create j.img -f qcow2
Step 5:
Start the Qemu with Free BSD CD and Created HDD
qemu.exe -L . -m 256 -hda j.img -boot d -localtime –cdrom ..\4.11.4.11-RELEASE-i386-miniinst.iso
Download the required software
1. JunOS 10.X (use Torrents may OS Image are available from there i also got) Link
2. Download FreeBSD 4.11 as base OS for Router Download
3. Download Qemu 0.11.0 from GNS3 web site Download
4. Need to Software to create CD ISO image. ex: Deep Burner
Time to Start
Step 1: Download all the given files above
Step 2: Extract Qemu in a folderStep 3: Open cmd and navigate to extracted folder
Step 4: Create a HDD image to install JunOS of 4GB
qemu-img.exe create j.img -f qcow2
Step 5:
Start the Qemu with Free BSD CD and Created HDD
qemu.exe -L . -m 256 -hda j.img -boot d -localtime –cdrom ..\4.11.4.11-RELEASE-i386-miniinst.iso
Step By Step Guide To Install JUNOS on GNS3 [Part 3][Updated]
Posted by Ahsan Tasneem | 12:26 PM | GNS3, Juniper Networks, junOS, Qemu | 0 comments »Updating JunOS
You can update your version of JunOS from the CLI with the following command:
request system software add [jinstall_package]
Running your router(s)
Now you have a base olive image. Qemu allows you to use this as a base for other images and only writing the changes to your “slave” images saving on disk space! You can also use less memory for each Qemu instance.
Create a new image off of your base image. Repeat for all your routers you want to emulate:
qemu-img create -b olive-base.img -f qcow2 R1.img
Start your router and then telnet to it:
2001 Once logged in, you can type “cli” to launch the JunOS command line interpreter, exit to … exit and halt to shutdown FreeBSD. Remember to kill your qemu instance(s).
qemu R1.img -m 96 -nographic -daemonize -serial telnet::2001,server,nowait \
-localtime -net nic,macaddr=00:aa:00:60:01:01,model=e1000 -net user telnet localhost
You can update your version of JunOS from the CLI with the following command:
request system software add [jinstall_package]
Running your router(s)
Now you have a base olive image. Qemu allows you to use this as a base for other images and only writing the changes to your “slave” images saving on disk space! You can also use less memory for each Qemu instance.
Create a new image off of your base image. Repeat for all your routers you want to emulate:
qemu-img create -b olive-base.img -f qcow2 R1.img
Start your router and then telnet to it:
2001 Once logged in, you can type “cli” to launch the JunOS command line interpreter, exit to … exit and halt to shutdown FreeBSD. Remember to kill your qemu instance(s).
qemu R1.img -m 96 -nographic -daemonize -serial telnet::2001,server,nowait \
-localtime -net nic,macaddr=00:aa:00:60:01:01,model=e1000 -net user telnet localhost
Step By Step Guide To Install JUNOS on GNS3 [Part 2][Updated]
Posted by Ahsan Tasneem | 11:48 AM | FreeBSD, GNS3, Juniper Networks, junOS, Qemu | 0 comments »FreeBSD installation
Now that we have qemu installed, we can create the image for installing FreeBSD. Run this command to create it and allocate 4 GB:
qemu-img create -f qcow2 olive-base.img 4G
Launch Qemu to install FreeBSD on the image:
qemu -m 256 -hda olive-base.img -cdrom 4.11-RELEASE-i386-miniinst.iso \
-boot d -localtime
Qemu window will pop up (remember, by default press CTRL + ALT to release the cursor in Qemu):
Now that we have qemu installed, we can create the image for installing FreeBSD. Run this command to create it and allocate 4 GB:
qemu-img create -f qcow2 olive-base.img 4G
Launch Qemu to install FreeBSD on the image:
qemu -m 256 -hda olive-base.img -cdrom 4.11-RELEASE-i386-miniinst.iso \
-boot d -localtime
Qemu window will pop up (remember, by default press CTRL + ALT to release the cursor in Qemu):
Step By Step Guide To Install JunOS on GNS3 [Part 1] [Updated]
Posted by Ahsan Tasneem | 9:17 AM | GNS3, Juniper, junOS, Qemu | 3 comments »
This article explain you how to emulate Juniper JunOS on a PC using Qemu. This is an updated and enhancedversion of excellent howtos from Juniper Clue and Internetwork Pro as well asHimawan Nugroho’s blog. I mainly focused on Qemu, so if you wish to install JunOS on a real PC or using VMware, please have a look at the Juniper Clue article for more information (and of course Google).
So what’s new you would say? First, I chose to use the latest version of Qemu: the 0.11.0 which supports the Intel e1000 network card emulation since version 0.10.0. and includes several fixes for it. I have modified and adapted the old patch for Qemu 0.11.0, it includes the UDP tunnel (connection to dynamips/GNS3), PCAP and LCAP support. Also, the patch allows multicast traffic with the e1000, i82557b and i82559er Qemu emulated network cards.
Moreover, this article show how to emulate JunOS on multiple operating systems: Mac OS X, Windows XP and Linux Ubuntu 9.04 without using an untrustworthy obscure binary downloaded from a forum you can’t even read the language.Disclaimer
Please note that JunOS is not provided and will not be. So please don’t ask. Also, I do not take any responsibility on what happen on your PC, keep in mind this howto requires some patience and that is not for complete beginners. Moreover, this howto doesn’t necessarily present the best and/or easiest way to emulate JunOS. This is the cleanest and less intrusive for me but please feel free to give me constructive comments and tell what worked or didn’t worked for you.
Installation
How To - Bridging GNS3 to a wireless NIC (linux and windows)
Posted by Ahsan Tasneem | 2:10 AM | GNS3, How To, Simulator, Wireless | 0 comments »While poking around the new GNS3.net forum, I found two very interesting howto posts. Jeremy Grossman (gns3 author) describes the processes needed to bridge a wireless NIC to GNS3 using both Linux and Windows.
Here are the links:
Pemu – Pix Emulator with GNS3
Posted by Ahsan Tasneem | 11:20 PM | cisco, Dynamips, GNS3, How To, Pemu, PIX, Simulator | 0 comments »The guys at GNS3.net have done it again! They just released version .04 of their incredible network emulation software. There are lots of new features including Pemu integration, c1700 and WICs Support and Project feature (you can keep router configs, nvram …).
Here is a full list of the new features:
- A dynamic mode (no design/emulation modes)
- A new .net save/load.
- c1700 and WICS support.
- PIX emulation.
- Dynamips’s ATM bridge.
- Capture feature for links from the GUI.
- IDLE PC calculation from the GUI.
- GUI improvements (save the window state when closing GNS3 …)
- Annotation feature.
- Project feature (you can keep router configs, nvram …)
- NULL NIO support.
- PDF export.
- New languages.
I'll be posting more on this, keep following @ahsantasneem. Do let me know if you face any problem.
How To - Make a DMG package from GNS3
Posted by Ahsan Tasneem | 9:50 PM | DMG, Dynamips, GNS3, Hakintosh, How To, MAC OS X, Simulator | 0 comments »
This step-by-step procedure will show you how to make a DMG package from the GNS3 source code. I’ve built the package on Mac OS X Snow Leopard and used Py2app to make a Mac OS X application. Also, have a look at this article that really helped me.
This procedure worked for me, please let me know if you encounter any issue and I’ll update it. Also, please tell me if you can make it work on Mac OS X Leopard (10.5.x).
How To - Run GNS3 on Mac OS X
Posted by Ahsan Tasneem | 9:46 PM | Apple, cisco, Dynamips, GNS3, Hakintosh, How To, Kqemu, MAC OS X, Python, Qemu, Simulator | 2 comments »Here are instructions to run GNS3 from the sources (not the standalone compiled DMG version) on your favorite operating system. You will have to install or compile dependencies like Qt, Sip and PyQt. This will allow you to use the latest development version of GNS3 that you can download from http://code.gns3.net.
Method 1
- Install the Apple Devs Tools (on your Mac OS X DVD or download it on ADC account). Run and install XcodeTools.mpkg.
- Download Python 2.6 for MacOS X and install it.
- Download Qt librairies for Mac and install them.
- Download SIP, open a terminal and go in the folder where you downloaded the tar file and compile using the following commands (example for SIP 4.9.3):
How To: Use MRTG with GNS3
Posted by Ahsan Tasneem | 11:24 PM | cisco, GNS3, How To, MRTG | 0 comments »
What is MRTG?
- MRTG is opensource program which gets traffic statistics from devices using SNMP and builds graphs like this:
Installing MRTG
- Download MRTG from http://oss.oetiker.ch/mrtg/ and follow installing instructions to install MRTG
How To: Emulate Cisco ASA in GNS3
Posted by Ahsan Tasneem | 11:21 PM | cisco, Cisco ASA, Dynamips, GNS3, How To, IOS, Qemu | 0 comments »In this article, I will show you how to emulate Cisco ASA using Qemu. Once again, please note that ASA is not provided and will not be. So please don’t ask. Also be aware that ASA does not 100% work in Qemu but that’s enough to play with it.
Installation
First compile and patch Qemu as you would do for running JunOS. This will give us pcap, lcap and UDP tunnels (i.e. GNS3/Dynamips connections) capabilities.
Then obtain ASA itself. If you are smart and patient you will find it. I used asa802-k8.bin for my installations. As far as I know, nobody has been able to run ASA > version 8.2 (ASA keeps rebooting).
The next step is to get an initrd and a Linux kernel (inside the initrd) from your ASA image to use them with Qemu and also fix the initrd for our needs. The initrd is zipped and archived in the ASA image, we have to extract it.
There are 2 ways, manually or using a tool I created.
First compile and patch Qemu as you would do for running JunOS. This will give us pcap, lcap and UDP tunnels (i.e. GNS3/Dynamips connections) capabilities.
Then obtain ASA itself. If you are smart and patient you will find it. I used asa802-k8.bin for my installations. As far as I know, nobody has been able to run ASA > version 8.2 (ASA keeps rebooting).
The next step is to get an initrd and a Linux kernel (inside the initrd) from your ASA image to use them with Qemu and also fix the initrd for our needs. The initrd is zipped and archived in the ASA image, we have to extract it.
There are 2 ways, manually or using a tool I created.
How To - Step By Step Installation of JunOS on GNS3 [Part 4]
Posted by Ahsan Tasneem | 11:08 PM | Dynamips, FreeBSD, GNS3, How To, Hypervisor, IOS, Juniper Networks, juniper olive, junOS, Kqemu, MAC OS X, Multiple Olives, Pemu, Qemu, ScreenOS, Simulator, TAP Interfaces, Vmware, winpcap | 0 comments »Testing
To check if everything work, let’s configure 2 Olives:
root@%cli
root>edit
[edit]
root#
[edit]
root#set system root-authentication plain-text-password
New password:
Retype new password:
[edit]
root#set interfaces em0 unit 0 family inet address 10.0.0.1/8
[edit]
root#commit
commit completeConfigure the other device using the same commands but with another IP address (e.g. 10.0.0.2/8) and ping.
How To - Step By Step Installation of JunOS on GNS3 [Part 3]
Posted by Ahsan Tasneem | 11:06 PM | Dynamips, FreeBSD, GNS3, How To, Hypervisor, IOS, Juniper Networks, juniper olive, junOS, Kqemu, MAC OS X, Multiple Olives, Pemu, Qemu, ScreenOS, Simulator, TAP Interfaces, Vmware, winpcap | 1 comments »Updating JunOS
You can update your version of JunOS from the CLI with the following command:
request system software add [jinstall_package]
Running your router(s)
Now you have a base olive image. Qemu allows you to use this as a base for other images and only writing the changes to your “slave” images saving on disk space! You can also use less memory for each Qemu instance.
Create a new image off of your base image. Repeat for all your routers you want to emulate:
qemu-img create -b olive-base.img -f qcow2 R1.img
Start your router and then telnet to it:
Now you have a base olive image. Qemu allows you to use this as a base for other images and only writing the changes to your “slave” images saving on disk space! You can also use less memory for each Qemu instance.
Create a new image off of your base image. Repeat for all your routers you want to emulate:
qemu-img create -b olive-base.img -f qcow2 R1.img
Start your router and then telnet to it:
2001 Once logged in, you can type “cli” to launch the JunOS command line interpreter, exit to … exit and halt to shutdown FreeBSD. Remember to kill your qemu instance(s).
qemu R1.img -m 96 -nographic -daemonize -serial telnet::2001,server,nowait \
-localtime -net nic,macaddr=00:aa:00:60:01:01,model=e1000 -net user telnet localhost
How To - Step By Step Installation of JunOS on GNS3 [Part 2]
Posted by Ahsan Tasneem | 10:24 PM | FreeBSD, GNS3, How To, Hypervisor, IOS, Juniper Networks, juniper olive, junOS, Kqemu, MAC OS X, Multiple Olives, Qemu, ScreenOS, Simulator, TAP Interfaces, Vmware, winpcap | 3 comments »FreeBSD installation
Now that we have qemu installed, we can create the image for installing FreeBSD. Run this command to create it and allocate 4 GB:
qemu-img create -f qcow2 olive-base.img 4G |
Launch Qemu to install FreeBSD on the image:
qemu -m 256 -hda olive-base.img -cdrom 4.11-RELEASE-i386-miniinst.iso \ -boot d -localtime |
Qemu window will pop up (remember, by default press CTRL + ALT to release the cursor in Qemu):
How To - Step By Step Installation of JunOS on GNS3 [Part 1]
Posted by Ahsan Tasneem | 10:22 PM | FreeBSD, GNS3, How To, Hypervisor, IOS, Juniper Networks, juniper olive, junOS, Kqemu, MAC OS X, Multiple Olives, Qemu, ScreenOS, Simulator, TAP Interfaces, Vmware, winpcap | 7 comments »This article explain you how to emulate Juniper JunOS on a PC using Qemu. This is an updated and enhanced version of excellent howtos from Juniper Clue and Internetwork Pro as well asHimawan Nugroho’s blog. I mainly focused on Qemu, so if you wish to install JunOS on a real PC or using VMware, please have a look at the Juniper Clue article for more information (and of course Google).
So what’s new you would say? First, I chose to use the latest version of Qemu: the 0.11.0 which supports the Intel e1000 network card emulation since version 0.10.0. and includes several fixes for it. I have modified and adapted the old patch for Qemu 0.11.0, it includes the UDP tunnel (connection to Dynamips/GNS3), PCAP and LCAP support. Also, the patch allows multicast traffic with the e1000, i82557b and i82559er Qemu emulated network cards. Moreover, this article show how to emulate JunOS on multiple operating systems: Mac OS X, Windows XP and Linux Ubuntu 9.04 without using an untrustworthy obscure binary downloaded from a forum you can’t even read the language
So what’s new you would say? First, I chose to use the latest version of Qemu: the 0.11.0 which supports the Intel e1000 network card emulation since version 0.10.0. and includes several fixes for it. I have modified and adapted the old patch for Qemu 0.11.0, it includes the UDP tunnel (connection to Dynamips/GNS3), PCAP and LCAP support. Also, the patch allows multicast traffic with the e1000, i82557b and i82559er Qemu emulated network cards. Moreover, this article show how to emulate JunOS on multiple operating systems: Mac OS X, Windows XP and Linux Ubuntu 9.04 without using an untrustworthy obscure binary downloaded from a forum you can’t even read the language
Subscribe to:
Posts (Atom)


