GNS3 interoperability test environment deployment and Two

Today and small partners to share environmental GNS3 deployment and interoperability testing two methods.
Before you begin we need to understand what GNS3 are:
GNS3 is a with a graphical interface can run multiple platforms (including Windows, Linux, and MacOS, etc.) network virtualization software. Cisco network device administrator or want can be done by the relevant experiments to simulate the actions stakeholders CCNA, CCNP, CCIE and other Cisco certification exam through it. It also can be used for virtual experience Cisco IOS IOS or test to be deployed configuration implemented on a real router.
Simply put it is a graphical front-end dynamips directly compared to the use of such dynamips virtualization software easier to use and to be more operational.
GNS3 incorporates the following software:
1.Dynamips: allows users to directly run a Cisco Systems (IOS) simulator
2.Dynagen: Dynamips text is displayed front-end
3.Pemu: PIX firewall device simulator.
4.Winpcap: windows platform a free, public network access systems. This item winpcap development
aims to provide the ability to access the underlying network for win32 applications; good design network topology; analog Cisco PIX firewalls and routing equipment; simulation simple Ethernet, ATM and frame relay switch; can load and save as Dynamips the configuration format, which means that the kernel for use dynamips virtualization software has better compatibility to support some export file formats (JPEG, PNG, BMP and XPM ) the
next thing I share with you as we deploy this environment need to use my path software in the cloud tray:
Links: https://pan.baidu.com/s/13bRylSWS87xjv_8jN_F7-Q
Extraction code: r99a
this whole download folder after folder need to use this file into the following three:
GNS3 interoperability test environment deployment and Two
GNS3 interoperability test environment deployment and Two
GNS3 interoperability test environment deployment and Two
Here we can GNS3 software installed:
1. First, we double-click the following procedures for installation, here we installed version 1.3 stable version
GNS3 interoperability test environment deployment and Two
2. Go to step as shown below when the following two options do not check, because in the back of the installation of automatic download time will be very long and will be prompted to download failed
GNS3 interoperability test environment deployment and Two
3. Next we enter the selection path, this time to remind is that we must note that the path must not have Chinese or spaces and symbols:
GNS3 interoperability test environment deployment and Two
4. after selecting the installation path into the installation progress of the installation interface will pop up before WinPcap selected virtual machine inside the default option is direct, then the installation is complete on it:
GNS3 interoperability test environment deployment and Two
5. after installation is complete we click Finish, and then will pop up the following interface, this interface, we can see YSE options are prompted to bold, but we need to select here is NO because if selected here will be prompted to pay $ 200 to learn CCNA:
GNS3 interoperability test environment deployment and Two
6. follow-up will be prompted to start GNS3, this time Let us not worry, because the overall environment has not yet deployed, then we get back to the desktop as an icon of GNS3 as follows:
GNS3 interoperability test environment deployment and Two
Next, we then installed Wireshark:
or above, we first look at what is Wireshark:
Wireshark (formerly known as Ethereal) is a network packet analysis software. Network packet analysis function of the software is network packet capture and show as much as possible the most detailed packet data network. Wireshark WinPCAP use as an interface for data exchange messages directly with the card.
In the past, network packet analysis software is very expensive or specialized software belonging to profit with. Ethereal has changed all that. GNUGPL coverage under the General Public License, users can get the software and its source code is free of cost and for its own source code modification and customization rights. Ethereal is one of the most extensive network packet analysis software in the world.
Then we install Wireshark software:

  1. We find the following programs in the downloaded file, double-click to open:
    GNS3 interoperability test environment deployment and Two
  2. Screen prompts to enter the following figure, we need to check the desktop icon display, as follows:
    GNS3 interoperability test environment deployment and Two
  3. Select the default path, then the next step will be prompted to install winpacp, as we have previously installed, the option to hook it here,
    GNS3 interoperability test environment deployment and Two
  4. After the installation is complete, do not run the same software, this time to get back to the desktop icon shown in the following figure:
    GNS3 interoperability test environment deployment and Two
    this time we can open GNS3, so we optimized
    not jump out of the box in the Welcome screen prompts bomb selection:
    GNS3 interoperability test environment deployment and Two
    this time will be officially entered the operating GNS3 interface will pop up New project prompt box, let us save and the new: at this point our new project will be saved in the default path, if you want to quit halfway through can not be saved directly in this path, then wait until later do it and then select open can continue in this path, we are not here to New, select cancel:
    GNS3 interoperability test environment deployment and Two
    at this point we GNS3 accounting into the user interface, I explain the composition of the interface:
    GNS3 interoperability test environment deployment and Two
    it should be reminded that back in start GNS3 must be optimized, otherwise the system CUP occupancy rate will reach 100%, will be very computer cards, so in this particular prompt, be sure to optimize after installing the image file! ! !
  5. First we load the image (here the image file ending .bin), where we choose the highest version c3725 mirror, select automatic decompression after loading, the system will automatically convert image files to the IOS image file
    GNS3 interoperability test environment deployment and Two
    GNS3 interoperability test environment deployment and Two

  6. The latter option is the default the next step will enter the Idle-PC interface, this is for Idle worth calculation, after the latter calculated to optimize CPU utilization, so that the computer will not Caton, and here we do not calculate the first click Finish, it will display a route has been added:
    GNS3 interoperability test environment deployment and Two
    GNS3 interoperability test environment deployment and Two
  7. 此时我们新建的路由器既可以当路由器(此路由器为运营商级别的路由器),也可以通过添加二层业务单板就可以成为交换机,我们可以将建好的路由器拖入我们的拓扑控制台,此时界面右边会提示此路由器的状态(红色为未开启,绿色为开启),接下来我们就可以操作开启此路由器了,开启的方法有两种,以上操作如下图所示:
    GNS3 interoperability test environment deployment and Two
    GNS3 interoperability test environment deployment and Two
    备注:上图工具栏的开启按键是不论控制区域有多少台路由器或者其它设备,只要点击或者这个开启按键就会全部开启
    这时如果我们有两台路由器就可以进行相连了,具体操作如下图所示:
    GNS3 interoperability test environment deployment and Two
    此时我们点击工具栏的开启,两台路由器就全部开启了,但是此时CPU占用率会非常高,我们可以进行Idle值的计算来进行优化(Idle值得计算只有在路由器启动后才可以进行,关闭时是无法进行计算的),右键点击开启的路由器,选择Idle-PC进入计算,选择结尾有“*”符号的为最优的Idle值,然后选择它,应用之后CPU的使用率会降低。具体操作如下图所示:
    GNS3 interoperability test environment deployment and Two
    GNS3 interoperability test environment deployment and Two
    此时路由器的状态为运行状态了,接下来我们可以双击拓扑区已经运行的路由器,得到它的运行界面如下图所示,后面我们的操作就是在此界面用命令对它进行操作,:
    GNS3 interoperability test environment deployment and Two
    除此之外,我们之前安装的Wireshark抓包,这里也可以用上做数据抓取,具体的操作如下所示:
    GNS3 interoperability test environment deployment and Two
    GNS3 interoperability test environment deployment and Two
    GNS3 interoperability test environment deployment and Two
    GNS3 interoperability test environment deployment and Two
    此时我们简单举例操作一下:
    1.双击点开R1路由器,此时显示的RR1#这个模式为特权模式,因为其中含有符号“#”
    GNS3 interoperability test environment deployment and Two
    2.我们输入命令:disable敲回车,这时我们得到的结果是R1>,这个模式为用户模式,因为其中含有符号“>”
    GNS3 interoperability test environment deployment and Two
    3.我们再进入到特权模式的命令就是:enable,退特权输入的命令是:disable。
    4.此时我们在输入命令:configure terminal敲回车得到的结果就是R1(config)#,这个模式为全局模式,因为其中含有“(config):此模式下就可以对路由器进行有效配置了
    GNS3 interoperability test environment deployment and Two
  8. 返回上一层的命令为:exit
  9. 在不知道命令全写是什么什么的时候可以输入开头,然后按TAB键补全改词,如果不知道后面该写什么词,可以输入“?”来查询:
    GNS3 interoperability test environment deployment and Two
  10. 输入命令:end,可以从任何模式退回到特权模式。

