Scripts

From NDWiFiTestebed
Revision as of 16:28, 2 July 2011 by Tormsl (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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.

Contents

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)

# /testbed/enable_default_gateway.sh

Disable default gateway

# /testbed/disable_default_gateway.sh

Load/Unload drivers

MadWifi

The madwifi driver can be a little tricky to load and unload correctly, especially since its dependencies change when using different rate adaption algorithms.

unload driver

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

parameters

  1. <interface>

usage

# /testbed/unload_ath.sh wlan0

This will unload the driver, but before that, it will take down the interface wlan0

load driver

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

parameters

  1. <rate adaption algorithm>
  2. <autocreate>

Both these parameters are optional, but if supplied, the driver will be loaded with the set configuration

usage

# /testbed/load_ath.sh 

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)

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox