You are not logged in.

#1 2013-03-01 02:51:50

CSNate
Member
Registered: 2012-04-10
Posts: 3

Mesh Networking Configuration (Ad-Hoc) with Netcfg

Hello all, I am setting up a Raspberry Pi using Arch Linux for an outdoor mesh networking project.  I unfortunately am having trouble configuring ad-hoc networking with Netcfg.  I can setup an unsecured ad-hoc network just fine using the following commands manually, but I'd like to have a secured network and automatically start the connection as the node is powered on.

ifconfig wlan0 down
iwconfig wlan0 mode ad-hoc
iwconfig wlan0 essid mesh-test
iwconfig wlan0 channel 4
ifconfig wlan0 192.168.1.1 up

Here is the netcfg profile that I've tried using.

CONNECTION='wireless'
DESCRIPTION='Encrypted Ad-Hoc Network Profile'

INTERFACE='wlan0'
SECURITY='wpa'
ESSID='mesh-test'
KEY='mesh_passphrase'
ADHOC=1

IP='static'
ADDR='192.168.1.1'

If the network does not already exist, the connection fails with WPA Authentication/Association Failed.

I'm using an Atheros AR9271 wireless adapter (TP-Link TL-WN722N).

EDIT:
I just tried this, the adapter starts, but I cannot ping the other ad-hoc devices, I get a Destination host unreachable error.

CONNECTION='wireless'
DESCRIPTION='Encrypted Ad-Hoc Network Profile'

INTERFACE='wlan0'
SECURITY='wpa'
ESSID='mesh-test'
KEY='mesh_passphrase'
WPA_DRIVER='wext'
ADHOC=1

IP='static'
ADDR='192.168.1.1'

Any help is greatly appreciated.

Last edited by CSNate (2013-03-01 03:00:19)

Offline

Board footer

Powered by FluxBB