How to install and configure Dynamips in Linux

Source: Internet
Author: User
Article Title: install and configure Dynamips in Linux. Linux is a technology channel of the IT lab in China. Including desktop applications, Linux system management, kernel research, embedded systems, open-source and other basic categories, first download
 
Http://www.ipflow.utc.fr/dynamips/dynamips-0.2.5-x86.bin
 
Http://nchc.dl.sourceforge.net/sourceforge/dyna-gen/dynagen-0.6.0.tar.gz
 
Http://www.tcpdump.org/release/libpcap-0.9.5.tar.gz these 3 files to/root
 
1. Install libpcap
 
Tar-zxvf libpcap-0.9.5.tar.gz
 
. /Configure
 
Make
 
Make install
 
2. Copy/root/dynamips-0.2.5-x86.bin to/usr/local/bin/
 
Cp dynamips-0.2.5-x86.bin/usr/local/bin
 
Ln-s dynamips-0.2.5-x86.bin dynamips
 
3.decompress dynagen-0.6.0.tar.gz
 
Tar-zxvf dynagen-0.6.0.tar.gz
 
Cd/usr/local/bin/
 
Ln-s/root/dynagen-0.6.0/dynagen
 
Now, you can find a net file to start dynamips. We recommend that you create a dynamips folder and put all dynamips, IOS, and net files in it.
 
Start dynamips:
 
Nice dynamips-H 7200
 
Start the console:
 
Dynagen/root/dynamips/xxx.net
 
Log on to the console, which is exactly the same as windos.
 
Obtain idle_pc
 
Dynamips-P 3600-t 3620/root/dynamips/xxx. bin (here is the 3620 IOS file ).
 
After entering the route> command line, press "ctrl +]" and then press I to get a lot of idle_pc numbers. Copy the largest one in the count to the net file.
 
For nic parameters, change NIO_gen_eth: xxx in the net file to NIO_linux_eth: eth0.
 
Start the vro in the console, start a new terminal, and then telnet 127.0.0.1 3001 (the R1 port number) to enter the vro.
 
     
      autostart = false[localhost]port = 7200udp = 10000[[router R1]]image = /root/dynamips/unzip-c3620-i-mz.122-37.binmodel = 3620console = 3001ram = 32confreg = 0x2142idlepc = 0xffffffff804235c0exec_area = 32mmap = trueslot0=NM-4Eslot1 = PA-4Tf0/0 = SW1 1f0/1 = SW1 2f0/2 = SW1 3f0/3 = SW1 4s1/1 = R2 s1/0s1/2 = FR1 1[[router R2]]image = /root/dynamips/unzip-c3620-i-mz.122-37.binmodel = 3620console = 3002ram = 32confreg = 0x2142idlepc = 0xffffffff804235c0exec_area = 32mmap = trueslot0=NM-4Eslot1 = PA-4Tf0/0 = SW1 5f0/1 = SW1 6f0/2 = SW1 7f0/3 = SW1 8s1/1 = R3 s1/0s1/2 = FR1 2[[router R3]]image = /root/dynamips/unzip-c3620-i-mz.122-37.binmodel = 3620console = 3003ram = 32confreg = 0x2142idlepc = 0xffffffff804235c0exec_area = 32mmap = trueslot0=NM-4Eslot1 = PA-4Tf0/0 = SW1 9f0/1 = SW1 10f0/2 = SW1 11f0/3 = SW1 12s1/1 = R4 s1/0s1/2 = FR1 3[[router R4]]image = /root/dynamips/unzip-c3620-i-mz.122-37.binmodel = 3620console = 3004ram = 32confreg = 0x2142idlepc = 0xffffffff804235c0exec_area = 32mmap = trueslot0=NM-4Eslot1 = PA-4Tf0/0 = SW1 13f0/1 = SW1 14f0/2 = SW1 15f0/3 = SW1 16s1/1 = R5 s1/0s1/2 = FR1 4[[router R5]]image = /root/dynamips/unzip-c3620-i-mz.122-37.binmodel = 3620console = 3005ram = 32confreg = 0x2142idlepc = 0xffffffff804235c0exec_area = 32mmap = trueslot0=NM-4Eslot1 = PA-4Tf0/0 = SW1 17f0/1 = SW1 18f0/2 = SW1 19f0/3 = SW1 20s1/1 = R6 s1/0s1/2 = FR1 5[[router R6]]image = /root/dynamips/unzip-c3620-i-mz.122-37.bin model = 3620console = 3006ram = 32confreg = 0x2142idlepc = 0xffffffff804235c0exec_area = 32mmap = trueslot0=NM-4Eslot1 = PA-4Tf0/0 = SW1 21f0/1 = SW1 22f0/2 = SW1 23f0/3 = SW1 24s1/1 = R7 s1/0s1/2 = FR1 6[[router R7]]image = /root/dynamips/unzip-c3620-i-mz.122-37.binmodel = 3620console = 3007ram = 32confreg = 0x2142idlepc = 0xffffffff804235c0exec_area = 32mmap = trueslot0=NM-4Eslot1 = PA-4Tf0/0 = SW1 25s1/1 = R8 s1/0s1/2 = FR1 7[[router R8]]image = /root/dynamips/unzip-c3620-i-mz.122-37.binmodel = 3620console = 3008ram = 32confreg = 0x2142idlepc = 0xffffffff804235c0exec_area = 32mmap = trueslot0=NM-4Eslot1 = PA-4Tf0/0 = SW1 26s1/2 = FR1 8[[ethsw SW1]]1 = dot1q 12 = dot1q 13 = dot1q 14 = dot1q 15 = dot1q 16 = dot1q 17 = dot1q 18 = dot1q 19 = dot1q 110 = dot1q 111 = dot1q 112 = dot1q 113 = dot1q 114 = dot1q 115 = dot1q 116 = dot1q 117 = dot1q 118 = dot1q 119 = dot1q 120 = dot1q 121 = dot1q 122 = dot1q 123 = dot1q 124 = dot1q 125 = dot1q 126 = dot1q 127 = access 1 NIO_linux_eth:eth0[[FRSW FR1]]1:102 = 2:2011:103 = 3:3011:104 = 4:4011:105 = 5:5011:106 = 6:6011:107 = 7:7011:108 = 8:8012:203 = 3:3022:204 = 4:4022:205 = 5:5022:206 = 6:6022:207 = 7:7022:208 = 8:8023:304 = 4:4033:305 = 5:5033:306 = 6:6033:307 = 7:7033:308 = 8:8034:405 = 5:5044:406 = 6:6044:407 = 7:7044:408 = 8:8045:506 = 6:6055:507 = 7:7055:508 = 8:8056:607 = 7:7066:608 = 8:8067:708 = 8:807
     

 

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.