日志文章

2008年05月07日 00:16:20

Cisco Simulator:VPs使用手记

好长时间没用过dynamips了,今天自己写了套拓扑文件后,觉得使用3620配合no ip
routing来模拟PC太占用资源了.于是想起以前发过的一个叫VPS的小软件,在硬盘里找了找,好象是经历N回格盘后,已经不知所踪了.在网上搜索了
一下,下载了一个新版的VPS,毕竟太久未用过了,有点生疏,特意写了份笔记,供以后查阅.另外如果有什么不完善的地方,请高手斧正.

VPCS(可不是microsoft的virtual
PC),它可以用来模拟最多九台PC,占用的内存非常小,据说每台只占1.2M,较之3620要少的多.
而且配置也比3620简单,只要写一个IP加网关跟子网地址就可以了.一条命令就可以了,而不需要要像3620那样配置IP,网关,关闭路由等.vpcs
支持PING
跟traceroute等命令.对于只希望检验实验结果通还是不通已经足够了.如果不是做比较复杂的实验,简单的用来验证连通性及一些简单结果,用它已经
足够了.

大家可以在本文结束处下载它.

该软件无需安装,使用效果图如下:


以下内容为VPs的readme内容,分中文及英文版.可以选择性的阅读.


英文版


   Welcome to Virtual PC Simulator, Ver 0.13a.

The VPCS can simulate up to 9 PCs. You can ping/traceroute them, or
ping/traceroute the other hosts/routers from the VPCS when you study the Cisco
routers in the dynamips. VPCS is not the traditional PC, it is just a program
running on the Linux or Windows, and only few network commands can be used in
it. But VPCS can give you a big hand when you study the Cisco devices in the
Dynamips. VPCS can replace the routers or VMware boxes which are used as PCs
in the dynamips network.

Now, VPCS can be run in udp or ether mode. In the udp mode, VPCS sends or
receives the packets via udp. In the ether mode, via /dev/tap, not support
on the Windows.

When VPCS started, it listens the ports from 20000 to 20008 and wait the
dynamips to connet, and send the packets to the ports from 30000 to 30008 which
should be listened by dynamips.

VPCS will look for the file named 'startup.vpc' in the current directory, and
execute the commands in it if you are not set the startup file from the command
line. All the commands in the startup file are the internal command of the VPCS.
The line started with '#' or '!' will be discarded.

vpcs [options]
-u udp mode, default
-e tap mode, using /dev/tapx
-s port local udp port, default from 20000
-c port remote udp port(dynamips udp ports), default from 30000
-r file run startup file

NOTE: To make compatible with dynamips, VPCS does NOT use the cygwin1.dll
released by cygwin.com. The two files conflicted.

History:
0.13a add ping localhost
fix a ping bug: get reply from any host ip.
0.12s fix the tracert argument bug
0.10s support udp mode
0.02s fix a string copy bug
0.01s first version

中文版


   欢迎使用 VPCS, 最新版本为 0.13a.

VPCS 可以模拟最多 9 个虚拟的 PC。你可以 ping/traceroute 这些 PC,或者
在这些 PC 中 ping/traceroute 其他的主机或路由器。当然这些虚拟的 PC,并不
完全意义上的 PC,它只是一个运行在 Linux 或 Windows 上的应用程序,仅可以
使用少数几个有关网络的命令。在借助 Dynamips 学习 Cisco 设备的过程中,会
起到非常大的帮助。它可以替代在实验中充当 PC 的路由器或者使用 Vmware 虚拟
的 PC。通常,这些被替代者会占用大量的内存和 CPU 资源。

VPCS 可以运行在 UDP 或者以太模式。在 UDP 方式下,VPCS 通过 UDP 发送和接
收数据包;以太方式下,使用 /dev/tapx 发送和接收数据包。在 Windows 下只支
持 UDP 方式。

当 VPCS 启动后, 缺省监听自 20000 到 20008 的 UDP 端口,并向 30000 到
30008 发送数据包。如果没有指定启动文件,且当前目录下存在缺省的启动文件
(文件名为:startup.vpc),VPCS 就会自动加载启动文件,并执行包含的命令。
startup.vpc 可以包含的命令即为 VPCS 的内部命令。

VPCS 的命令行选项
usage: vpcs [options]
-u udp mode, default
-e tap mode, using /dev/tapx
-s port local udp port, default from 20000
-c port remote udp port(dynamips udp ports), default from 30000
-r file run startup file

注意:VPCS 使用的 cygwin1.dll 与 cygwin.com 发行的 cygwin1.dll 并不兼
容,但与 Dynamips 使用的 cygwin1.dll 兼容。

历史版本:
0.13a 增加 ping/tracert 本地 IP 回应
修订 ping 任何 IP,均存在错误
0.12s 修订 tracert 命令参数错误
0.10s 支持 upd 方式
0.02s 修订了一处字符串拷贝错误
0.01s 初始版本

关于VPs如何结合dynamips的批处理及dynagen的.net拓扑文件使用,在下一篇中兜兜将会做出详细的解说.

下载地址:vpcs


Tags: vps   dynamips   cisco   simulator  

