天天看點

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,如需轉載請自行聯系原作者

繼續閱讀