我们接下来来进行路由器地址的设置:
例如:R1的IP地址:192.168.8.8,子网掩码:255.255.255.0
R2的IP地址:192.168.8.10,子网掩码:255.255.255.0
第一步:输入interface fastEthernet 0/0进入接口模式
第二步:输入ip address 192.168.8.8 255.255.255.0
第三步:输入no shutdown(开启接口)
具体操作如下图所示:
GNS3 interoperability test environment deployment and Two
此时R2路由器的设置和R1相同,小伙伴们可以参照上面的操作,对R2路由器进行对应的设置。
我们接下来就可以来验证下两台路由器是否是连通的,进入到R1中的命令,输入end进入特权模式,再输入ping 192.168.8.10敲回车,此时我们就能看到互通的状态,案例处是总共五个数据,接通四个,还有一个未接通,未接通用“.”表示,接通用“!”表示。另外我们也可以用抓包来获取传输的数据所有操作如下图:
GNS3 interoperability test environment deployment and Two
GNS3 interoperability test environment deployment and Two
以上操作我们也可以用CRT打开命令
同样我们先来了解一下什么是CRT:
SecureCRT是一款支持SSH(SSH1和SSH2)的终端仿真程序,简单地说是Windows下登录UNIX或Linux服务器主机的软件。
SecureCRT支持SSH,同时支持Telnet和rlogin协议。SecureCRT是一款用于连接运行包括Windows、UNIX和VMS的理想工具。通过使用内含的VCP命令行程序可以进行加密文件的传输。
接下来我们进行CRT的安装,此时我们下载的CRT文件是个压缩包,我们需要解压缩到当前文件夹下(此处需要注意的是,电脑中系统自带的微软杀毒软件的带文件监控和隔离,预先把此功能关闭,为防止解压缩之后把其中的一个重要程序给自动删除了),点击解压缩之后需要输入密码为:SPOTO,在解压缩的文件中找到如下图所示的应用程序双击打开运行安装:
GNS3 interoperability test environment deployment and Two
进入后默认设置进行安装,其中选择一个在桌面创建快捷方式,安装路径默认不要修改,安装完成之后暂时先不要运行,点击完成此时回到桌面会得到如下图的桌面图标:
GNS3 interoperability test environment deployment and Two
此时的软件如果我们直接打开是只有30天试用期的,结束之后再想使用就需要收费了。
接下来是发福利的时候了!!!这个时候我们就需要用到解压缩文件下的破解补丁,但是不能直接使用,需要把此应用程序放在CRT的安装路径下才可以,具体的操作过程如下图所示:
GNS3 interoperability test environment deployment and Two
此时在工作目录中的破解补丁包一定要选择用管理员身份运行,得到如下界面:
GNS3 interoperability test environment deployment and Two
再点击左下角的Patch,会自动进入到工作目录当中,此时会跳出CRT应用程序,点击它选择打开后会显示成功界面,此时点击确定会再次弹出工作目录,此时显示的是LicenseHelper的应用程序,点击它选择打开还会在跳出成功提示,这时候点击确定之后就可以进入CRT软件进行秘钥的输入了。
此时我们双击打开桌面的CRT应用程序,跳出路径选择默认不变进入下一步,选择输入激活码,然后对应破解补丁上的内容输入到激活栏中点击完成,具体操作如下图所示:
GNS3 interoperability test environment deployment and Two
GNS3 interoperability test environment deployment and Two
GNS3 interoperability test environment deployment and Two
GNS3 interoperability test environment deployment and Two
GNS3 interoperability test environment deployment and Two
之后CRT会跳出一个设置,选择如图所示选项,点击OK就可以了,此时的CRT就可以使用了,而且是永久激活状态,再选择接入形式,具体操作如下图所示:
GNS3 interoperability test environment deployment and Two
GNS3 interoperability test environment deployment and Two
这时我们再进入GNS3模拟器进行相关设置:
1.点击Edit编辑,选择设置
2.在General中的Console applications里面看到默认的终端是putty.exe
3.此时我们要设置成远程CRT软件,下拉之后选择SecureCRT,然后点击Set更新路径
4.点击OK完成
具体操作如下图所示:
GNS3 interoperability test environment deployment and Two
后面再在GNS3里面打开中段的方式就是使用CRT打开了,我们进行试验:
第一步:拉两台路由器到操作台,并用网线连接(分别为R1、R2)
第二步:点击开启运行
第三步:此时我们双击R1,会自动跳转界面到CRT中
GNS3 interoperability test environment deployment and Two
第四步:此时我们再双击R2路由器,会自动跳转到CRT中新生成一个窗口,如果我们想在CRT中的两个界面来回切换的话按的按键是:Alt+1和Alt+2
此时我们的实验成功,可以在GNS3中远程打开CRT。