类别: dynamips |  评论(1) |  浏览(1450) |  收藏
1楼 [匿名]上海大众搬场 2008年05月07日 13:28:07 Says:
vzhuyhe
[url=http://www.dzbc688.com]上海搬场[/url]
[url=http://www.dzbc688.com]搬场公司[/url]
[url=http://www.dzbc688.com]上海搬场公司[/url]
[url=http://www.dzbc688.com]搬场[/url]
[url=http://www.dzbc688.com]大众搬场[/url]
[url=http://www.dzbc688.com]大众搬场公司[/url]
[url=http://www.dzbc688.com]上海大众搬场[/url]
[url=http://www.dzbc688.com]上海大众搬家[/url]
[url=http://www.dzbc688.com]上海大众搬场公司[/url]
[url=http://www.dzbc688.com]上海大众搬家公司[/url]
[url=http://www.021gxbc.com]公兴搬家[/url]
[url=http://www.021gxbc.com]公兴搬家公司[/url]
[url=http://www.021gxbc.com]公兴搬场[/url]
[url=http://www.021gxbc.com]上海公兴搬家[/url]
[url=http://www.021gxbc.com]上海公兴搬场[/url]
[url=http://www.021gxbc.com]上海公兴搬场公司[/url]
[url=http://www.021gxbc.com]上海公兴搬家公司[/url]
[url=http://www.seo021.net]上海书生软件[/url]
[url=http://www.021688.com]上海报纸广告[/url]
[url=http://www.021688.com]上海报纸[/url]
[url=http://www.huay56.cn]华宇物流[/url]
[url=http://www.huay56.cn]上海华宇物流[/url]
[url=http://www.huay56.cn]华宇物流公司[/url]
[url=http://www.huay56.cn]上海华宇物流公司[/url]
dakhgkd
[url=http://www.021gxbj.com]强生搬家[/url]
[url=http://www.021gxbj.com]强生搬场[/url]
[url=http://www.021gxbj.com]上海强生搬家[/url]
[url=http://www.021gxbj.com]上海强生搬场[/url]
[url=http://www.021gxbj.com]上海强生搬家公司[/url]
[url=http://www.021gxbj.com]上海强生搬场公司[/url]
[url=http://www.gxbj168.com]公兴搬家[/url]
[url=http://www.gxbj168.com]公兴搬家公司[/url]
[url=http://www.gxbj168.com]公兴搬场[/url]
[url=http://www.gxbj168.com]上海公兴搬家[/url]
[url=http://www.gxbj168.com]上海公兴搬场[/url]
[url=http://www.gxbj168.com]上海公兴搬场公司[/url]
[url=http://www.gxbj168.com]上海公兴搬家公司[/url]
[url=http://www.dzbc688.net.cn]大众搬场[/url]
[url=http://www.dzbc688.net.cn]大众搬场公司[/url]
[url=http://www.dzbc688.net.cn]上海大众搬场[/url]
[url=http://www.dzbc688.net.cn]上海大众搬家[/url]
[url=http://www.dzbc688.net.cn]上海大众搬场公司[/url]
[url=http://www.dzbc688.net.cn]上海大众搬家公司[/url]
fjkajfgjahgajh
[url=http://www.shmlrs.cn]上海婚纱摄影[/url]
[url=http://www.shmlrs.cn]上海婚纱摄影中心[/url]
[url=http://www.shmlrs.cn]婚纱摄影中心[/url]
[url=http://www.shmlrs.cn]婚纱摄影[/url]
[url=http://www.shgxbcgs.com.cn]公兴搬家[/url]
[url=http://www.shgxbcgs.com.cn]公兴搬场[/url]
[url=http://www.shgxbcgs.com.cn]上海公兴搬家[/url]
[url=http://www.shgxbcgs.com.cn]上海公兴搬场[/url]
[url=http://www.shgxbcgs.com.cn]上海公兴搬场公司[/url]
[url=http://www.shgxbcgs.com.cn]上海公兴搬家公司[/url]
[url=http://www.shgxbcgs.com.cn]上海公兴搬场公司[/url]
[url=http://www.shgxbcgs.com.cn]上海公兴搬家公司[/url]
[url=http://www.shgxdz.com.cn]吊装[/url]
[url=http://www.shgxdz.com.cn]上海吊装[/url]
[url=http://www.shgxdz.com.cn]吊装公司[/url]
[url=http://www.shgxdz.com.cn]上海吊装公司[/url]
[url=http://www.shztky56.com.cn]华宇物流[/url]
[url=http://www.shztky56.com.cn]华宇物流公司[/url]
[url=http://www.shztky56.com.cn]上海华宇物流[/url]
[url=http://www.shztky56.com.cn]上海华宇物流公司[/url]
[url=http://www.shgxbc88.cn]公兴搬场[/url]
[url=http://www.shgxbc88.cn]公兴搬家[/url]
[url=http://www.shgxbc88.cn]上海公兴搬场[/url]
[url=http://www.shgxbc88.cn]上海公兴搬家[/url]
[url=http://www.dzbcwl.net.cn]大众搬场[/url]
[url=http://www.dzbcwl.net.cn]大众搬场公司[/url]
[url=http://www.dzbcwl.net.cn]上海大众搬场[/url]
[url=http://www.dzbcwl.net.cn]上海大众搬家[/url]
[url=http://www.dzbcwl.net.cn]上海大众搬场公司[/url]
[url=http://www.dzbcwl.net.cn]上海大众搬家公司[/url]
发表评论