Instalacion de GNS3

download Instalacion de GNS3

of 8

Transcript of Instalacion de GNS3

  • 7/22/2019 Instalacion de GNS3

    1/8

    A mediados de marzo del 2012 se liber laversin 0.8.2 de GNS3 un potente emulador grfico de

    redes con el que podemos crear topologas en modo laboratorio de routers (IOS, JunOS), firewalls

    (ASA, PIX) y hosts. Un software particularmente til para preparar ceritificaciones CiscooJunipery

    para testear la integracin de stos con Vyatta.

    Udpate 29/05/2013: Segn comenta Carlos, el manual es perfectamente vlido para Ubuntu

    12.10 por lo que entiendo que tambin lo ser para versiones intermedias.

    Si alguien lo prueba con versiones superiores de Ubuntu y/o de GNS se agradecera que lo

    comentase para ir actualizando la entrada.

    Si queremos instalar GNS3 0.8.2 en Ubuntu 11.10 (merece la pena) no podemos hacerlo desde

    repositorios ni desde el centro de software de Ubuntu ya que la versin oficial disponible en

    repositorios es la versin GNS3 0.7.4-1 (que instala conjuntamente Dynamips 0.2.7-0.2.8RC2-

    5ubuntu1 por dependencias). Por lo que la solucin a esta tarea pasa por hacer la descarga de

    dependencias, el parcheo de qemu y la compilacin manual de la versin 0.8.2 de GNS3.

    Este es el paso a paso:

    1.Primero instalamos las dependencias:

    hnoguera@hnoguera-desktop:~$ sudo apt-get install python

    hnoguera@hnoguera-desktop:~$ sudo apt-get install qt4-dev-tools

    hnoguera@hnoguera-desktop:~$ sudo apt-get install pyqt4-dev-tools

    hnoguera@hnoguera-desktop:~$ sudo apt-get install libncurses5-dev zlib1g-dev libsdl-

    dev libpcap-dev

    2.Creamos rbol de directorios que usar GNS3 para almacenamiento de proyectos, de

    imgenes IOS, de cach de temporales, etc y cambiamos permisos:

    hnoguera@hnoguera-desktop:~$ cd /opt/

    hnoguera@hnoguera-desktop:/opt$ sudo mkdir GNS3

    hnoguera@hnoguera-desktop:/opt$ cd GNS3/

    hnoguera@hnoguera-desktop:/opt/GNS3$ sudo mkdir Dynamips

    hnoguera@hnoguera-desktop:/opt/GNS3$ sudo mkdir IOS

    hnoguera@hnoguera-desktop:/opt/GNS3$ sudo mkdir Project

    hnoguera@hnoguera-desktop:/opt/GNS3$ sudo mkdir Cache

    hnoguera@hnoguera-desktop:/opt/GNS3$ sudo mkdir tmp

    hnoguera@hnoguera-desktop:/opt/GNS3$ sudo mkdir qemu

    hnoguera@hnoguera-desktop:/opt/GNS3$ cd ../

    hnoguera@hnoguera-desktop:/opt$ sudo chmod -R 755 GNS3/

    3.Descargamos la ltima versin de GNS3 disponible, en este caso la 0.8.2:

    hnoguera@hnoguera-desktop:/opt$ cd GNS3/

    hnoguera@hnoguera-desktop:/opt/GNS3$ wget http://sourceforge.net/projects/gns-

    3/files/GNS3/0.8.2/GNS3-0.8.2-src.zip

    4.Descargamos el binario de la ltima versin de Dynamips disponible, en este caso la 0.2.8-

    RC2 y lo hacemos ejecutable:

    Versin de 32 bits:hnoguera@hnoguera-desktop:/opt/GNS3$ cd Dynamips/

    hnoguera@hnoguera-desktop:/opt/GNS3/Dynamips$ wget

    http://www.gns3.net/gns3-0-8-2-released/http://www.gns3.net/gns3-0-8-2-released/http://www.gns3.net/http://www.gns3.net/http://www.cisco.com/web/learning/le3/learning_career_certifications_and_learning_paths_home.htmlhttp://www.cisco.com/web/learning/le3/learning_career_certifications_and_learning_paths_home.htmlhttp://www.juniper.net/us/en/training/certification/http://www.openredes.com/2011/03/18/vyatta-en-espanol/http://www.openredes.com/2012/05/03/instalar-gns3-0-8-2-dynamips-0-2-8-rc3-y-qemu-0-11-en-ubuntu-11-10-oneiric-ocelot/comment-page-1/#comment-983http://www.gns3.net/http://www.gns3.net/http://www.cisco.com/web/learning/le3/learning_career_certifications_and_learning_paths_home.htmlhttp://www.juniper.net/us/en/training/certification/http://www.openredes.com/2011/03/18/vyatta-en-espanol/http://www.openredes.com/2012/05/03/instalar-gns3-0-8-2-dynamips-0-2-8-rc3-y-qemu-0-11-en-ubuntu-11-10-oneiric-ocelot/comment-page-1/#comment-983http://www.gns3.net/gns3-0-8-2-released/
  • 7/22/2019 Instalacion de GNS3

    2/8

    http://www.ipflow.utc.fr/dynamips/dynamips-0.2.8-RC2-x86.bin

    hnoguera@hnoguera-desktop:/opt/GNS3/Dynamips$ sudo chmod +x ./dynamips-0.2.8-RC2-

    x86.bin

    Versin de 64 bits:

    hnoguera@hnoguera-desktop:/opt/GNS3$ cd Dynamips/

    hnoguera@hnoguera-desktop:/opt/GNS3/Dynamips$ wget

    http://www.ipflow.utc.fr/dynamips/dynamips-0.2.8-RC2-amd64.bin

    hnoguera@hnoguera-desktop:/opt/GNS3/Dynamips$ sudo chmod +x ./dynamips-0.2.8-RC2-

    amd64.bin

    5.Descargamos la versin 0.11 de qemu, la parcheamos y la instalamos (por ahora la versin

    0.14 de qemu no funciona con GNS3 0.8.2, devuelve error Youre running an old AND

    unpatched version of qemu, wich wont work):

    hnoguera@hnoguera-desktop:/opt/GNS3/Dynamips$ cd /opt/GNS3/qemu/

    hnoguera@hnoguera-desktop:/opt/GNS3/qemu$ wget

    http://download.savannah.gnu.org/releases/qemu/qemu-0.11.0.tar.gzhnoguera@hnoguera-desktop:/opt/GNS3/qemu$ tar -zxvf qemu-0.11.0.tar.gz

    hnoguera@hnoguera-desktop:/opt/GNS3/qemu$ cd qemu-0.11.0/

    hnoguera@hnoguera-desktop:/opt/GNS3/qemu/qemu-0.11.0$ wget

    http://sourceforge.net/projects/gns-3/files/Qemu/qemu-0.11.0-olive.patch/download

    hnoguera@hnoguera-desktop:/opt/GNS3/qemu/qemu-0.11.0$ wget

    http://sourceforge.net/projects/gns-3/files/Qemu/qemu-0.11.0-olive.patch/downloa

    hnoguera@hnoguera-desktop:/opt/GNS3/qemu/qemu-0.11.0$ patch -p1 -i qemu-0.11.0-

    olive.patch

    hnoguera@hnoguera-desktop:/opt/GNS3/qemu/qemu-0.11.0$ ./configure --target-list=i386-

    softmmu

    hnoguera@hnoguera-desktop:/opt/GNS3/qemu/qemu-0.11.0$ sudo make

    hnoguera@hnoguera-desktop:/opt/GNS3/qemu/qemu-0.11.0$ sudo make install

    6.Descomprimimos e iniciamos GNS3:

    hnoguera@hnoguera-desktop:/opt/GNS3/qemu/qemu-0.14.1$ cd ../../

    hnoguera@hnoguera-desktop:/opt/GNS3$ unzip GNS3-0.8.2-src.zip

    hnoguera@hnoguera-desktop:/opt/GNS3$ cd GNS3-0.8.2-src/

    hnoguera@hnoguera-desktop:/opt/GNS3/GNS3-0.8.2-src$ sudo chmod +x ./gns3

    hnoguera@hnoguera-desktop:/opt/GNS3/GNS3-0.8.2-src$ sudo chmod +x

    ./qemuwrapper/qemuwrapper.py

    hnoguera@hnoguera-desktop:/opt/GNS3/GNS3-0.8.2-src$ ./gns3

    7.Configuramos GNS3:

    Clic en el paso 1 del Wizard

    mailto:hnoguera@hnoguera-desktopmailto:hnoguera@hnoguera-desktop
  • 7/22/2019 Instalacion de GNS3

    3/8

  • 7/22/2019 Instalacion de GNS3

    4/8

    En el apartado General bajo Paths especificamos las rutas /opt/GNS3/Project para Project

    directory y /opt/GNS3/IOS para OS image:

    http://www.openredes.com/wp-content/uploads/2012/04/gns3-0.8.2-config-2.png
  • 7/22/2019 Instalacion de GNS3

    5/8

    En la pestaa Terminal Settings cambiamos el comando que aparece en Terminal

    command a:

    gnome-terminal -t %d -e 'telnet %h %p' >/dev/null 2>&1 &

    http://www.openredes.com/wp-content/uploads/2012/04/gns3-0.8.2-config-3.png
  • 7/22/2019 Instalacion de GNS3

    6/8

    En el apartado Capture cambiamos el Working directory for capture files a

    /opt/GNS3/Project:

    http://www.openredes.com/wp-content/uploads/2012/04/gns3-0.8.2-config-4.png
  • 7/22/2019 Instalacion de GNS3

    7/8

    En el apartado Qemu cambiamos los Paths segn corresponda con el destino de los

    binarios de qemu:

    hnoguera@hnoguera-desktop:/opt/GNS3/qemu/qemu-0.11.0$ which qemu

    /usr/local/bin/qemu

    hnoguera@hnoguera-desktop:/opt/GNS3/qemu/qemu-0.11.0$ which qemu-img

    /usr/local/bin/qemu-img

    Cambiamos Path to qemu a /usr/local/bin/qemu, Path to qemu-img a /usr/local/bin/qemu-

    img y testeamos la configuracin:

    http://www.openredes.com/wp-content/uploads/2012/04/gns3-0.8.2-config-5.png
  • 7/22/2019 Instalacion de GNS3

    8/8

    Aplicamos cambios, cargamos alguna imagen ISO y a funcionar.

    Fuentes:

    http://forum.gns3.net/topic4690.html

    http://forum.gns3.net/topic4692-20.html

    http://www.kartook.com/2012/04/how-to-install-and-configure-gns3-v0-8-2-ubuntu-11-10-x64/

    http://forum.gns3.net/topic4690.htmlhttp://forum.gns3.net/topic4690.htmlhttp://forum.gns3.net/topic4692-20.htmlhttp://forum.gns3.net/topic4692-20.htmlhttp://www.kartook.com/2012/04/how-to-install-and-configure-gns3-v0-8-2-ubuntu-11-10-x64/http://www.openredes.com/wp-content/uploads/2012/04/gns3-0.8.2-config-6.pnghttp://forum.gns3.net/topic4690.htmlhttp://forum.gns3.net/topic4692-20.htmlhttp://www.kartook.com/2012/04/how-to-install-and-configure-gns3-v0-8-2-ubuntu-11-10-x64/