Hi All,
I was able to compile/link batman statically and configure using the instructions given by Sven
LDFLAGS="-s -static" /usr/bin/make
You can check it with `file batmand`. It should print something like batmand: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), statically linked, for GNU/Linux 2.6.8, stripped
$ wlanconfig ath0 create wlandev wifi0 wlanmode adhoc
$ iwconfig ath0 essid testnet
$ iwconfig ath0 ap 02:00:de:ad:be:ef
$ iwconfig ath0 channel 10
$ ip addr add $IP brd $BRDCAST dev ath0
$ ip link set ath0 up
On running the command wlanconfig ath0 create wlandev wifi0 wlanmode adhoc I get the following output
ath0: unable to register device
ath0
I currently have 2 devices and use the following IP address configuration
IP :192.168.1.10 & 192.168.1.11
BRDCAST: 192.168.1.255
Finally I run ./batmand ath0
This echos :Using interface ath0 with address IP and broadcast address BDCAST
To test I tried pinging one device from the other, but it doesn't seem to work. Have I missed out something or is my configuration just wrong. Also whats the best way to test if the configuration and devices are running correctly.
Thanks
Kartik
Hello Kartik,
are you sure that ath0 is not already created before you run the "wlanconfig ath0 create ..." command? If so, you should first destroy it with:
$ wlanconfig ath0 destroy
You should be able to ping between the devices if they are in range, even if batman is not running. I suggest you test this first, i.e. running all the commands below, without starting batman.
best regards Simon
On Tue, Mar 03, 2009 at 11:16:03AM +0800, Kartik Muralidharan wrote:
Hi All,
I was able to compile/link batman statically and configure using the instructions given by Sven
LDFLAGS="-s -static" /usr/bin/make
You can check it with `file batmand`. It should print something like batmand: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), statically linked, for GNU/Linux 2.6.8, stripped
$ wlanconfig ath0 create wlandev wifi0 wlanmode adhoc
$ iwconfig ath0 essid testnet
$ iwconfig ath0 ap 02:00:de:ad:be:ef
$ iwconfig ath0 channel 10
$ ip addr add $IP brd $BRDCAST dev ath0
$ ip link set ath0 up
On running the command wlanconfig ath0 create wlandev wifi0 wlanmode adhoc I get the following output
ath0: unable to register device
ath0
I currently have 2 devices and use the following IP address configuration
IP :192.168.1.10 & 192.168.1.11
BRDCAST: 192.168.1.255
Finally I run ./batmand ath0
This echos :Using interface ath0 with address IP and broadcast address BDCAST
To test I tried pinging one device from the other, but it doesn't seem to work. Have I missed out something or is my configuration just wrong. Also whats the best way to test if the configuration and devices are running correctly.
Thanks
Kartik
B.A.T.M.A.N mailing list B.A.T.M.A.N@open-mesh.net https://lists.open-mesh.net/mm/listinfo/b.a.t.m.a.n
b.a.t.m.a.n@lists.open-mesh.org