加入收藏 设为首页 联系站长
首页 | 虚拟动态 | Cisco模拟 | Juniper仿真 | 虚拟机 | 网络仿真 | 软件路由 | 技术专题 | 相关软件 | 交流论坛
>首页 -> Cisco模拟 -> Dynamips

TOP

Vpcs new version 0.14a was release
[ 录入者:admin | 时间:2007-11-04 02:02:03 | 作者: | 来源: | 浏览:1332次 ]

please tell me if you meet the bug or the problem.

1. add arp command, show arp table, 120 seconds expired.
2. add echo command, send udp/tcp packets to the remote host

 

 

Virtual PC Simulator The VPCS can simulate up to 9 PCs. You can ping/traceroute them, orping/traceroute the other hosts/routers from the virtual PCs when youstudy the Cisco routers in the Dynamips. VPCS is not the traditionalPC, it is just a program running on the Linux or Windows, and only fewnetwork commands can be used in it. But VPCS can give you a big handwhen you study the Cisco devices in the Dynamips. VPCS can replace therouters or VMware boxes which are used as PCs in the Dynamips network.
Try VPCS, it can save your CPU/Memory. It is very small.

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

Install
Latest version is 0.14a, download and unpack it.

vpcs.exe is windows program. vpcs is linux program, maybe you need chmod +x 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 1 >?
show                         Print the net configuration of PCs.
d                            Switch to the PC[d], d is digit, range 1 to 9.
hist                         List the history command, use arrow keys to get
                              recently-executed commands.
ip address gateway [CIDR]    Set the host's ip, gateway's ip and network mask.
                              In the ether mode, the ip of the tapx is the
                              maximum host ID of the subnet. Default CIDR is
                              24. 'ip 10.1.1.70 10.1.1.65 26', set the host ip
                              to 10.1.1.70, the gateway ip to 10.1.1.65, the
                              netmask to 255.255.255.192, the tapx ip to
                              10.1.1.126 (ether mode).
arp                          Show arp table.
ping address                 Ping the network host.
echo address port [udp|tcp]  Echo the host port with protocol(udp/tcp).
tracert address [maxhops]    Print the route packets take to network host.
                              default maxhops is 64.
conf [lport|rport] port      Set local or remote port. 'conf lport' will close
                              the old port and open the new port. Only udp mode.
?                            Print help.
quit                         Close all the port(udp mode) or the tapx (ether
                              mode), then quit.
Do you remember Mr. Mike Muuss? VPCS 1 >s
NAME   IP/CIDR              GATEWAY           MAC                LPORT  RPORT
PC1    172.16.1.1/24        172.16.1.10       00:50:79:66:68:00  20000  30000
PC2    172.16.1.2/24        172.16.1.10       00:50:79:66:68:01  20001  30001
PC3    172.16.1.3/24        172.16.1.10       00:50:79:66:68:02  20002  30002
PC4    0.0.0.0/0            0.0.0.0           00:50:79:66:68:03  20003  30003
PC5    0.0.0.0/0            0.0.0.0           00:50:79:66:68:04  20004  30004
PC6    0.0.0.0/0            0.0.0.0           00:50:79:66:68:05  20005  30005
PC7    0.0.0.0/0            0.0.0.0           00:50:79:66:68:06  20006  30006
PC8    0.0.0.0/0            0.0.0.0           00:50:79:66:68:07  20007  30007
PC9    0.0.0.0/0            0.0.0.0           00:50:79:66:68:08  20008  30008If in the ether mode, please run it before the dynamips loads/starts the ios.

When VPCS started, it listens the ports from 20000 to 20008 and waitthe dymamips to connet, and send the packets to the ports from 30000 to30008 which should be listened by the Dynamips.
  
VPCS looks for the file named ‘startup.vpc’ in the current directory,and execute the commands in it if you are not set the startup file fromthe command line. All the commands in the startup file are the internalcommand of the VPCS. The line started with '#' or '!' will bediscarded.


# The startup file of VPCS
#
1
ip 172.16.1.1 172.16.1.10 24
2
ip 172.16.1.2 172.16.1.10 24
3
ip 172.16.1.3 172.16.1.10 24
# switch to PC1
1 .net file (ether mode), please refer to dynagen for details.
# VLAN lab
ghostios = True
sparsemem = True
[localhost]
  [[ROUTER sw]]
      model = 2621
      image = /ios.run/c2600-ipbase-mz.123-8.T.bin
      ram = 128
      slot1 = NM-16ESW
      f1/0 = r1 f0/1
      f1/1 = NIO_linux_eth:tap0
      f1/2 = NIO_linux_eth:tap1
  [[router r1]]
      model = 2621
      image = /ios.run/c2600-i-mz.123-6c.bin
      ram = 32
      slot1 = NM-1FE-TX
      f0/0 = NIO_linux_eth:tap2 .bat (udp mode)
  dynamips-wxp.exe -i R1 -T 2000 -P 2600 -r 64 -c 0x2142 -p 1:NM-16ESW
                  -s 1:0:udp:30000:127.0.0.1:20000
                  -s 1:1:udp:30001:127.0.0.1:20001
                  -s 1:2:udp:30002:127.0.0.1:20002    ..\ios.run\c2600-te.binDynamips loads ios with NM-16ESW module in slot 1, and listens 30000 to30002. NM-16ESW is 16 port switch module (from f1/0 to f1/15). '-s1:0:udp:30000:127.0.0.1:20000’ means:
  1. this is port 0
  2. dynamips (or ios) sends the packets from port 30000 to port 20000 which listens by VPCS (PC1).
  3. VPCS (PC1) sends the packets from port 20000 to dynamips. .net file (udp mode)
# VLAN lab
ghostios = True
sparsemem = True
[localhost]
  [[ROUTER sw]]
      model = 2621
      image = /ios.run/c2600-ipbase-mz.123-8.T.bin
      ram = 128
      slot1 = NM-16ESW
      f1/0 = r1 f0/1
      f1/1 = NIO_udp:30000:127.0.0.1:20000
      f1/2 = NIO_udp:30001:127.0.0.1:20001
      idlepc = 0x805785a0
  [[router r1]]
      model = 2621
      image = /ios.run/c2600-i-mz.123-6c.bin
      ram = 32
      slot1 = NM-1FE-TX
      f0/0 = NIO_udp:30002:127.0.0.1:20002
      idlepc = 0x804f4044 Note
  • To make compatible with dynamips, VPCS does NOT use the cygwin1.dll released by cygwin.com. The two files conflicted.
  • You should run VPCS before startingthe dynamips while using ether mode. VPCS opens the tap interfaces. Andyou should know, VPCS will CLOSE the tap interfaces before quit.
ChangeLog
  • version 0.14a
1. add 'arp' command, show the arp table, 120 seconds expired.
2. add 'echo' command, send tcp/udp packet to the remote host.
  • version 0.13a
1. add 'ping/tracert' local host
2. fix a ping bug, can get echo reply from a non-exist host ip
  • version 0.12
1. fix the 'tracert' argument bug
  • version 0.11
1. replace a static array
  • version 0.10
1. add udp mode
2. can be run on the windows platform
3. support CIDR
  • version 0.02
1. Fixed a bug about the history commands

附件

vpcs-0.14a.rar (596.21 KB)

2007-11-4 01:13, 下载次数: 0

[上一篇]Gn3系列教程-Gns3参数讲解 [下一篇]关于dynamips模拟Frame-relay的解..
※相关文章
 

评论

称  呼:
内  容:

相关栏目

最新文章

热门文章

推荐文章

赞助商链接