olive reloaded or how to emulate juniper routers _ gns3

Upload: elvin-dionicio

Post on 13-Oct-2015

162 views

Category:

Documents


2 download

DESCRIPTION

Olive Junos lab for SRX

TRANSCRIPT

  • 5/23/2018 Olive Reloaded or How to Emulate Juniper Routers _ GNS3

    1/5

    7/2/2014 Olive reloaded or how to emulate Juniper routers | GNS3

    http://blog.gns3.net/2009/10/olive-juniper/

    October 29th, 2009 by Jeremy Grossmann Leave a reply

    Olive reloaded or how to emulate Juniper routers

    1. Introduction

    This article explain you how to emulate Juniper JunOS on a PC using Qemu [http://www.qemu.org/] . This is an updated and enhanced version of excelle

    howtos from Juniper Clue [http://juniper.cluepon.net/index.php/Olive] and Internetwork P

    [http://inetpro.org/wiki/Using_QEMU_with_Olive_to_emulate_Juniper_Routers] as well as Himawan Nugrohos bl

    [http://brokenpipes.blogspot.com/2008/01/olive-is-alive.html] . I mainly focused on Qemu, so if you wish to install JunOS on a real PC or using VMwar

    please have a look at the Juniper Clue [http://juniper.cluepon.net/index.php/Olive] article for more information(and of course Google).

    So whats new you would say? First, I chose to use the latest version of Qemu [http://www.qemu.org/] : the 0.11.0 which supports the Intel e10

    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 t

    UDP tunnel (connection to Dynamips/GNS3), PCAP and LCAP support. Also, the patc h allows multicast traffic with the e1000, i82557b and i82559

    Qemu emulated network cards. Moreover, this article show how to emulate JunOS on multiple operating systems: Mac OS X, Windows XP and Lin

    Ubuntu 9.04 without using an untrustworthy obscure binary downloaded from a forum you cant even read the language

    DisclaimerPlease note that JunOS is not provided and will not be. So please dont ask. Also, I do not take any responsibility on what happen on your PC, keep

    mind this howto requires some patience and that is not for complete beginners. Moreover, this howto doesnt necessarily present the best and/or easi

    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

    worked for you.

    What is a Olive?This is very well summarized on the JuniperClue [http://juniper.cluepon.net/index.php/Olive] website:

    Olive is also the codename name given to JUNOS software running on an PC rather than a Juniper router. A common misconception is tha

    Olive is some sort of special software, but it is actually ordinary JUNOS software running on a PC of similar specifications to a Routin

    Engine, with no forwarding hardware (or PFE) attached. If you took a Routing Engine out of a Juniper router and booted it in a blade serve

    chassis, it would ef fectively be an Olive.

    Juniper originally developed Olive functionality as a softwaredevelopment platform, before its hardware product was fully implemented. It i

    not intended as a router simulator, and has never been a supported product, or intended for use by the general public in any way. At on

    point it was used by Juniper internally for lab work, but has largely been phased out of this role with the availability of low-end hardwar

    based platforms such as the M5.

    The most common use of the Olive platform is for creative and unix-competent hackers to learn the JUNOS CLI on a low-cost platform. It i

    capable of forwarding a small amount of traffic, but does not support many of the features found on real Juniper routers. Essentially th

    forwarding on an Olive is the same as routing traffic via your fxp0 or em0 management interface on a real Routing Engine.

    Technical Blog

    Out-of-Band: Online Demoopengear.com/Out-of-Band-demo

    Always Have Your IT Accessible: Online Out-of-Band Management Demo.

    http://juniper.cluepon.net/index.php/Olivehttp://brokenpipes.blogspot.com/2008/01/olive-is-alive.htmlhttp://brokenpipes.blogspot.com/2008/01/olive-is-alive.htmlhttp://www.qemu.org/http://blog.gns3.net/http://www.googleadservices.com/pagead/aclk?sa=L&ai=C09-UsMS0U5nbGI3SkwTOhoC4Bsu1n70Fg_eaiqYB2IKf4BgQASCU-5MFUMCUltgFYMnusIfco8QQoAHnvsrvA8gBAagDAcgDwwSqBIkBT9BR9kjc4YEWMB9V8U14BjF5zh32DjxOARjSHY3PT6A2yZ3FAMU5-zmSlMJgYRYEN9_4gYyXvEOD5jG0Y5ORahpvuhiYW8Fhc88YU8F8s_zSXYSdfSxE_zAKPiLnBgs9h-aPyHjfSvNiBy26VIaQC739lNeqiXc8O1i6snMZ_1okrmYpw2kQQLeIBgGAB4HBtRA&num=1&cid=5Gh4REaAGtoNBsV1bfkS-p1U&sig=AOD64_2MmqkRHibt8_3yesafCGi7yxgyZg&client=ca-pub-8088569354328416&adurl=http://opengear.com/solutions/out-band-managementhttp://www.googleadservices.com/pagead/aclk?sa=L&ai=C09-UsMS0U5nbGI3SkwTOhoC4Bsu1n70Fg_eaiqYB2IKf4BgQASCU-5MFUMCUltgFYMnusIfco8QQoAHnvsrvA8gBAagDAcgDwwSqBIkBT9BR9kjc4YEWMB9V8U14BjF5zh32DjxOARjSHY3PT6A2yZ3FAMU5-zmSlMJgYRYEN9_4gYyXvEOD5jG0Y5ORahpvuhiYW8Fhc88YU8F8s_zSXYSdfSxE_zAKPiLnBgs9h-aPyHjfSvNiBy26VIaQC739lNeqiXc8O1i6snMZ_1okrmYpw2kQQLeIBgGAB4HBtRA&num=1&cid=5Gh4REaAGtoNBsV1bfkS-p1U&sig=AOD64_2MmqkRHibt8_3yesafCGi7yxgyZg&client=ca-pub-8088569354328416&adurl=http://opengear.com/solutions/out-band-managementhttp://www.googleadservices.com/pagead/aclk?sa=L&ai=C09-UsMS0U5nbGI3SkwTOhoC4Bsu1n70Fg_eaiqYB2IKf4BgQASCU-5MFUMCUltgFYMnusIfco8QQoAHnvsrvA8gBAagDAcgDwwSqBIkBT9BR9kjc4YEWMB9V8U14BjF5zh32DjxOARjSHY3PT6A2yZ3FAMU5-zmSlMJgYRYEN9_4gYyXvEOD5jG0Y5ORahpvuhiYW8Fhc88YU8F8s_zSXYSdfSxE_zAKPiLnBgs9h-aPyHjfSvNiBy26VIaQC739lNeqiXc8O1i6snMZ_1okrmYpw2kQQLeIBgGAB4HBtRA&num=1&cid=5Gh4REaAGtoNBsV1bfkS-p1U&sig=AOD64_2MmqkRHibt8_3yesafCGi7yxgyZg&client=ca-pub-8088569354328416&adurl=http://opengear.com/solutions/out-band-managementhttp://www.googleadservices.com/pagead/aclk?sa=L&ai=C09-UsMS0U5nbGI3SkwTOhoC4Bsu1n70Fg_eaiqYB2IKf4BgQASCU-5MFUMCUltgFYMnusIfco8QQoAHnvsrvA8gBAagDAcgDwwSqBIkBT9BR9kjc4YEWMB9V8U14BjF5zh32DjxOARjSHY3PT6A2yZ3FAMU5-zmSlMJgYRYEN9_4gYyXvEOD5jG0Y5ORahpvuhiYW8Fhc88YU8F8s_zSXYSdfSxE_zAKPiLnBgs9h-aPyHjfSvNiBy26VIaQC739lNeqiXc8O1i6snMZ_1okrmYpw2kQQLeIBgGAB4HBtRA&num=1&cid=5Gh4REaAGtoNBsV1bfkS-p1U&sig=AOD64_2MmqkRHibt8_3yesafCGi7yxgyZg&client=ca-pub-8088569354328416&adurl=http://opengear.com/solutions/out-band-managementhttp://juniper.cluepon.net/index.php/Olivehttp://www.qemu.org/http://juniper.cluepon.net/index.php/Olivehttp://brokenpipes.blogspot.com/2008/01/olive-is-alive.htmlhttp://inetpro.org/wiki/Using_QEMU_with_Olive_to_emulate_Juniper_Routershttp://juniper.cluepon.net/index.php/Olivehttp://www.qemu.org/http://blog.gns3.net/2009/10/olive-juniper/2/http://blog.gns3.net/
  • 5/23/2018 Olive Reloaded or How to Emulate Juniper Routers _ GNS3

    2/5

    7/2/2014 Olive reloaded or how to emulate Juniper routers | GNS3

    http://blog.gns3.net/2009/10/olive-juniper/

    Pages: 1 2 3 4 5 6 7

    Norton

    Notepad

    133 comments

    Add your comme

    Older Comments

    Ok so why all the secrecy?Again, JuniperClue [http://juniper.cluepon.net/index.php/Olive] explained all of this:

    Junipers official position is that Olive does not exist. Considering that Olive is an unsupported and unsupportable platform using free (ak

    illegally licensed) software, this is not an unreasonable official position. Olive is essentially a hackers platform, with absolutely no support o

    any kind, and it is not suitable for any type of commercial use. If you are in any doubt, or if you are not able to f igure it out, you should inves

    in a low-cost platform such as J-Series instead.

    It is also important to remember that Olive exists because Juniper allows it to exist, and is a testament to the mutual respect between th

    extremely knowledgeable developer and user bases. If the Olive platform became widely abused, Juniper could easily add additional softwar

    checks to prevent it from working. Please do not abuse this feature by doing stupid things like contacting JTAC for support on an Olive, o

    selling illegal copies of the software as router simulators. This type of activity is likely to have serious legal consequences and/or provoke

    justified response from Juniper, so just dont do it.

    Next Entry: How to emulate Cisco ASA

    Posted in Juniper

    Tags: Dynamips Emulation GNS3 Juniper JunOS Olive Qemu

    You can follow any responses to this entr y thro ugh the RSS 2.0 Feed . You can leave a response , or trackbackfrom your own site.

    HakimK

    Ive followed all the instructionbut after qemu -m 256 -hda olive-base.img -boot c -localtime -nographic -serial stdio, nothing happen. No qemu windowappear and I

    only can see stderr and stdout files in the Qemu folder.

    stderr notepadshows:

    qemu: could not op en serial device mon:stdio

    stdout notepad shows:

    Unable to open driver: stdio

    Im try ing to install olive in WinXP SP3 with qemu-0.11.0.patched.win32.

    did anyone have the same p roblem as me?

    October 6, 2010 at 15:39

    Philip

    Hi,

    I always encounter this error (ELF Binary Type 0 Not Known). Do I missed something?

    Thanks

    Octobe r 12, 2010 at 18:43

    Brad Octobe r 17, 2010 at 03:51

    http://blog.gns3.net/2009/10/olive-juniper/comment-page-3/#comment-964http://blog.gns3.net/2009/10/olive-juniper/comment-page-3/#comment-936http://blog.gns3.net/2009/10/olive-juniper/comment-page-3/#comment-931http://blog.gns3.net/2009/10/olive-juniper/trackback/http://blog.gns3.net/2009/10/olive-juniper/feed/http://blog.gns3.net/tag/qemu/http://blog.gns3.net/tag/olive/http://blog.gns3.net/tag/junos/http://blog.gns3.net/tag/juniper/http://blog.gns3.net/tag/gns3/http://blog.gns3.net/tag/emulation/http://blog.gns3.net/tag/dynamips/http://blog.gns3.net/category/juniper/http://blog.gns3.net/2009/12/how-to-emulate-cisco-asa/http://juniper.cluepon.net/index.php/Olivehttp://blog.gns3.net/2009/10/olive-juniper/comment-page-2/#commentshttp://blog.gns3.net/2009/10/olive-juniper/7/http://blog.gns3.net/2009/10/olive-juniper/6/http://blog.gns3.net/2009/10/olive-juniper/5/http://blog.gns3.net/2009/10/olive-juniper/4/http://blog.gns3.net/2009/10/olive-juniper/3/http://blog.gns3.net/2009/10/olive-juniper/2/
  • 5/23/2018 Olive Reloaded or How to Emulate Juniper Routers _ GNS3

    3/5

    7/2/2014 Olive reloaded or how to emulate Juniper routers | GNS3

    http://blog.gns3.net/2009/10/olive-juniper/

    Everything went smoothly following the directionsexactly a written, t ill I actually got t o pkg_add.

    The VM complained about not enough space, saying I needed to change PKG_TMPDIR to a location that had at least 905682568 bytes. I cleaned out files I dont need any

    more and made sure PKG_TMPDIR was p ointing to /var/tmp. After clening out the files I had 1060060 K bytes free. So that should be enough. But kept gett ing same error.

    juber

    O tried to run scp [email protected]:~/Desktop /jinstall-8.5R1.14-domestic-signed.tgz /var/tmp command but request gets t imed out.

    I put my PCs hostname instead of user, even i tried with the user i logged in with in my pc but still the request is getting timed out ssh: connect to host 10.0.2.2 port 22:

    Operationtime out

    I wasted my 3 days to resolved this dont know y its not working.

    I had p ut only qemu -m 256 -hda olive-base.img -boot c -localtime command when booting olive image cause when i p ut qemu -m 256 -hda olive-base.img -boot c -

    localtime \

    -net nic,macaddr=00:aa:00:60:01:01,model=e1000 -net user the qemu doesn start.

    Please help guys

    No ve mb er 13, 2010 a t 16:57

    arvind

    hi while try ing to up load Junos iam getting following error.

    scp [email protected]:xxxxx\jinstall \var\tmp

    ssh: connect to host 10.0.2.2 port 22: Operation timed out.

    I thought my antivirus firewall might be blocking the udp and t cp p ackets so disabled that and t ried .. then also i was unsuccessful pl help here.

    No ve mb er 21, 2010 at 00:58

    Carlos M

    FTR, the pcap check in the patch is wrong.

    Compiler barfs at not caster int return and also,

    the $TMPC should be abefore the $LIBPCAP for the test compile to work.

    No ve mb er 28, 2010 a t 23:11

    Max

    Does anyone running this on a MAC OS X 10.6 know the replacement option for -cdrom in the QEMU command:

    qemu -m 256 -hda olive-base.img -cdrom 4.11-RELEASE-i386-miniinst.iso \ -boot d -localtime

    /Volumes doesnt work. Us ing the mount point doesnt work. I had t his working on 10.5, but remember -cdrom didnt work.

    Any help is appreciated!

    Thanks!

    Dece mb er 17 , 2010 at 02:23

    Aamir Maqbool

    Hi, Ive installed the olive by following the above procedure. However Im facing currently t wo p roblems.

    1. I configure the Juniper Router in GNS3 and commit changes bye using commit command. But it does not take effect. until unless I reload all the routers.

    2. Im unable to find s erial interfaces, ATM interfaces & Sonet interfaces.

    Can Anyone p rovide me the help regarding this.

    Janua ry 13, 2011 at 09:51

    Cristian Vnd

    Resolved JUNOS image uploadproblem :

    My settings

    March 2, 201 1 at 02:35

    http://blog.gns3.net/2009/10/olive-juniper/comment-page-3/#comment-4082http://blog.gns3.net/2009/10/olive-juniper/comment-page-3/#comment-3004http://blog.gns3.net/2009/10/olive-juniper/comment-page-3/#comment-1172http://blog.gns3.net/2009/10/olive-juniper/comment-page-3/#comment-1034http://blog.gns3.net/2009/10/olive-juniper/comment-page-3/#comment-973http://blog.gns3.net/2009/10/olive-juniper/comment-page-3/#comment-971
  • 5/23/2018 Olive Reloaded or How to Emulate Juniper Routers _ GNS3

    4/5

    7/2/2014 Olive reloaded or how to emulate Juniper routers | GNS3

    http://blog.gns3.net/2009/10/olive-juniper/

    Older Comments

    Trackbacks /Pingbacks

    GNS3 0.7RC1 | El mundo de IMD

    GNS3 Announcement: GNS3 Technical Blog | GNS3 Labs ::

    Cisco Router Simulator Network Topologies

    GNS3 Announcement: GNS3 0.7RC1 Released! | GNS3 Labs ::

    Cisco Router Simulator Network Topologies

    GNS3 0.7RC1 Released! ( nov 30 news! ). CCIE Quest.

    - tap-interface with DHCP : ip taken 10.0.2.16

    - Core FTP (mini-sftp -server) to up load your junos image (username=user,password=user)

    then

    sfttp [email protected]:jinstall-8.5R1.14-domestic-signed.tgz /var/tmp

    from your freebsd VM

    Ryan

    Im not able to proceed with the following command:

    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 2001

    It p roduces a stderr.txt file containing:

    qemu: invalid op tion `-daemonize`

    If I remove this option, it produces another error:

    qemu: could not open monitor device `stdio`

    Anyone else having this same issue?

    Marc h 26, 2011 at 12:52

    neor

    Where do I put this command

    qemu-img create -f qcow2 olive-base.img 4G

    July 16, 2011 at 22:47

    jomih

    Hi to all,

    Ive tried to emulate JUNOS in GNS3 without success.

    When I use t he command qemu -m 256 -hda olive-base.img -boot c -localtime \ -net nic -net t ap,ifname=tap0 -net nic,macaddr=00:aa:00:60:01:01,model=e1000 -net us er

    (in Ubuntu 10.04) and after creating the tap interface with tunctl, I get t he following message:

    cant add tap0 to bridge wlan0: operation not supportedIve tried to do it using the eth0 interface instead of wlan0, but I got t he same results.

    can anyone t ell me whats wrong??

    Thanks!!

    July 19, 2011 at 06:29

    jos em

    hi,

    once olive is loaded, I configure an ip address for the en0 interface and do a commit but the check-out fails with this message:

    vci/vpi/allow-any-vci is required

    how is this possible if my interface is en0?

    Se pte mb er 23, 2011 at 21:09

    http://blog.gns3.net/2009/10/olive-juniper/comment-page-3/#comment-4146http://blog.gns3.net/2009/10/olive-juniper/comment-page-3/#comment-4130http://blog.gns3.net/2009/10/olive-juniper/comment-page-3/#comment-4129http://blog.gns3.net/2009/10/olive-juniper/comment-page-3/#comment-4091http://stuckinactive.wordpress.com/2009/12/02/gns3-0-7rc1-released-nov-30-news/http://www.gns3-labs.com/2009/11/30/gns3-announcement-gns3-07rc1-released/http://www.gns3-labs.com/2009/11/30/gns3-announcement-gns3-technical-blog/http://mundoimd.com/2009/11/29/gns3-0-7rc1/http://blog.gns3.net/2009/10/olive-juniper/comment-page-2/#comments
  • 5/23/2018 Olive Reloaded or How to Emulate Juniper Routers _ GNS3

    5/5

    7/2/2014 Olive reloaded or how to emulate Juniper routers | GNS3

    http://blog.gns3.net/2009/10/olive-juniper/

    How to emulate Cisco ASA | GNS3

    GNS3 supporte maintenant JunOS ! | Telecom-Reseaux

    GNS3 0.7rc1 supports JUNOS Lets try it out (Part 1)

    Technology, Computers, Networking, IT, Educational, Plus stuff

    that I like

    CCIE Sec Vracks - So Do You Want to be a CCIE? -

    2bccie.com

    CCIE Quest

    Gns3 0.7.1-2 on Ubuntu 10.04 LTS [the easy way]

    Technology, Computers, Networking, IT, Educational, Plus stuff

    that I like

    JNCIA-M/JNCIS-M sample exams & lab kit? - TechExams.net

    IT Certification Forums

    Belajar mengemulate JUNOS di GNS3 Iwing's Blog @_@

    Juniper router in GNS3 - TechExams.net IT Certification Forums

    How to Emulate CISCO ASA Learning Network

    How to Emulate CISCO ASA Just Sharing

    How to install Vyatta 6.1 Core LiveCD on Qemu image in Linux

    Brezular's Technical Blog

    JUNOS in GNS3 Internet Protocols

    Cisco Dynamips and Juniper Olive: A little clarity on router

    emulators, please - The Network Hub

    How to setup Linux Microcore 3.x Router Qemu Image in Fedora

    Linux part1 Brezular's Technical Blog

    GNS3 Qemu Troubleshooting Brezular's Technical Blog

    Name ( required)

    Mail (will not be published) (required)

    Website

    Submit Comme nt

    Back to T

    Leave a Reply

    2014 GNS3 Proudly powered by WordPress&Green Park 2 by Cordobo

    http://wordpress.org/http://brezular.wordpress.com/2011/04/02/gns3-qemu-troubleshooting/http://brezular.wordpress.com/2011/01/26/how-to-setup-linux-microcore-3-x-router-qemu-image-in-fedora-linux-part1/http://itknowledgeexchange.techtarget.com/networkhub/cisco-dynamips-and-juniper-olive-a-little-clarity-on-router-emulators-please/http://ippoint.wordpress.com/2010/10/04/junos-in-gns3/http://brezular.wordpress.com/2010/09/25/how-to-install/http://ji8an.wordpress.com/2010/08/27/how-to-emulate-cisco-asa/http://learnboutnetwork.wordpress.com/2010/08/25/how-to-emulate-cisco-asa/http://www.techexams.net/forums/juniper-certifications/56994-juniper-router-gns3.html#post438272http://iwing.wordpress.com/2010/06/21/belajar-mengemulate-junos-di-gns3/http://www.techexams.net/forums/juniper-certifications/54624-jncia-m-jncis-m-sample-exams-lab-kit.html#post414638http://sushantwagle.wordpress.com/2010/05/16/gns3-0-7-1-2-on-ubuntu-10-04-lts-the-easy-way/http://www.brainbump.net/2010/02/gns3-0-7-released-kudos-to-gns3-team/http://www.2bccie.com/cisco-certification/ccie-ccie-sec-vracks.htmlhttp://sushantwagle.wordpress.com/2009/12/30/gns3-07rc1-supports-juniper-part1/http://www.telecom-reseaux.net/outils/gns3-supporte-maintenant-junos-550http://blog.gns3.net/2009/12/how-to-emulate-cisco-asa/