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

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

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

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

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

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

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

如下:

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

=> 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
  Hardware is dynamips emulated Cisco 3640 with 96 MB RAM
  Router's hypervisor runs on localhost:7200, console is on port 2001
  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

Router R3 is running
  Hardware is dynamips emulated Cisco 3640 with 96 MB RAM
  Router's hypervisor runs on localhost:7200, console is on port 2002
  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
现在路由器已经有了所需要的接口,根据需要修改net文件连接路由器之间的接口。

重新通过dynagen链接net文件

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

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

 

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

好了,就说到这儿吧。

本文出自 “奋斗成就卓越” 博客,转载请与作者联系!

你可能感兴趣的:(职场,休闲,dynamips,Dynagen,3640)