设为首页 收藏本站
查看: 532|回复: 0

[经验分享] ubuntu 安装Dynamips

[复制链接]

尚未签到

发表于 2018-5-9 09:12:10 | 显示全部楼层 |阅读模式
Dynamips:  

  Dynamips is a Cisco router emulator written by Christophe Fillot. It emulates 1700, 2600, 3600, 3700, and 7200 hardware platforms, and runs standard IOS images. ( This discription is taken from

http://dynagen.org/tutorial.htm#_Toc193247991  )
  

  
Dynagen:
  


  Dynagen is a front-end for use with the Dynamips Cisco router emulator. It uses an INI-like configuration file to provision Dynamips emulator networks. It takes care of specifying the right port adapters, generating and matching up those pesky NIO descriptors, specifying bridges, frame-relay, ATM switches, etc. It also provides a management CLI for listing devices, suspending and>
http://dynagen.org/  )
  

  

  This tutorial helps you to run cisco IOS images using Dynamips-Dynagen emulators in ubuntu. Will be much useful to those whose are preparing for cisco certifications.
  

  

  This tutorial doesnot explains extended network configuration of Dynamips. This guide simply provides you on howto install Dynamips-Dynagen in ubuntu and run a cisco router IOS image in ubuntu.
  

  

  Following softwares/libs are required to run Dynamips-Dynagen
  

  

  1) libpcap v0.9.x
  

  2) python v2.5.x
  

  

  Use synaptic package manager to install the above softwares
  

  

  1) Go to Start>System>Administration>synaptic package manager
  

  2) Search libpcap & python
  

  3) Mark the above mentioned versions and press apply to install.
  

  
Install Dynamips & Dynagen:
  

  

  1) Create a new directory for dynamips
  

  


Code:  

  
sudo mkdir /opt/dynamips
  

  2) Change to dynamips directory
  

  


Code:  

  
cd /opt/dynamips
  

  3) Download latest dynagen software using wget
  

  


Code:  

  
sudo wget http://downloads.sourceforge.net/dyna-gen/dynagen-0.11.0.tar.gz?modtime=1208688475&big_mirror=0
  

  4) Extract the tarball
  

  


Code:  

  
sudo tar -xvzf dynagen-0.11.0.tar.gz
  

  5) Change to /opt/dynamips/dynagen-x.x.x directory
  

  


Code:  

  
cd /opt/dynamips/dynagen-0.11.0
  

  6) Look at the README.txt file to see which version of Dynamips is required for this version of Dynagen
  

  


Code:  

  
less README.txt
  

  At the time of this tutorial, at least dynamips version 0.2.8-RC1 is required.
  

  

  7) Change to /opt/dynamips directory
  

  


Code:  

  
cd /opt/dynamips
  

  8 ) Download Dynamips from Dynamips blog
  

  


Code:  

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

  Since my arch is AMD64bit i downloaded 64bit version, You can visit

http://www.ipflow.utc.fr/blog/  to download latest and for different arch versions.
  

  

  9) Use chmod to change permission
  

  


Code:  

  
sudo chmod 755 dynamips-0.2.8-RC2-amd64.bin
  

  10) Navigate to /usr/bin to create symbolic links for dynagen & dynamips
  

  


Code:  

  
cd /usr/bin
  


Code:  

  
sudo ln -s /opt/dynamips/dynamips-0.2.8-RC2-amd64.bin dynamips
  


Code:  

  
sudo ln -s /opt/dynamips/dynagen-0.11.0/dynagen dynagen
  

  11) Updatedb
  

  


Code:  

  
sudo updatedb
  

  12) Create a directory for cisco routers images
  

  


Code:  

  
sudo mkdir /opt/dynamips/images
  


Run the simulator:  

  

  1) Download the cisco router IOS images from

www.cisco.com  
Note:

  You must have cisco login to download the IOS image. Normally cisco customer & CCIE will have a login.
  

  

  2) Put the downloaded cisco IOS image in /opt/dynamips/images folder.
  

  


Code:  

  
sudo mv c7200-jk9o3s-mz.123.12e.bin /opt/dynamips/images
  


  3) Update the configuration file with correct image path and RAM>  

  


Code:  

  
sudo vi /opt/dynamips/dynagen-0.11.0/sample_labs/simple1/simple1.net
  

  
# Simple lab
  

  

  

  
[localhost]
  

  

  

  
`7200`
  

  
# image = \Program Files\Dynamips\images\c7200-jk9o3s-mz.124-7a.image <<--Comment out this windows path
  

  
# On Linux / Unix use forward slashes:
  

  
image = /opt/dynamips/images/c7200-jk9o3s-mz.124-7a.bin <<-- Uncomment and update this line with correct path
  
npe = npe-400
  


  
ram = 160 <<-- Update this value with required RAM>  

  

  

  
`ROUTER R1`
  

  
s1/0 = R2 s1/0
  

  

  

  
`router R2`
  

  
# No need to specify an adapter here, it is taken care of
  

  
# by the interface specification under Router R1
  

  Finally save and exit. You can also specify more configuration details in this file if you know more about dynagen config parameters.
  

  

  4) Start the dynamips process
  

  


Code:  

  
sudo dynamips -H 7200 &
  

  5) Use the dynagen command to process the .net configuration file and start the virtual network.
  

  


Code:  

  
sudo dynagen simple1.net
  

  You will placed inside the dynagen console
  

  

  6) Use list command to list the network equipments and port details for console access.
  

  


Code:  

  
=>list
  
Name    Type     State     Server           Console
  
R1      7200     Running   localhost:7200   2001
  
R2      7200     Running   localhost:7200   2002
  

  7) Finally telnet to the router console
  

  


Code:  

  
=> telnet R1
  


Note:  You can also use utilities like putty to telnet to router console.

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-457444-1-1.html 上篇帖子: Ubuntu下安装mysql5.5.14 下篇帖子: 如何在ubuntu中安装显卡驱动和无线驱动
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表