Subscribe via RSS Feed Connect on Google Plus Connect on LinkedIn
1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 3,00 out of 5)
Loading...Loading...

Instalando o Dynagen/Dynamips no CENTOS Linux

5 de setembro de 2013 0 Comments
ShareTweet about this on TwitterShare on TumblrShare on LinkedInShare on Google+Share on FacebookPin on PinterestEmail this to someonePrint this page

Num post passado, falamos do GNS3 que é um emulador de IOS Cisco. Como falamos, o GNS3 nada mais é do que a interface gráfica. No fundo o que roda ali é o Dynamips/Dynagen.

Nesse post vamos colocar uma “receita de bolo” para instalação do Dynamips/Dynagen no CENTOS.

 

1-      O primeiro passo a fazer é instalar a biblioteca libpcap.

root@377523 [~]# yum install libpcap
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: centos.mirror.freedomvoice.com
 * extras: centos-distro.cavecreek.net
 * updates: mirror.pac-12.org
base                                                                                          | 3.7 kB     00:00
extras                                                                                        | 3.5 kB     00:00
updates                                                                                       | 3.4 kB     00:00
vz-base                                                                                       |  951 B     00:00
vz-updates                                                                                    |  951 B     00:00
Setting up Install Process
Package 14:libpcap-1.0.0-6.20091201git117cb5.el6.i686 already installed and latest version
Nothing to do

 

No meu caso, já estou com a versão atualizada da biblioteca.

 

2-      Agora vamos baixar o RPM do Dynamips e Dynagen:

 

3-      Instalando o Dynamips/Dynagen:

 

root@377523 [~]# rpm -Uvh dynamips-0.2.8RC2-1.i386.rpm
error: Failed dependencies:
        libpcap.so.0.9 is needed by dynamips-0.2.8RC2-1.i386

 

Como visto acima, a instalação diz que é preciso a biblioteca libcap para funcionar. Pra ter certeza de que está instalada, vamos dar alguns comandos de checagem:

 

root@377523 [~]# rpm -qa libpcap
libpcap-1.0.0-6.20091201git117cb5.el6.i686
 
root@377523 [~]# rpm -ql libpcap
/usr/lib/libpcap.so.1
/usr/lib/libpcap.so.1.0.0
/usr/share/doc/libpcap-1.0.0
/usr/share/doc/libpcap-1.0.0/CHANGES
/usr/share/doc/libpcap-1.0.0/CREDITS
/usr/share/doc/libpcap-1.0.0/LICENSE
/usr/share/doc/libpcap-1.0.0/README
/usr/share/doc/libpcap-1.0.0/pcap.txt
/usr/share/man/man7/pcap-filter.7.gz
/usr/share/man/man7/pcap-linktype.7.gz

 

Bom, tendo certeza de que a biblioteca está instalada, vamos tentar instalar novamente sem checar as dependências:

 

root@377523 [~]# rpm -Uvh –nodeps dynamips-0.2.8RC2-1.i386.rpm
Preparing…                ########################################### [100%]
   1:dynamips               ########################################### [100%]

 

Dynagen:

 

root@377523 [~]# rpm -Uvh dynagen-0.11.0-1.fc9.noarch.rpm
Preparing…                ########################################### [100%]
   1:dynagen                ########################################### [100%]

 

4-      Lozalizando e executando o Dynagen:

 

root@377523 [~]#  whereis dynagen
dynagen: /usr/bin/dynagen.ini /usr/bin/dynagen
 
 
root@377523 [~]# /usr/bin/dynagen
Dynagen management console for Dynamips and Pemuwrapper 0.11.0
Copyright (c) 2005-2007 Greg Anuzelli, contributions Pavel Skovajsa
 
=>
=>

 

 

 

 

😉

Seu ip é:
54.162.76.55

ShareTweet about this on TwitterShare on TumblrShare on LinkedInShare on Google+Share on FacebookPin on PinterestEmail this to someonePrint this page

About the Author:

O autor trabalha com tecnologia de redes há 13 anos, participa de congressos no Brasil e no mundo, e contribui para melhoria de protocolos e sistemas com fabricantes de equipamentos de rede.