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命令:

好了,就说到这儿吧。





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

目录
相关文章
|
5月前
|
C# Windows
.NET开源免费的Windows快速文件搜索和应用程序启动器
今天大姚给大家分享一款.NET开源(MIT License)、免费、功能强大的Windows快速文件搜索和应用程序启动器:Flow Launcher。
100 0
|
26天前
.NET 压缩/解压文件
【9月更文挑战第5天】在 .NET 中,可利用 `System.IO.Compression` 命名空间进行文件的压缩与解压。首先引入相关命名空间,然后通过 GZipStream 类实现具体的压缩或解压功能。下面提供了压缩与解压文件的方法示例及调用方式,便于用户快速上手操作。
|
2月前
|
Java Windows 容器
【应用服务 App Service】快速获取DUMP文件(App Service for Windows(.NET/.NET Core))
【应用服务 App Service】快速获取DUMP文件(App Service for Windows(.NET/.NET Core))
|
2月前
|
开发框架 .NET Linux
【Azure Developer】已发布好的.NET Core项目文件如何打包为Docker镜像文件
【Azure Developer】已发布好的.NET Core项目文件如何打包为Docker镜像文件
|
3月前
|
存储 对象存储 Python
`openpyxl`是一个用于读写Excel 2010 xlsx/xlsm/xltx/xltm文件的Python库。它不需要Microsoft Excel,也不需要.NET或COM组件。
`openpyxl`是一个用于读写Excel 2010 xlsx/xlsm/xltx/xltm文件的Python库。它不需要Microsoft Excel,也不需要.NET或COM组件。
|
3月前
|
算法 API 数据安全/隐私保护
.NET使用原生方法实现文件压缩和解压
.NET使用原生方法实现文件压缩和解压
.NET使用原生方法实现文件压缩和解压
|
3月前
|
存储 C#
.NET使用CsvHelper快速读取和写入CSV文件
.NET使用CsvHelper快速读取和写入CSV文件
|
4月前
|
存储 安全 Unix
【.Net Core】深入理解IO之文件和目录
【.Net Core】深入理解IO之文件和目录
45 4
|
4月前
|
存储 C#
.NET使用CsvHelper快速读取和写入CSV文件
优秀项目和框架精选 该项目已收录到C#/.NET/.NET Core优秀项目和框架精选中,关注优秀项目和框架精选能让你及时了解C#、.NET和.NET Core领域的最新动态和最佳实践,提高开发工作效率和质量。坑已挖,欢迎大家踊跃提交PR推荐或自荐(让优秀的项目和框架不被埋没🤞)。
|
4月前
|
开发框架 .NET Linux
【.NET Developer】已发布好的.NET Core项目文件如何打包为Docker镜像文件
该文介绍了如何不使用VS2019手动创建ASP.NET Core Blazor项目的Dockerfile并构建Docker镜像。首先,创建名为Dockerfile的文件,并复制提供的Dockerfile内容,该文件指定了基础镜像和工作目录。然后,通过CMD在项目目录下运行`docker build -t 自定义镜像名 .`来生成镜像。最后,使用`docker run`命令启动容器并验证项目运行。此外,文章还提到了将镜像推送到Azure Container Registry (ACR)的步骤。
175 0