Candela Technologies Logo
 
http://www.candelatech.com
sales@candelatech.com
+1 360 380 1618 [PST, GMT -8]
Network Testing and Emulation Solutions

Generate WiFi Traffic from an External Connection

Goal: Create a bridged WiFi station that redirects traffic from an ethernet port.

It is possible to use a system on a wired LAN to generate traffic through a LANforge virtual WiFi station. This example will show a Windows PC driving traffic across a LANforge CT520 STA to the associated AP. This is a useful scenario for driving custom traffic between traffic testing software endpoints distinct from the LANforge system. A virtualized Windows PC will work with this scenario.

The primary technique in this cookbook uses a technique where the MAC address of the WiFi STA is spoofing the address of the Windows PC. It is also possible to use this technique with IPv4 addresses and not MAC addresses. However, using MAC addresses will allow IPv6 traffic to work.

 
  1. Find the MAC Address of the Windows PC.

    1. We will use MAC address 08:00:27:c4:4e:4f. This will be used when you configure the WiFi STA on the LANforge machine.

    2. Please set the IP address of the interface if it is not yet set.

    For more information see Windows IP Addresses

  2. Configure your LANforge Wireless Station. We will be configuring the MAC addresses of a station to be the MAC address of the Windows PC we just found.

    1. In the Ports tab, double-click on the ethernet port on the same switch as the Windows PC (eth1 in this example). screenshot

    2. Configure the port MAC address and WiFi-Bridge settings to be: screenshot

      1. Do not set the mac address or the ip address of the port

      2. Set Rpt Timer to faster (1 s)

      3. Select 1 for WiFi Bridge

      4. Click the OK button

    3. Configure a WiFi station. This example will be connecting to a WiFi AP with the SSID jedtest. screenshot

      1. Enable Set MAC

      2. Use 08:00:27:c4:4e:4f for the MAC Addr

      3. Set Rpt Timer to faster (1 s)

      4. Select 1 for WiFi Bridge

      5. Enter jedtest for the SSID

      6. Select 802.11abgn for the Mode

      7. Click the OK button

    4. (Note: these MAC addresses will remain persistent even through a LANforge Manager restart. To restore the physical mac addresses, you need to reboot the LANforge machine or use ethtool to find the physical hardware address.)

  3. Sending and Validating Traffic

    1. Use ping on the Windows machine to reach 10.26.0.2, the AP machine. To ping from a specific interface, use the -S switch like so: ping -S 10.26.0.10

    2. On LANforge, use tcpdump to view packets traversing the Station interface, sudo tcpdump -ni sta0 icmp screenshot


Candela  Technologies, 2417 Main Street, Suite 201, Ferndale, WA 98248, USA
www.candelatech.com | sales@candelatech.com | +1.360.380.1618
Google+ | Facebook | LinkedIn | Blog