BATMAN-Advanced Setup: Difference between revisions
From HacDC Wiki
ElviaPadilla (talk | contribs) No edit summary |
No edit summary |
||
(One intermediate revision by one other user not shown) | |||
Line 22: | Line 22: | ||
# <pre># ./batctl if add wlan0</pre> | # <pre># ./batctl if add wlan0</pre> | ||
# <pre># ifconfig wlan0 mtu 1527</pre> | # <pre># ifconfig wlan0 mtu 1527</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> | # <pre># ifconfig bat0 up</pre> | ||
Line 46: | Line 46: | ||
# ping6 -p DEADBEEF -I bat0 (IPv4 address of host) | # ping6 -p DEADBEEF -I bat0 (IPv4 address of host) | ||
# ping6 -p DEADBEEF -I bat0 (IPv6 address of host) | # ping6 -p DEADBEEF -I bat0 (IPv6 address of host) | ||
{{Template:Byzantium}} |
Latest revision as of 09:26, 3 April 2012
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
# 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 address
- ifconfig w.x.y.z netmask a.b.c.d up
- dhcp
- dhcp6
- dhclient
- Avahi/zeroconf
- IPv6
Testing BATMAN-Advanced
Display local table of known peers (by MAC address of node):
- batctl o
Ping by batX MAC address of nodes:
- batctl p uu:vv:ww:xx:yy:zz
Monitor traffic of batX interface:
- tcpdump -i bat0 -s 0 -v -X -n
Test connectivity between nodes:
- ping6 -p DEADBEEF -I bat0 (IPv4 address of host)
- ping6 -p DEADBEEF -I bat0 (IPv6 address of host)