CentOS 5.1安装dynamips详解
搭建CCNP_BSCI环境
先下载以下三个软件:
dynagen-0.10.1.tar.gz
dynamips-0.2.8-RC2-x86.bin
libpcap-0.9.8.tar.gz
在/root下建立一个dynamips文件夹,作为运行目录,把ios,net以及运行用的其它文件放这个文件夹中。
下载完后按照以下步骤进行:
1.安装libpcap
tar -zxvf libpcap-0.9.8.tar.gz
./configure
make
make install
2.复制/root/dynamips-0.2.8-RC2-x86.bin到/usr/local/bin/下
cp dynamips-0.2.8-RC2-x86.bin /usr/local/bin
chmod 777 dynamips-0.2.8-RC2-x86.bin
ln -s dynamips-0.2.8-RC2-x86.bin dynamips
3.解压dynagen-0.10.1.tar.gz
tar -zxvf dynagen-0.10.1.tar.gz
mv dynagen-0.10.1 /root/dynamips
cd /usr/local/bin/
ln -s /root/dynamips/dynagen-0.10.1/dynagen dynagen
获得idle_pc
dynamips -P 7200 -t 7200 /root/dynamips/unzip-c7200-js-mz.123-20.bin
等到进入到route>命令行后,按"ctrl+]"松开后按i,可以获得很多idle_pc号,复制count最大的那个到net文件里
启动dynamips:
nice dynamips -H 7200
启动控制台:
dynagen /root/dynamips/net/route.net
进入控制台后,大家应该知道怎么做了,呵呵!
设备全启动
下面是我的NET文件
autostart = false
[localhost]
port = 7200
udp = 10000
workingdir = ../tmp/
[[router P1R1]]
image = ../ios/unzip-c7200-js-mz.123-20.bin
model = 7200
console = 3001
npe = npe-400
ram = 96
confreg = 0x2142
idlepc = 0x60671c74
exec_area = 64
mmap = true
slot1 = PA-4T
f0/0 = P1R3 f0/0
s1/1 = P1R2 s1/1
s1/0 = FR1 1
[[router P1R2]]
image = ../ios/unzip-c7200-js-mz.123-20.bin
model = 7200
console = 3002
npe = npe-400
ram = 96
confreg = 0x2142
idlepc = 0x60671c74
exec_area = 64
mmap = true
slot1 = PA-4T
f0/0 = P1R4 f0/0
s1/0 = FR1 2
[[router P1R3]]
image = ../ios/unzip-c7200-js-mz.123-20.bin
model = 7200
console = 3003
npe = npe-400
ram = 96
confreg = 0x2142
idlepc = 0x60671c74
exec_area = 64
mmap = true
slot1 = PA-4T
s1/0 = P1R4 s1/0
[[router P1R4]]
image = ../ios/unzip-c7200-js-mz.123-20.bin
model = 7200
console = 3004
npe = npe-400
ram = 96
confreg = 0x2142
idlepc = 0x60671c74
exec_area = 64
mmap = true
slot1 = PA-4T
[[router BBR1]]
image = ../ios/unzip-c7200-js-mz.123-20.bin
model = 7200
console = 3005
npe = npe-400
ram = 96
confreg = 0x2142
idlepc = 0x60671c74
exec_area = 64
mmap = true
slot1 = PA-4T
f0/0 = BBR2 f0/0
s1/0 = FR1 3
[[router BBR2]]
image = ../ios/unzip-c7200-js-mz.123-20.bin
model = 7200
console = 3006
npe = npe-400
ram = 96
confreg = 0x2142
idlepc = 0x60671c74
exec_area = 64
mmap = true
slot1 = PA-4T
s1/0 = FR1 4
[[FRSW FR1]]
1:102 = 2:201
1:103 = 3:301
1:104 = 4:401
2:203 = 3:302
2:204 = 4:402
3:304 = 4:403