CentOS6 Install Cisco simulator Dynamips

Source: Internet
Author: User
The Cisco simulator runs in a Windows environment and consumes resources. Therefore, Dynamips is installed on an existing CentOS6Linux operating system to simulate Cisco routing and switching. 1. Download: download the required packages [root @ ciscotest] # wgethttp: // www. ipflow. utc. fr...

The Cisco simulator runs in a Windows environment and consumes resources. Therefore, Dynamips is installed on the CentOS6 Linux operating system to simulate Cisco routing and switching.
1. download:
Download several required packages
[Root @ cisco test] # wget http://www.ipflow.utc.fr/dynamips/dynamips-0.2.8-RC2-x86.bin
[Root @ cisco test] # wget ftp://ftp.pbone.net/mirror/dag.wieers.com/redhat/el6/en/i386/dag/RPMS/dynagen-0.10.1-1.el6.rf.noarch.rpm

Description: dynamips package. you can download the RPM package or binfile.
II. Installation
1. you can directly install the libpcap package, a DVD or an ISO file.
[Root @ cisco test] # rpm-ivh/media/CentOS_6.0_Final/Packages/libpcap-1.0.0-6.20091201git117cb5.el6.i686.rpm

2. install dynamips
[Root @ cisco testing] # cp dynamips-0.2.8-RC2-x86.bin/usr/bin/dynamips
[Root @ cisco test] # chmod + x/usr/bin/dynamips
Note: The binary file is downloaded and the executable file is renamed to the corresponding location. If it is an RPM file, install it directly.
3. install dynagen
[Root @ cisco test] # rpm-ivh dynagen-0.10.1-1.el6.rf.noarch.rpm

4. download the Cisco ISO file
5. write a topology script
III. run and use
1. run the Dynamips Daemon (it can be written as a script)
The script is as follows:
 
[Root @ cisco test] # start-dynamips.sh vi
#! /Bin/bash
Echo "* ============================================ ============= *"
Echo "**"
Echo "*..*"
Echo "* I *"
Echo "* III *"
Echo "*. II... II .*"
Echo "*.: iii I iii:...: iii I III :.*"
Echo "* C I s c o S y s t e m s *"
Echo "* BY: ganxing *"
Echo "* ============================================ ============= *"
Echo "* Console for 3640 Router *"
Echo "* ============================================ ============= *"
/Usr/bin/dynamips-H 7200 &

 
2. write a topology File (simulating a one-way switchover)
[Root @ cisco test] # vi test.net
 
Autostart = False
[Localhost]
Workingdir =/tmp
Prot = 7200
Udp = 10000
[[3640]
Image =/root/c3640-jk9o3s-mz.123-10.bin
Ram = 128
Idlepc = 0x6045bcec
[[ROUTER R0]
Model = 3640
Console = 2000
Slot0 = NM-4E
E0/0 = SW f0/0
 
[[Router sw]
Model = 3640
Console = 2001
Slot0 = NM-16ESW

 
3. Compile the startup simulator script
[Root @ cisco test] # vi start. sh
 
#! /Bin/bash
Echo "* ============================================ ============= *"
Echo "**"
Echo "*..*"
Echo "* I *"
Echo "* III *"
Echo "*. II... II .*"
Echo "*.: iii I iii:...: iii I III :.*"
Echo "* C I s c o S y s t e m s *"
Echo "* BY: ganxing *"
Echo "* ============================================ ============= *"
Echo "* Console for 3640 Router *"
Echo "* ============================================ ============= *"
/Usr/bin/dynagen test.net

 
Author: "Lone Moon catching stars"

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.