WANulator on local machine with VMware

HOWTO: Use VMware for a Wanulator test setup

This tutorial is just one example – of course the power of virtualization gives you infinite options to setup any kind of network test scenarios. E.g. you may run client, server and Wanulator as 3 different VM instances. Please Note: due to scheduling timings this kind of scenarios are not as time accurate in comparison with using a dedicated PC for running Wanulator!!!

I used VMware here as an example for virtualization technology as the server version is free of charge and the network setup capabilities are excellent – supporting any kind of “virtual” network setup. Of course any other VM technology can support similar setups as well.

Basic Idea:

In this setup all traffic from your host PC will be routed through the Wanulator instance running within the VM. To achieve that we will need to tweak a little bit the routing on the host and within the VM. In the following setup it is assumed that the physical network interface to your up-link router as well as the internal host-only virtual interface is using DHCP for configuration. Of cause this setup will work also with static configuration – with some handwork in the Wanulator interface setup.

Step by step setup:

1.) Download and install VM Ware server and VM Ware Server Console.
You will need to register to get the free serial numbers to run the server. For this todo it is assumed that you run the server and the console on the same machine – running MS XP as a host OS. A similar setup is also possible on any other host OS including Linux.

2.) Create a new virtual machine:
  • Configuration Typical
  • Guest OS: Linux (Other Linux)
  • You wont need any HD disk space so you can remove the disk from the configuration.
3.) Edit the VM Settings:
  • add an additional ethernet adapter (host-only)
  • Configure the virtual CD Rom drive to use the downloaded Wanulator as an ISO image

Your configuration should look somhow similar to this:

4.) Boot the vmware instance and configure the Wanulator to use the routed mode enabling both interfaces.

5.) On the host you need to configure the routing in a way that your Guest OS uses the wanulator instance as a router. Open a command shell (cmd.exe) for changing the default route to use the host-only interface of the VMware by:
route delete 0.0.0.0
route add 0.0.0.0 mask 0.0.0.0 [ip address of eth1 of the VM ware instance]

Finlay you need to add masquerading to your “virtual Wanulator router”:
open an xterm within Wanulator (by right-clicking on the desktop) and enter:
iptables –table nat -A POSTROUTING -o eth0 -j MASQUERADE

6.) Test your new routing setup by pinging from the cmd shell to any host outside your PC.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>