LINUX下安装dynamips的方法
最近比较懒,一个月才2篇文章,唉!!!以后不会这样了~~~下面转一篇不错的文章。
发布LINUX下安装dynamips的方法..!
建议仔细先看下作者的博客(,里面有很多东西的,还可以得到最新的dynamips的消息.
好了,开始安装吧,我的系统环境是FC4,而我准备安装3620的模拟器做路由实验,至于交换的,应该也差不多,以后有问题可以再交流.首先先下载 这3个文件到/root下1.安装libpcaptar -zxvf libpcap-0.9.5.tar.gz./configuremakemake install2.复制/root/dynamips-0.2.5-x86.bin到/usr/local/bin/下cp dynamips-0.2.5-x86.bin /usr/local/binln -s dynamips-0.2.5-x86.bin dynamips3.解压dynagen-0.6.0.tar.gztar -zxvf dynagen-0.6.0.tar.gzcd /usr/local/bin/ln -s /root/dynagen-0.6.0/dynagen dynagen好了,这样就可以找个net文件来启动dynamips了,建议建个dynamips的文件夹,把dynamips,IOS,net文件都放进去启动dynamips:nice dynamips -H 7200启动控制台:dynagen /root/dynamips/xxx.net进入控制台,跟windos下就一模一样了获得idle_pcdynamips -P 3600 -t 3620 /root/dynamips/xxx.bin(这里是3620的IOS文件)等到进入到route>命令行后,按"ctrl+]"松开后按i,就可以获得很多idle_pc号,复制count最大的那个到net文件里就OK了至于网卡参数,把net文件中的NIO_gen_eth:xxx改成NIO_linux_eth:eth0就行了在控制台下启动路由器后,新开启一个终端,然后telnet 127.0.0.1 3001(这里是R1的端口号)就可以进入路由器,开始做实验了..下面是我的NET文件,参照(autostart = false[localhost]port = 7200udp = 10000 `router R1` p_w_picpath = /root/dynamips/unzip-c3620-i-mz.122-37.bin model = 3620 console = 3001 ram = 32 confreg = 0x2142 idlepc = 0xffffffff804235c0 exec_area = 32 mmap = true slot0=NM-4E slot1 = PA-4T f0/0 = SW1 1 f0/1 = SW1 2 f0/2 = SW1 3 f0/3 = SW1 4 s1/1 = R2 s1/0 s1/2 = FR1 1 `router R2` p_w_picpath = /root/dynamips/unzip-c3620-i-mz.122-37.bin model = 3620 console = 3002 ram = 32 confreg = 0x2142 idlepc = 0xffffffff804235c0 exec_area = 32 mmap = true slot0=NM-4E slot1 = PA-4T f0/0 = SW1 5 f0/1 = SW1 6 f0/2 = SW1 7 f0/3 = SW1 8 s1/1 = R3 s1/0 s1/2 = FR1 2 `router R3` p_w_picpath = /root/dynamips/unzip-c3620-i-mz.122-37.bin model = 3620 console = 3003 ram = 32 confreg = 0x2142 idlepc = 0xffffffff804235c0 exec_area = 32 mmap = true slot0=NM-4E slot1 = PA-4T f0/0 = SW1 9 f0/1 = SW1 10 f0/2 = SW1 11 f0/3 = SW1 12 s1/1 = R4 s1/0 s1/2 = FR1 3 `router R4` p_w_picpath = /root/dynamips/unzip-c3620-i-mz.122-37.bin model = 3620 console = 3004 ram = 32 confreg = 0x2142 idlepc = 0xffffffff804235c0 exec_area = 32 mmap = true slot0=NM-4E slot1 = PA-4T f0/0 = SW1 13 f0/1 = SW1 14 f0/2 = SW1 15 f0/3 = SW1 16 s1/1 = R5 s1/0 s1/2 = FR1 4 `router R5` p_w_picpath = /root/dynamips/unzip-c3620-i-mz.122-37.bin model = 3620 console = 3005 ram = 32 confreg = 0x2142 idlepc = 0xffffffff804235c0 exec_area = 32 mmap = true slot0=NM-4E slot1 = PA-4T f0/0 = SW1 17 f0/1 = SW1 18 f0/2 = SW1 19 f0/3 = SW1 20 s1/1 = R6 s1/0 s1/2 = FR1 5 `router R6` p_w_picpath = /root/dynamips/unzip-c3620-i-mz.122-37.bin model = 3620 console = 3006 ram = 32 confreg = 0x2142 idlepc = 0xffffffff804235c0 exec_area = 32 mmap = true slot0=NM-4E slot1 = PA-4T f0/0 = SW1 21 f0/1 = SW1 22 f0/2 = SW1 23 f0/3 = SW1 24 s1/1 = R7 s1/0 s1/2 = FR1 6 `router R7` p_w_picpath = /root/dynamips/unzip-c3620-i-mz.122-37.bin model = 3620 console = 3007 ram = 32 confreg = 0x2142 idlepc = 0xffffffff804235c0 exec_area = 32 mmap = true slot0=NM-4E slot1 = PA-4T f0/0 = SW1 25 s1/1 = R8 s1/0 s1/2 = FR1 7 `router R8` p_w_picpath = /root/dynamips/unzip-c3620-i-mz.122-37.bin model = 3620 console = 3008 ram = 32 confreg = 0x2142 idlepc = 0xffffffff804235c0 exec_area = 32 mmap = true slot0=NM-4E slot1 = PA-4T f0/0 = SW1 26 s1/2 = FR1 8 `ethsw SW1` 1 = dot1q 1 2 = dot1q 1 3 = dot1q 1 4 = dot1q 1 5 = dot1q 1 6 = dot1q 1 7 = dot1q 1 8 = dot1q 1 9 = dot1q 1 10 = dot1q 1 11 = dot1q 1 12 = dot1q 1 13 = dot1q 1 14 = dot1q 1 15 = dot1q 1 16 = dot1q 1 17 = dot1q 1 18 = dot1q 1 19 = dot1q 1 20 = dot1q 1 21 = dot1q 1 22 = dot1q 1 23 = dot1q 1 24 = dot1q 1 25 = dot1q 1 26 = dot1q 1 27 = access 1 NIO_linux_eth:eth0 `FRSW FR1` 1:102 = 2:201 1:103 = 3:301 1:104 = 4:401 1:105 = 5:501 1:106 = 6:601 1:107 = 7:701 1:108 = 8:801 2:203 = 3:302 2:204 = 4:402 2:205 = 5:502 2:206 = 6:602 2:207 = 7:702 2:208 = 8:802 3:304 = 4:403 3:305 = 5:503 3:306 = 6:603 3:307 = 7:703 3:308 = 8:803 4:405 = 5:504 4:406 = 6:604 4:407 = 7:704 4:408 = 8:804 5:506 = 6:605 5:507 = 7:705 5:508 = 8:805 6:607 = 7:706 6:608 = 8:806 7:708 = 8:807IOS下载:文件:
libpcap-0.9.5.tar.tar
大小:
423KB
下载:
文件:
3620.rar
大小:
0KB
下载:
文件:
dynamips-0.2.7-RC1-x86.rar
大小:
257KB
下载: