天天看点

dynagen net文件 3640系列路由器写法

在linux安装GNS3是一件让人很痛苦的事情,既然和dynagen只是表现形式上的不同,那就不重形式看内容吧,其实使用dynagen也同样灵活方便,只是要求自己比使用gns3的时候更清楚在做什么罢了。3640是我经常使用的路由器,因为其可安装交换模块,做交换机也很方便。

使用几天dynagen感觉挺好的,写点东西,以后查查也方便。

在运行dynagen之前,首先启动dynamips

<a target="_blank" href="http://blog.51cto.com/attachment/201101/111308575.jpg"></a>

要让路由器可以运行,net文件最起码填写以下内容:

<a target="_blank" href="http://blog.51cto.com/attachment/201101/093923609.jpg"></a>

在dyangen的配置模式中对路由器进行设置,也可通过配置模式查看可选用的模块。

<a target="_blank" href="http://blog.51cto.com/attachment/201101/105538199.jpg"></a>

根据以上信息,可以在net文件中添加slot内容。

如下:

<a target="_blank" href="http://blog.51cto.com/attachment/201101/105939259.jpg"></a>

重新通过dyangen启动net文件,通过show device 命令查看路由器网络模块项。

=&gt; show device

Router R1 is running

  Hardware is dynamips emulated Cisco 3640 with 96 MB RAM

  Router's hypervisor runs on localhost:7200, console is on port 2000

  Image is /opt/IOS/c3640-js-mz.124-10.bin with no idle-pc value

  128 KB NVRAM, 0 MB disk0 size, 0 MB disk1 size

   slot 1 hardware is NM-4T with 4 interfaces

      Serial1/0 is empty

      Serial1/1 is empty

      Serial1/2 is empty

      Serial1/3 is empty

   slot 2 hardware is NM-16ESW with 16 interfaces

      FastEthernet2/0 is empty

      FastEthernet2/1 is empty

      FastEthernet2/2 is empty

      FastEthernet2/3 is empty

      FastEthernet2/4 is empty

      FastEthernet2/5 is empty

      FastEthernet2/6 is empty

      FastEthernet2/7 is empty

      FastEthernet2/8 is empty

      FastEthernet2/9 is empty

      FastEthernet2/10 is empty

      FastEthernet2/11 is empty

      FastEthernet2/12 is empty

      FastEthernet2/13 is empty

      FastEthernet2/14 is empty

      FastEthernet2/15 is empty

Router R2 is running

  Router's hypervisor runs on localhost:7200, console is on port 2001

Router R3 is running

  Router's hypervisor runs on localhost:7200, console is on port 2002

现在路由器已经有了所需要的接口,根据需要修改net文件连接路由器之间的接口。

<a target="_blank" href="http://blog.51cto.com/attachment/201101/110427938.jpg"></a>

重新通过dynagen链接net文件

<a target="_blank" href="http://blog.51cto.com/attachment/201101/110723455.jpg"></a>

查看结果:dynagen下使用命令show device

<a target="_blank" href="http://blog.51cto.com/attachment/201101/110815117.jpg"></a>

R2已经和R1的串行接口进行了连接。

现在可以进行配置各个路由器了。在dynagen中使用console命令:

<a target="_blank" href="http://blog.51cto.com/attachment/201101/111102949.jpg"></a>

好了,就说到这儿吧。

本文转自 tiger506 51CTO博客,原文链接:http://blog.51cto.com/tiger506/487496,如需转载请自行联系原作者

继续阅读