因为GNS3中自带模拟机,所以我们接下来的实验就是用两种方式来验证使两台虚拟PC机互连互通;
第一种:使用自带的VPC连接交换机互联互通
第二步:我们在GNS3中拖出一台路由器,改显示名称为SW(交换机)
第三步:改图标为交换机
第四步:更改配置,添加二层单板,
第五步:这个时候再拖两台VPC,使用网线分别和交换机相连,此时需要注意的是交换机中0开头的是路由器的接口,1开头的才是二层单板交换机的接口,连接完成后点击显示端口
第六步:点击全部开启后需对交换机SW进行配置,此时双击SW的图标进入远程的CRT
第七步:输入conf t进入全局模式,再输入no ip routing(关闭路由功能),此时关闭路由功能就成为了交换机
第八步:此时我们再双击下面的PC1和PC2在CRT中生成两个界面,然后我们先给PC1配IP地址,输入:ip 192.168.8.8 255.255.255.0敲回车配置IP地址和子网掩码,PC2中的操作相同输入:ip 192.168.8.10 255.255.255.0敲回车配置IP地址和子网掩码
第九步:这个时候我们就可以验证两台PC机能不能互通,此时我们使用PC1输入:ping 192.168.8.10,具体操作步骤如下图所示:
GNS3 interoperability test environment deployment and Two
GNS3 interoperability test environment deployment and Two
GNS3 interoperability test environment deployment and Two
GNS3 interoperability test environment deployment and Two
GNS3 interoperability test environment deployment and Two
GNS3 interoperability test environment deployment and Two
GNS3 interoperability test environment deployment and Two
GNS3 interoperability test environment deployment and Two
GNS3 interoperability test environment deployment and Two
GNS3 interoperability test environment deployment and Two
此时显示是互通的则实验成功。

