User Tools

Site Tools


wiki:vpcs

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
wiki:vpcs [2010/11/19 17:53] mirnshiwiki:vpcs [2015/10/04 14:27] (current) mirnshi
Line 13: Line 13:
 **Download** **Download**
  
-The latest version <hi orange>0.20a</hi>{{:wiki:vpcs-0.20a.zip|download}}, has been tested under CentOS64/Ubuntu64/OSX/WindowsXP/Windows7Please refer to [[wiki:Tutorial]] for the testing.+The stable version 0.8a[[https://sourceforge.net/projects/vpcs/files|download from sourceforge]], has been tested under FreeBSD/Linux/OSX/Windows, [[http://sourceforge.net/projects/vpcs/files/0.8/readme.txt/download|changelog]]. And special thanks to Chris Welsh for his suggestions and help.  
 + 
 +The Simplified Chinese user guide, [[http://sourceforge.net/projects/vpcs/files/vpcs%20user%20guide.pdf/download|download from sourceforge]].  
 + 
 +The source code was released under BSD license, [[https://sourceforge.net/projects/vpcs/files|download from sourceforge]]. The source tarball was signed by my GPG key E90A5CF0, run <hi lightgray>gpg --verify</hi> to verify: 
 +   $ gpg --verify vpcs-0.8-src.tbz.asc 
 +   gpg: Signature made 10/04/15 17:02:10 using RSA key ID E90A5CF0 
 +   gpg: Good signature from "mirnshi <[email protected]>"
 \\ \\
 \\ \\
 **Usage** **Usage**
  
-  vpcs [options] +  OPTIONS: 
-           -       udp mode, default +    -h             print this help then exit 
-           -e        tap mode, using /dev/tapx +    -v             print version information then exit 
-           -s port   local udp port, default from 20000 +   
-           -c port   remote udp port(dynamips udp ports), default from 30000 +    -R             disable relay function 
-           -r file   run startup file+    -i num         number of vpc instances to start (default is 9) 
 +    -p port        run as a daemon listening on the tcp port 
 +    -m num         start byte of ether address, default from 0 
 +    [-r] FILENAME  load and execute script file FILENAME 
 +   
 +    -e             tap mode, using /dev/tapx by default (linux only) 
 +    [-u]           udp mode, default 
 +   
 +  udp mode options: 
 +    -s port        local udp base port, default from 20000 
 +    -c port        remote udp base port (dynamips udp port), default from 30000 
 +    -t ip          remote host IP, default 127.0.0.1 
 +   
 +  tap mode options: 
 +    -d device      device name, works only when -i is set to 1 
 +   
 +  hypervisor mode option: 
 +    -H port        run as the hypervisor listening on the tcp port 
 +   
 +    If no FILENAME specified, vpcs will read and execute the file named 
 +    startup.vpc if it exists in the current directory. 
 + 
  
    VPCS[1]> ?    VPCS[1]> ?
-    + 
-   show                         Print the net configuration of PCs +  ?                        Print help 
-   d                            Switch to the PC[d], d is digitrange 1 to 9 +  ! COMMAND [ARG ...]      Invoke an OS COMMAND with optional ARG(s) 
-   hist                         List the history command +  digit                    Switch to the VPCdigit. digit range 1 to 9 
-   ip [options                Set the host's ip, gateway's ip and network mask +  arp [digit|all         Shortcut for: show arpShow arp table 
-   dhcp                         Configure host/gateway address using DHCP +  clear ARG                Clear IPv4/IPv6arp/neighbor cache, command history 
-   arp                          Show arp table +  dhcp [OPTION           Shortcut for: ip dhcp. Get IPv4 address via DHCP 
-   ping address [options]       Ping the network host +  disconnect               Exit the telnet session (daemon mode) 
-   tracert address [maxhops]    Print the route packets take to network host +  echo TEXT                Display TEXT in output. See also  set echo ? 
-   clear [options]              Clear ip/ipv6mac/neighbor cache +  help                     Print help 
-   set [options]                Set hostname or connection port +  history                  Shortcut for: show history. List the command history 
-   load file                    Load the configuration from the 'file' +  ip ARG ... [OPTION]      Configure the current VPC's IP settings. See ip ? 
-   save file                    Save the configuration to the 'file' +  load [FILENAME]          Load the configuration/script from the file FILENAME 
-   ver                          Show version +  ping HOST [OPTION ...]   Ping HOST with ICMP (default) or TCP/UDP. See ping ? 
-                              Print help +  quit                     Quit program 
-   quit                         Quit program+  relay ARG ...            Configure packet relay between UDP ports. See relay ? 
 +  rlogin [ip] port         Telnet to port on host at ip (relative to host PC) 
 +  save [FILENAME]          Save the configuration to the file FILENAME 
 +  set ARG ...              Set VPC name and other options. Try set ? 
 +  show [ARG ...]           Print the information of VPCs (default). See show ? 
 +  sleep [seconds] [TEXT]   Print TEXT and pause running script for seconds 
 +  trace HOST [OPTION ...]  Print the path packets take to network HOST 
 +  version                  Shortcut for: show version
  
  
Line 159: Line 195:
     2. dynamips (or ios) sends the packets from port 30000 to port 20000 which listens by VPCS (PC1).     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.     3. VPCS (PC1) sends the packets from port 20000 to dynamips.
 +
 +It is easy to transform the topology through <hi orange>relay</hi> command. For example:
 +
 +  relay add 0.0.0.0:7010 0.0.0.0:7100
 +  relay add 0.0.0.0:7020 0.0.0.0:7220
 +  relay add 0.0.0.0:7030 0.0.0.0:7310
 +  relay add 0.0.0.0:7110 0.0.0.0:7210
 +  
 +The topology 
 +
 +{{:wiki:network1.png?400|}}
 +
 +will be transformed to
 +
 +{{:wiki:network2.png?400|}}
  
 .net file (udp mode) .net file (udp mode)
Line 188: Line 239:
    
   * You should run VPCS before starting the dynamips while using ether mode. VPCS opens the tap interfaces. And you should know, VPCS will CLOSE the tap interfaces before quit.   * You should run VPCS before starting the dynamips while using ether mode. VPCS opens the tap interfaces. And you should know, VPCS will CLOSE the tap interfaces before quit.
- 
- 
- 
-** MD5 ** 
-  * 0.20a 
- 
-    vpcs.osx        9d49e0437519f9ad60a5aa516df8be39 
-    vpcs.exe        0e1dbeab06bb5153d66c23efd5e46681 
-    vpcs64.linux    9af7e55b22daba2329612072ad061656 
-    vpcs32.linux    2317f37ba611bb2ae06206265b99323f 
-    cygwin1.dll     bc68345f873de78310d324320e82fe65 
- 
-  * 0.16c 
- 
-    vpcs           b96a113bb96ca3f3c4a15498821796a3 
-    vpcs_64        72353e1ac0b259ddbccd6d0b2aeab0b2 
-    vpcs.osx       8a4c28f41c23ce61d50228da7cc1d8b6 
-    vpcs.exe       3151f02434ab6845f2b4191e289efddf 
-    cygwin1.dll    25c277f9375a2c982afc84620755e19a  
  
 vpcs.exe is windows program, only udp mode. vpcs.exe is windows program, only udp mode.
Line 214: Line 246:
 vpcs.osx is OS X program, only udp mode. vpcs.osx is OS X program, only udp mode.
  
-** ChangeLog ** 
-  * version 0.20b 
- 
-   1. make external tcp server happy 
-   2. fix a bug of the command history function 
- 
-  * version 0.20a 
- 
-   1. new 'ping' command with many option 
-   2. new 'set', set local/remote port and pc name 
-   3. new 'save' and 'load', save the current configuration or load the configuration 
-   4. new 'clear' to zero ip address, arp table 
-   5. now, can stop the running command such as 'ping' or 'tr' by Ctrl+C 
-   6. fix the bugs: 'queue is full' and coredump caused by entering the command 'ip' without parameter. 
-   7. support stateless auto configuration, get ipv6 prefix from RA. 
-   8. support save/load the commmand history automaticlly. 
-    
-   And Easter Egg for XV Anniversary Memorial. ^_^ 
- 
-  * version 0.16c 
-  
-   1. Use the new function to parse IPv6 address 
- 
-  * version 0.16a 
-  
-   1. Support IPv6 
- 
-  * version 0.15a 
-  
-   1. Configure the host ip using dhcp. 
- 
-  * version 0.14g 
-  
-   1. Fix the traceroute loop running bug. 
- 
-  * version 0.14f 
-  
-   1. Fix the traceroute TTL bug. 
- 
-  * version 0.14e 
-  
-   1. Fix the bug, parse 'echo' or 'traceroute' command line error, this bug causes core dump. 
- 
-  * version 0.14d 
- 
-   1. Fix the bug that replys the arp request with broadcast address as the source MAC address. Thanks [email protected] 
- 
-  * version 0.14c 
- 
-   1. change the TTL to 64 
- 
-  * version 0.14b 
- 
-   1. fix the I/O queue bug 
- 
-  * 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 
  
  
 ~~DISCUSSION~~ ~~DISCUSSION~~
wiki/vpcs.1290189217.txt.gz · Last modified: 2010/11/19 17:53 by mirnshi