This page contains a collection of scripts which has been written for the ND Testbed. The scripts are located in the folder /testbed/scripts and if not otherwise stated, should be ran as the root user.
Internet access on nodes
By default, nodes are not configured with a default gateway, and can therefore not reach the internet, nor be reached from the internet. To configure the default gateway, there are two scripts located in the scripts folder (/testbed/scripts), one for enabling the default gateway and one for disabling it.
Enable default gateway (internet access)
Disable default gateway
The madwifi driver can be a little tricky to load and unload correctly, especially since its dependencies change when using different rate adaption algorithms.
This script will automatically find all modules currently used by the madwifi driver, and unload them in the correct order.
- Location : /testbed/unload_ath.sh
# /testbed/unload_ath.sh wlan0
This will unload the driver, but before that, it will take down the interface wlan0
This script will load the madwifi driver and if parameters are applied, it will load the driver with the selected rate adaption algorithm and automatically create a wlan device of your choice.
- Location : /testbed/load_ath.sh
- <rate adaption algorithm>
Both these parameters are optional, but if supplied, the driver will be loaded with the set configuration
This will load the driver with the default settings, which means the sample-rate rate adaption algorithm and create a wlan device in managed mode
# /testbed/load_ath.sh minstrel
This will load the driver with the minstrel rate adaption algorithm and create a wlan device in managed mode
# /testbed/load_ath.sh sample ap
This will load the driver with the sample-rate rate adaption algorithm and create a wlan device in master mode (Access-Point)