第二种:配合使用Vmware连接GNS3中交换机互联互通
第一步:清空操作台中的PC机,及连接网线,只剩下SW的交换机
第二步:打开Vmware虚拟机,并打开两个win10的客户端
第三步:进行网卡设置,每一个网卡绑定的VMnet设置是不一样的,选择一个WWIN10客户端,右键点击右下角的网络选择设置,在网络连接处选择自定义,下拉选择VMnet1(仅主机模式)
第四步:此时两台客户端分别需要配置一个网卡,我们这个时候点击上方工具栏的编辑,选择虚拟网络编辑器,可以在其中添加VMnet,点击更改设置选择是,点击添加下拉选择网络位:VMnet2,点击确定后就添加上去了,这里需要注意的就是其中有一个使用DHCP服务将IP地址分配给虚拟机,这一项为了避免冲突不要勾选。这时我们的额第二个客户端就可以按照步骤二的方法设置网络为自定义VMnet2(仅主机模式)
第五步:回到GNS3,点击左侧的图标栏,选择PC客户端,选择Host,拖两台Host主机到拓扑操作台,点击用网线连接,这时候在host1上选择的就是VMnet1,连接交换机上的1/0口,同样在host2上选择的就是VMnet2,连接交换机上的1/1口,显示端口,开启所有
第六步:在虚拟机上进行IP地址和子网掩码的设置,我们在一台win10中选择网络,网络共享中心,更改适配器设置,右键点击太网选择属性,IPv4协议,输入IP地址为192.168.8.8,子网掩码生成:255.255.255.0;另外一台win10之前相同的操作,在IPv4协议中输入IP地址为:192.168.8.10,子网掩码生成为:255.255.255.0
第七步:在ping是否相通之前需要先关闭两台win10客户端的防火墙,因为防火墙开启状态下数据包是拦截的无法相同
Step eight: Enter GNS3, we Host1 ping Host2, select capture in Host2 at the (right-click the network cable to the switch Host2 choose to open packet capture, interface options 1/1)
Step 9: win10 client into the first ( IP: 192.168.8.8 of this), evocative cmd, enter the command: ping 192.168.8.10 -t (long spell) knockout round, exchange is displayed, the data capture have also shown two hosts communicate data in cmd
specific steps are as shown below:
GNS3 interoperability test environment deployment and Two
GNS3 interoperability test environment deployment and Two
GNS3 interoperability test environment deployment and Two
GNS3 interoperability test environment deployment and Two
GNS3 interoperability test environment deployment and Two
GNS3 interoperability test environment deployment and Two
GNS3 interoperability test environment deployment and Two

All of the above steps and experiments show that our today's environment the deployment of GNS3 and two kinds of interoperability tests are successful.

Guess you like

Origin blog.51cto.com/14464303/2426122