Deploying and Configuring WANem

WAN Emulation with WANem: A Simple Setup Guide

As a shipping company employee, I frequently need to test various network configurations and scenarios without disrupting our production environment. One valuable tool that has helped me achieve this is WANem, a virtual WAN emulator appliance. In this article, I will share my experience with WANem and provide a simple setup guide for those who want to try it out.

What is WANem?

WANem is an open-source, free, and user-friendly WAN emulator that allows you to simulate various WAN conditions, such as latency, packet loss, and jitter. It can be used on Linux, Windows, or macOS platforms. With WANem, you can create a virtual WAN link between two network interfaces, allowing you to emulate different WAN scenarios and test your applications’ behavior under these conditions.

My Setup and Configuration

To set up WANem, I used the VMware Workstation virtualization platform on my Windows 10 machine. Here are the basic steps:

1. Extract the WANemv2.1.zip file to a known location (e.g., C:\Virtual Machines).

2. Open VMware Workstation and choose “Open existing VM or Team.”

3. Select the WANem virtual machine files and click “Open.”

4. Proceed with the installation, following the on-screen instructions.

5. Once installed, start the WANem virtual machine.

6. Access the WANem web interface by navigating to http://wanem:8080 in your web browser (default login credentials are “admin” for both username and password).

Advanced Mode and Settings

Now that we have WANem up and running, let’s explore its advanced features. Click on the “Advanced Mode” button to access more settings. You can adjust various parameters such as delay time (ms), loss percentage, and jitter. For demonstration purposes, I set the delay time to 200ms and the loss percentage to 25%.

Ping My Printer with WANem

Let’s see how WANem affects my network traffic. In the web interface, click the “Start” button to apply your settings. Then, open a command prompt and ping my printer (in my case, it’s an HP LaserJet 1020). Here are my pre- and post-WANem ping results:

Before WANem:

C:\>ping -n -w 192.168.1.100

Reply from 192.168.1.100: bytes=146, time=1ms TTL=1

After WANem (with settings applied):

C:\>ping -n -w 192.168.1.100

Reply from 192.168.1.100: bytes=146, time=200ms TTL=1 (expecting 1ms)

As you can see, the response time has increased to approximately 200ms, and the packet loss is around 25%, matching my set values in WANem. You can experiment with other parameters and observe how your network traffic behaves under different conditions.

Removing Static Routes

When you’re done testing, don’t forget to remove any static routes you added. To do so, simply run the command:

route delete {destination IP}

in an administrative mode cmd prompt.

Conclusion and Additional Resources

WANem is a valuable tool for those who need to emulate various WAN conditions without physically connecting to different ISPs or networks. With this simple setup guide, you can start exploring the possibilities of WANem in your network testing endeavors. For more information on WANem and its features, visit vNinja.net.