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 [2011/01/28 13:33] mirnshiwiki:vpcs [2015/10/04 14:27] (current) mirnshi
Line 13: Line 13:
 **Download** **Download**
  
-The latest version <hi orange>0.21</hi>, [[https://sourceforge.net/projects/vpcs/files/binary/0.21/vpcs-0.21.7z/download|download]], has been tested under CentOS64/Ubuntu64/OSX/WindowsXP/Windows7. And special thanks to Chris Welsh for his suggestions and help.+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) 
-   history                    List the command history +  digit                    Switch to the VPCdigit. digit range 1 to 9 
-   ip [arguments            Configure PC's IP settings +  arp [digit|all         Shortcut for: show arpShow arp table 
-   dhcp                       Configure host/gateway address using DHCP +  clear ARG                Clear IPv4/IPv6, arp/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 ? 
-   echo [text]                Display text in output +  help                     Print help 
-   clear [arguments         Clear ip/ipv6, arp/neighbor cache +  history                  Shortcut for: show history. List the command history 
-   set [arguments           Set hostname, connection port and echo on or off +  ip ARG ... [OPTION     Configure the current VPC's IP settings. See ip ? 
-   load filename              Load the configuration/script from the file 'filename' +  load [FILENAME         Load the configuration/script from the file FILENAME 
-   save filename              Save the configuration to the file 'filename' +  ping HOST [OPTION ...]   Ping HOST with ICMP (default) or TCP/UDP. See ping ? 
-   ver                        Show version +  quit                     Quit program 
-                            Print help +  relay ARG ...            Configure packet relay between UDP ports. See relay ? 
-   quit                       Quit program+  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 160: 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 189: 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.21 
-    vpcs32       20b60d282d81e4ad0568f9f6c2a52cc5 
-    vpcs64       cac354e87d49de7dfda536b5cb73589f 
-    vpcs.osx     d138f76382cd6dc95e22c6653c3d0cd3 
-    vpcs.exe     abc613c61ec737b16f2eeb0aad29e05e 
-    cygwin1.dll  bc68345f873de78310d324320e82fe65 
  
 vpcs.exe is windows program, only udp mode. vpcs.exe is windows program, only udp mode.
Line 206: Line 246:
 vpcs.osx is OS X program, only udp mode. vpcs.osx is OS X program, only udp mode.
  
-** ChangeLog ** 
-  * version 0.21 
- 
-   1. fix many bugs 
- 
-  * version 0.20b 
- 
-   1. make the 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.1296221592.txt.gz · Last modified: 2011/01/28 13:33 by mirnshi