Install Dynamips in ubuntu

Source: Internet
Author: User
Article Title: Install Dynamips In ubuntu. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

I can't stand running dynamips in windows at last. I am determined to get it under debian-based ubuntu,
Two methods are provided,
Method 1: Nothing to do, just play it on your own
1. Install libpcap on Ubuntu Platform

Install the gcc compiler
Sudo apt-get install gcc

Install the flex Compiler
Sudo apt-get install flex

Install the bison Compiler
Sudo apt-get install bison

Decompress the data package “libpcap-0.9.8.tar.gz"
Tar-zxvf libpcap-0.9.8.tar.gz

In addition, Ubuntu does not support rpm installation files. rpm is the standard Installation File Format of the Red Hat operating system. You can use alien to convert the rpm package to the deb package.

Install alien: sudo apt-get install alien
Alien uses: alien XXX. rpm to generate XXX. deb supported by Ubuntu.
Install the deb package: sudo dpkg-I XXX. deb or double-click to install

Compile
./Configure
Make
Make install

Move Folder: mv
Delete Folder: rm-rf XXX

2. Download dynamips source code "dynamips-0.2.8-RC2-amd64.bin"
Http://www.ipflow.utc.fr/blog/

3.download the dynagensource code “dynagen-0.11.0.tar.gz"
Http://dynagen.org/

4. Copy "dynamips-0.2.8-RC2-amd64.bin" to opt
Cp dynamips-0.2.8-RC2-amd64.bin/opt/dynamips
Ln-s/opt/dynamips/dynamips-0.2.8-RC2-amd64.bin dynamips
This command creates a shortcut named dynamips pointing to the dynamips-0.2.8-RC2-amd64.bin, where the program path needs to be an absolute path.

5. decompress and copy dynagen
Tar-zxvf dynagen-0.11.0.tar.gz
Music dynagen-0.11.0/opt
Ln-s/opt/dynagen-0.11.0/dynagen

6. Put the ios and. net files
Put them in a custom folder. The location of ios doesn't matter. You can specify the location in. net with an absolute path.
'Image =/opt/ios/c7200-js-mz.123-8.T11.extracted.bin"

7. Start dynampis
"Nice dynampis-H 7200" is used on the Internet to start the service. Among them, port 7200 is a port, but I cannot test it:

Frank @ frank-laptop:/opt # nice dynamips-H 7200
Nice: dynamips: the file or directory does not exist.

The permissions have been changed, and there is no way at last. simply do not use nice. Execute directly:

Frank @ frank-laptop:/opt/dynampis $ sudo./dynamips-H 7200
Cisco Router Simulation Platform (version 0.2.8-RC2-amd64)
Copyright (c) 2005-2007 Christophe Fillot.
Build date: Oct 14 2007 10:46:52

ILT: loaded table "mips64j" from cache.
ILT: loaded table "mips64e" from cache.
ILT: loaded table "ppc32j" from cache.
ILT: loaded table "ppc32e" from cache.
Hypervisor TCP control server started (port 7200 ).

Start a terminal and start dynagen.

Frank @ frank-laptop:/opt/dynampis $ sudo./dynagen self-Mpls.net
[Sudo] password for frank:
Dynagen management console for Dynamips and Pemuwrapper 0.11.0
Copyright (c) 2005-2007 Greg Anuzelli, contributions Pavel sans ajsa

=>?

Incluented commands (type help ):
==========================================================
Capture confreg cpuinfo export hist list py save show suspend
Clear console end filter idlepc no reload send start telnet
Conf copy exit help import push resume shell stop ver

The rest is the same as windowns.

Method 2: It's okay if you are a lazy.
There is a software package manager in ubuntu. You can use it to search for a program prepared by someone else. You can use it directly. It's too lazy.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.