1、GNS3074 模拟Qemu Host JunOS PIX ASA IPS说明【模拟环境】出处: 我所使用的GNS3版本为0.7.4,如果低于这个版本,有些版本会缺少些选项无法支持。GNS3官方下载地址:【Linux Microcore】一、配置1、下载所需要的文件(linux-microcore-2.10.img);到2011-9-7已经更新到linux-microcore-3.8.2 2、将下载好的文件统一存放,文件夹和文件名必须使用英文,GNS3不识别中文路径; 我这里将它统一存放到GNS3文件夹下,路径: G:GNS3Qemulinux-microcore-2.10.img 3、打开G
2、NS3,编辑首选项QemuQemu Host; 按以下内容输入:Identifier name:Linux-MicroCore-2.10(自己填写名称,但不能是中文)Binary image:G:GNS3Qemulinux-microcore-2.10.img(image路径,就是第2步的路径)RAM:128(内存,默认是128)Number of NICs:6(网卡数量,默认是6)NIC model:e1000(网卡类型,默认是e1000)Qemu Options:-no-acpi (手动输入,默认为空)这个版本显示Qemu窗口,不能telnet,目前linux-microcore-3.8.
3、2.img可以telnet了。需要的可以去gns3官网下载;高级用户:root高级密码:root普通用户:tc切换用户命令:su root/tclinux-microcore-3.8.2版本设置:Identifier name:linux-microcore-3.8.2Binary image:G:GNS3Qemulinux-microcore-3.8.2.imgRAM:128(内存,默认是128)Number of NICs:6NIC model:e1000Qemu Options:-no-acpi console=ttyS0,38400n8 -vnc :1(可telnet登陆,去掉-vnc
4、 :1后,运行时显示Qemu控制台)Qemu窗口为Linux的控制台,默认是登陆的是普通模式控制台修改用户密码:sudo passwd root/修改root用户密码su root /切换用户为roottelnet密码修改先用tc登陆,再修改root密码用户密码:tc高级用户:root高级用户密码:root(官网发布的密码,但一直提示不正确) 输入完后,点击保存,下面列表中会出现,然后点Apply(应用)/OK(确定),这样Linux Microcore 2.10就配置完成。二、测试1、打开GNS3,从左侧拖出Qemu host;2、运行刚拖出的QEMU1,弹出QEMU的窗口,启动比较慢,请耐
5、心等待。启动完成后,不能关闭这个QEMU的窗口,否则只能重启这台QEMU1,才能使用。3、启动完成就可以使用了,下面简单的测试。查看接口:ifconfig (6张网卡,1个LOOPBACK口)配置网卡:sudo suifconfig eth0 1.1.1.1 netmask 255.255.255.0ifconfig eth0 upexit如需帮助,可在命令后面加-help,如ping -help,也可以双击Tab查看命令。linux-microcore-2.10就简单介绍到这,如何使用,要自己去发掘了。【PIX】一、配置1、下载所需要的文件(pix804.bin); 我将它存放到GNS3文件
6、夹下,路径: G:GNS3FwPIXpix804.bin 2、打开GNS3,编辑首选项QemuPIX; 按以下内容输入:Identifier name:PIX(自己填名称,但不能是中文)Binary image:G:GNS3FwPIXpix804.bin(image路径,就是第2步的路径)RAM:256(内存,默认是128)Number of NICs:6(网卡数量,默认是6)NIC model:e1000(网卡类型,默认是e1000)Qemu Options:-hdachs 980,16,32 -vnc :1 console=ttyS0,9600n8 (手动输入) 输入完后,点击保存,下面列
7、表中会出现,然后点Apply(应用)/OK(确定),配置完成。3.PIX的激活要完全使用PIX的功能,需要激活PIX,激活方法如下(引用自网络):pixfirewall enPassword:(直接回车)pixfirewall# sh versionCisco PIX Security Appliance Software Version 7.2(2)Compiled on Wed 22-Nov-06 14:16 by buildersSystem image file is “Unknown, monitor mode tftp booted image”Config file at boo
8、t was “startup-config”pixfirewall up 3 mins 23 secsHardware: PIX-525, 256 MB RAM, CPU Pentium II 1 MHzFlash E28F128J3 0xfff00000, 16MBBIOS Flash AM29F400B 0xfffd8000, 32KB0: Ext: Ethernet0 : address is 0000.abcd.ef00, irq 91: Ext: Ethernet1 : address is 0000.abcd.ef01, irq 112: Ext: Ethernet2 : addr
9、ess is 0000.abcd.ef02, irq 113: Ext: Ethernet3 : address is 0000.abcd.ef03, irq 114: Ext: Ethernet4 : address is 0000.abcd.ef04, irq 11The Running Activation Key is not valid, using default settings:Licensed features for this platform:Maximum Physical Interfaces : 6Maximum VLANs : 25Inside Hosts : U
10、nlimitedFailover : Disabled/Failover不可用VPN-DES : DisabledVPN-3DES-AES : DisabledCut-through Proxy : EnabledGuards : EnabledURL Filtering : EnabledSecurity Contexts : 0GTP/GPRS : DisabledVPN Peers : UnlimitedThis platform has a Restricted (R) license.Serial Number: 808102688/序列号Running Activation Key
11、: 000000000 000000000 000000000 000000000 000000000/激活码Configuration has not been modified since last system restart.pixfirewall# activation-key 0xd2390d2c 09fc4b36d 098442d99 0xeef7d8b1 /输入激活码The following features available in flash activation key are NOTavailable in new activation key:Failover is
12、 different.flash activation key: Restricted(R)new activation key: Unrestricted(UR)Proceed with update flash activation key? confirmThe following features available in running activation key are NOTavailable in new activation key:Failover is different.running activation key: Restricted(R)new activati
13、on key: Unrestricted(UR)WARNING: The running activation key was not updated with the requested key.The flash activation key was updated with the requested key, and willbecome active after the next reload.pixfirewall# write /保存配置Building configurationCryptochecksum: 70b1d47e d807251d 47f50cb7 f851d39
14、01226 bytes copied in 0.800 secsOK然后在GNS3中直接停掉PIX,重新启动即可,不能reload。(停止,再开启)下面是重启后的pixfirewall enPassword:pixfirewall# sh versionCisco PIX Security Appliance Software Version 7.2(2)Compiled on Wed 22-Nov-06 14:16 by buildersSystem image file is “Unknown, monitor mode tftp booted image”Config file at boot was “startup-config”pixfirewall up 17 secsHardw
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1