BATMAN-Advanced Setup: Difference between revisions
From HacDC Wiki
Haxwithaxe (talk | contribs) |
|||
Line 7: | Line 7: | ||
== Setup ad-Hoc network == | == Setup ad-Hoc network == | ||
# Disable NetworkManager | # Disable NetworkManager | ||
## Right-click on NetworkManager applet, un-check "Enable networking". | |||
## Fedora: <pre># /etc/init.d/NetworkManager stop</pre> | ## Fedora: <pre># /etc/init.d/NetworkManager stop</pre> | ||
## Ubuntu: <pre># stop network-manager</pre> | ## Ubuntu: <pre># stop network-manager</pre> |
Revision as of 17:42, 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
- Disable NetworkManager
- Right-click on NetworkManager applet, un-check "Enable networking".
- Fedora:
# /etc/init.d/NetworkManager stop
- Ubuntu:
# stop network-manager
- Disable the firewall
# iptables -F
# ifconfig wlan0 down
# iwconfig wlan0 mode ad-hoc essid hacdc-batman channel 8
# ifconfig wlan0 up
Setup BATMAN-Advanced
In the unpacked 'batman-adv' directory:
# insmod batman-adv.ko
In the batctl directory:
# ./batctl if add wlan0
# ifconfig wlan0 mtu 1527
# echo bat0 > /sys/class/net/wlan0/batman_adv/mesh_iface
# cat /sys/class/net/wlan0/batman_adv/iface_status
Should read "active".# ifconfig wlan0 0.0.0.0
# ifconfig bat0 up
- give bat0 an ip somehow ... Will?