Actions

BATMAN-Advanced Setup: Difference between revisions

From HacDC Wiki

Line 23: Line 23:
# <pre># echo bat0 > /sys/class/net/wlan0/batman_adv/mesh_iface</pre>
# <pre># echo bat0 > /sys/class/net/wlan0/batman_adv/mesh_iface</pre>
# <pre># cat /sys/class/net/wlan0/batman_adv/iface_status</pre> Should read "active".
# <pre># cat /sys/class/net/wlan0/batman_adv/iface_status</pre> Should read "active".
# <pre># ifconfig wlan0 0.0.0.0</pre>???
# <pre># ifconfig wlan0 0.0.0.0</pre>
# <pre># ifconfig bat0 up</pre>
# give bat0 an ip somehow ... Will?

Revision as of 00:06, 27 February 2011

Compile and install BATMAN-Advanced

Download batman-adv and batctl. Standard "make && sudo make install".

If no interface "wlan0" exists, check for a different wireless interface using 'ifconfig -a'

Setup ad-Hoc network

  1. Disable NetworkManager
    1. Fedora:
      # /etc/init.d/NetworkManager stop
    2. Ubuntu:
      # stop network-manager
  2. Disable the firewall
    1. # iptables -F
  3. # ifconfig wlan0 down
  4. # iwconfig wlan0 mode ad-hoc essid hacdc-batman channel 8
  5. # ifconfig wlan0 up

Setup BATMAN-Advanced

In the unpacked 'batman-adv' directory:

  1. # insmod batman-adv.ko

In the batctl directory:

  1. # ./batctl if add wlan0
  2. # ifconfig wlan0 mtu 1527
  3. # echo bat0 > /sys/class/net/wlan0/batman_adv/mesh_iface
  4. # cat /sys/class/net/wlan0/batman_adv/iface_status
    Should read "active".
  5. # ifconfig wlan0 0.0.0.0
  6. # ifconfig bat0 up
  7. give bat0 an ip somehow ... Will?