Using Raspberry Pi as a network impairment

submited by
Style Pass
2024-10-31 01:30:05

You can use Raspberry Pi 4 (or Raspberry Pi 3B) as a network emulator. Raspberry Pi can be used to set up a bridged network, either using ethernet or WiFi.

Once done, connect keyboard monitor, and ethernet, boot and login with username “pi” and password “raspberry”, then execute the following command to enable WiFi network:

2. Run speed test on cell phone connected with WiFi “piem”. (The speed test may not be as good as you run it on Raspberry Pi, most likely due to interference, default the channel is set to 1)

There are chances that channel = 0 doesn't work (at least for me), and you won't be able to find "piem" network anymore. You can enable logging by adding the following line in "/etc/default/hostapd":

If channel auto selection doesn’t work, change that to channel = 36 or other Non-DFS Channels like: 40, 44, 48, 149, 153, 157, 161, 165. Use the following command on Raspberry Pi to check the channel in use nearby:

Leave a Comment