查看文章 |
Ubuntu下安装配置dynamips
2008-02-05 14:09
![]() 安装包官方源里就有,不过版本比较老:
sudo apt-get install dynamips dynagen libpcap0.8 如果需要最新版本的话,可以到官网上自行下载编译 dynamips:www.ipflow.utc.fr/blog/ dynagen:dynagen.org libpcap:www.tcpdump.org 安装完成后建议新建一个文件夹用于存放IOS和NET文件 运行: su nice dynamips -H 7200 dynagen ***.net //***为filename NET文件配置: 修改IOS存放目录及tmp文件夹位置 将NIO_gen_eth:\**** 修改为NIO_linux_eth:eth0 解决unable to create TCP sockets问题(关闭dynamips后再启动问题): 这是老版本的一个BUG,不能自动关闭进程,解决办法: ps aux 找到dynamips相应的pid kill pid ***//***为对应pid号 收工,接下来的操作和windows下一模一样。 附我的NET文件(工大瑞普NP——STAT): autostart = False [localhost] port = 7200 udp = 10000 [[router R1]] image = /home/janwen/dynamips/IOS/unzip-c7200-js-mz.123-20.bin model = 7200 console = 3001 npe = npe-400 ram = 96 confreg = 0x2142 exec_area = 64 mmap = False slot0 = PA-C7200-IO-FE slot1 = PA-4T slot2 = PA-4T slot3 = PA-A1 f0/0 = SW1 1 s1/1 = R2 s1/0 s1/2 = FR1 1 a3/0 = AT1 1 idlepc = 0x60671d18 [[router R2]] image = /home/janwen/dynamips/IOS/unzip-c7200-js-mz.123-20.bin model = 7200 console = 3002 npe = npe-400 ram = 96 confreg = 0x2142 exec_area = 64 mmap = False slot0 = PA-C7200-IO-FE slot1 = PA-4T slot2 = PA-4T f0/0 = SW1 2 s1/1 = R3 s1/0 s1/2 = FR1 2 [[router R3]] image = /home/janwen/dynamips/IOS/unzip-c7200-js-mz.123-20.bin model = 7200 console = 3003 npe = npe-400 ram = 96 confreg = 0x2142 exec_area = 64 mmap = False slot0 = PA-C7200-IO-FE slot1 = PA-4T slot2 = PA-4T f0/0 = SW1 3 s1/1 = R4 s1/0 s1/2 = FR1 3 [[router R4]] image = /home/janwen/dynamips/IOS/unzip-c7200-js-mz.123-20.bin model = 7200 console = 3004 npe = npe-400 ram = 96 confreg = 0x2142 exec_area = 64 mmap = False slot0 = PA-C7200-IO-FE slot1 = PA-4T slot2 = PA-4T f0/0 = SW1 4 s1/1 = R5 s1/0 s1/2 = FR1 4 [[router R5]] image = /home/janwen/dynamips/IOS/unzip-c7200-js-mz.123-20.bin model = 7200 console = 3005 npe = npe-400 ram = 96 confreg = 0x2142 exec_area = 64 mmap = False slot0 = PA-C7200-IO-FE slot1 = PA-4T slot2 = PA-4T f0/0 = SW1 5 s1/1 = R6 s1/0 s1/2 = FR1 5 [[router R6]] image = /home/janwen/dynamips/IOS/unzip-c7200-js-mz.123-20.bin model = 7200 console = 3006 npe = npe-400 ram = 96 confreg = 0x2142 exec_area = 64 mmap = False slot0 = PA-C7200-IO-FE slot1 = PA-4T slot2 = PA-4T f0/0 = SW1 6 s1/1 = R7 s1/0 s1/2 = FR1 6 [[router R7]] image = /home/janwen/dynamips/IOS/unzip-c7200-js-mz.123-20.bin model = 7200 console = 3007 npe = npe-400 ram = 96 confreg = 0x2142 exec_area = 64 mmap = False slot0 = PA-C7200-IO-FE slot1 = PA-4T slot2 = PA-4T f0/0 = SW1 7 s1/1 = R8 s1/0 s1/2 = FR1 7 [[router R8]] image = /home/janwen/dynamips/IOS/unzip-c7200-js-mz.123-20.bin model = 7200 console = 3008 npe = npe-400 ram = 96 confreg = 0x2142 exec_area = 64 mmap = False slot0 = PA-C7200-IO-FE slot1 = PA-4T slot2 = PA-4T slot3 = PA-A1 f0/0 = SW1 8 s1/2 = FR1 8 a3/0 = AT1 2 [[ATMSW AT1]] 1:1:100 = 2:8:800 [[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 = 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:807 |
最近读者:
