GithubHelp home page GithubHelp logo

adhoc-config's Introduction

adhoc-config

Scripts for configuring wireless interfaces in IBSS (adhoc) mode in linux

Installation

Renaming wireless interface

The network interface names Linux automatically assigns can be rather cryptic. You can rename your adapter to something simpler (e.g. wifi2) by executing:

rename_interface.sh <old-name> <new-name>

You will need to unplug/re-plug your USB interface after executing this command or restart your system if it is PCI based.

Configuration

The config.sh script automates the steps required to configure a wireless interface in IBSS (adhoc) mode. To summarize one must:

  1. Ensure that the desired interface is not being controlled by NetworkManager (the network configuration utility used in Ubuntu and most systems based on the gnome desktop environment)
  2. Install a system service that automatically configures the interface in adhoc mode on system start
  3. Generate a config file for systemd-networkd so that it automatically assigns the desired IP address on network creation (and optionally a forwarding address for internet passthrough)
  4. Install a config file to be used with wpa_supplicant for network association and maintenance

config.sh should be executed as follows:

config.sh <wireless-interface> <node-id>

where <node-id> is a unique number that will become the last digits of the IP address assigned to the interface (i.e. 192.168.0.<node-id>). Note that the user must ensure that <node-id> is unique for each node they configure.

Special Cases

The main system service to be used on adhoc network nodes is [email protected]. config.sh is automatically configured to install this script. There are a few other system services that can be used to handle special cases:

  • [email protected]: configures internet passthrough for a "host" node that is connected to the internet via a separate network interface
  • [email protected]: configures internet passthrough for a "host" node that is connected to the internet via a separate network interface and is also running docker

Note that additional configuration steps must be executed on the other non-host adhoc nodes in order to take advantage of internet passthrough.

Next Steps

After executing config.sh you will have a functioning adhoc network. Each node will be able to communicate directly with any other node in the network that is within range. In other words, each node employs a direct routing approach by default. In order to perform multi-hop routing, a routing protocol such as B.A.T.M.A.N or babel must be configured on top of the existing adhoc network.

adhoc-config's People

Contributors

danmox avatar

Stargazers

Tan Wei avatar Yuezhan Tao avatar Fernando Cladera avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.