Hi,
I'm using experimental batmand Rev 756. After a while the batmand is crashing.
with "Segmentation fault". the crashing batmand is running on i386 (debian 2.6.22.1).
All routers are running the same batmand version. I have not checked if also the
batmand crashs on the routers.
syslog: batmand[6733]: Error - got packet from unknown client: 10.12.10.17 (virtual ip 169.254.1.1)
batman log (-d4): Error - SIGSEGV received, trying to clean up ...
/usr/bin/batmand -g 1024/200 -a 104.61.0.0/16 -s 10.12.0.1 --no-unreachable-rule
--no-throw-rules --no-prio-rules --resist-blocked-send wlan0 bbs /t 1 /i /A bbc /t 1 /i /A -d 4 >/tmp/batman-chrash
A___B---C
(_) backbone (bbs-bbc)
(-) wlan
A: wlan0 10.12.0.1 , bbs 172.16.0.1
B: eth1 10.12.10.17 , bbc 172.16.10.18
C: eth1 10.12.10.1
A offers internet gateway.
Additional during batman start syslog shows some errors:
Oct 25 12:18:06 0-1 batmand[26343]: Trying to name tunnel to bat0 ...
Oct 25 12:18:06 0-1 batmand[26343]: success!
Oct 25 12:18:06 0-1 batmand[26343]: Error - can't add route to 169.254.0.0/24 via 0.0.0.0 (table 254): File exists
Oct 25 12:18:06 0-1 batmand[26343]: Trying to name tunnel to bat0 ...
Oct 25 12:18:06 0-1 batmand[26343]: busy!
Oct 25 12:18:06 0-1 batmand[26343]: Trying to name tunnel to bat1 ...
Oct 25 12:18:06 0-1 batmand[26343]: success!
Oct 25 12:18:06 0-1 batmand[26343]: Error - can't add route to 169.254.1.0/24 via 0.0.0.0 (table 254): File exists
Oct 25 12:18:06 0-1 batmand[26343]: Trying to name tunnel to bat0 ...
Oct 25 12:18:06 0-1 batmand[26343]: busy!
Oct 25 12:18:06 0-1 batmand[26343]: Trying to name tunnel to bat1 ...
Oct 25 12:18:06 0-1 batmand[26343]: busy!
Oct 25 12:18:06 0-1 batmand[26343]: Trying to name tunnel to bat2 ...
Oct 25 12:18:06 0-1 batmand[26343]: success!
Oct 25 12:18:06 0-1 batmand[26343]: Error - can't add route to 169.254.2.0/24 via 0.0.0.0 (table 254): File exists
ip addr
28: bat0: <POINTOPOINT,MULTICAST,NOARP,UP,10000> mtu 1471 qdisc pfifo_fast qlen 500
link/[65534]
inet 169.254.0.0/32 scope global bat0
29: bat1: <POINTOPOINT,MULTICAST,NOARP,UP,10000> mtu 1471 qdisc pfifo_fast qlen 500
link/[65534]
inet 169.254.1.0/32 scope global bat1
30: bat2: <POINTOPOINT,MULTICAST,NOARP,UP,10000> mtu 1471 qdisc pfifo_fast qlen 500
link/[65534]
inet 169.254.2.0/32 scope global bat2
Bye
Stephan
Hello,
I have problems with the gateway. The following setup is used:
Laptop: batmand -g 1024/200 -a 104.61.0.0/16 -s 10.12.0.1 --no-unreachable-rule --no-throw-rules --no-prio-rules --no-unresp-gw-check --resist-blocked-send wlan0 bbs /t 1 /i bbc /t 1 /i
wrt54gs: batmand batmand -d 4 -r 2 --t 63 --no-unreachable-rule --no-throw-rules --no-prio-rules --no-unresp-gw-check --resist-blocked-send eth1 bbs /t 1 /i bbc /t 1 /i
The laptop uses a proxy (squid) to only allow some URLs. Also the firewall only allows some specific
ip ranges. Does this have any influence for the gateway detection?
--------------------------
Laptop:Linux 0-1.ddmesh 2.6.22.1 #1 Tue Jul 17 23:43:32 CEST 2007 i686 GNU/Linux
During start the laptop produces the following syslog entries.
Oct 18 21:54:53 0-1 batmand[13603]: Warning - batgat kernel modul interface (/dev/batgat) not usable: No such file or directory This may decrease the performance of batman!
Oct 18 21:54:53 0-1 batmand[13603]: Warning - batgat kernel modul interface (/dev/batgat) not usable: No such file or directory This may decrease the performance of batman!
Oct 18 21:54:53 0-1 batmand[13603]: Trying to name tunnel to bat0 ...
Oct 18 21:54:53 0-1 kernel: bat0: Disabled Privacy Extensions
Oct 18 21:54:53 0-1 batmand[13603]: success!
Oct 18 21:54:53 0-1 batmand[13603]: Trying to name tunnel to bat0 ...
Oct 18 21:54:53 0-1 batmand[13603]: Warning - batgat kernel modul interface (/dev/batgat) not usable: No such file or directory This may decrease the performance of batman!
Oct 18 21:54:53 0-1 batmand[13603]: Trying to name tunnel to bat0 ...
Oct 18 21:54:53 0-1 batmand[13603]: Error - can't create tun device (TUNSETIFF): Device or resource busy
Oct 18 21:54:53 0-1 batmand[13603]: Trying to name tunnel to bat1 ...
Oct 18 21:54:53 0-1 kernel: bat1: Disabled Privacy Extensions
Oct 18 21:54:53 0-1 batmand[13603]: success!
Oct 18 21:54:53 0-1 batmand[13603]: Error - can't create tun device (TUNSETIFF): Device or resource busy
Oct 18 21:54:53 0-1 batmand[13603]: Trying to name tunnel to bat2 ...
Oct 18 21:54:53 0-1 kernel: bat2: Disabled Privacy Extensions
Oct 18 21:54:53 0-1 batmand[13603]: success!
I have running openvpn that also use some tun and tap devices (using kmod_tun). All tunnel
interfaces that are using kmod_tun have names different to tunX. Only one interface
is using tap0.
ip route
192.168.100.2 dev vpn3 proto kernel scope link src 192.168.100.1
10.203.71.21 dev vpn1 proto kernel scope link src 10.203.71.22
192.168.99.2 dev vpn2 proto kernel scope link src 192.168.99.1
192.168.100.0/24 via 192.168.100.2 dev vpn3
192.168.178.0/24 dev eth0 proto kernel scope link src 192.168.178.2
169.254.2.0/24 dev bat2 proto static
169.254.0.0/24 dev bat0 proto static
192.168.1.0/24 dev eth0 proto kernel scope link src 192.168.1.2
169.254.1.0/24 dev bat1 proto static
192.168.99.0/24 via 192.168.99.2 dev vpn2
10.203.71.0/24 via 10.203.71.21 dev vpn1
104.61.0.0/16 via 10.203.71.21 dev vpn1
172.16.0.0/16 dev bbs proto kernel scope link src 172.16.0.1
172.16.0.0/16 dev bbc proto kernel scope link src 172.16.0.2
10.63.0.0/16 via 10.203.71.21 dev vpn1
105.61.0.0/16 via 10.203.71.21 dev vpn1
10.0.0.0/8 dev wlan0 proto kernel scope link src 10.12.0.1
default via 192.168.178.1 dev eth0
0-1:/home/ffdevel/ff-build/open-mesh.net# ip route list table bat_route
10.12.10.1 dev wlan0 proto static scope link src 10.12.0.1
10.12.10.17 dev wlan0 proto static scope link src 10.12.0.1
throw 104.61.0.0/16 proto static
0-1:/home/ffdevel/ff-build/open-mesh.net# ip route list table bat_hna
10.12.10.0/28 via 10.12.10.1 dev wlan0 proto static
10.12.10.16/28 via 10.12.10.17 dev wlan0 proto static
throw 104.61.0.0/16 proto static
0-1:/home/ffdevel/ff-build/open-mesh.net# ip route list table bat_default
throw 104.61.0.0/16 proto static
B.A.T.M.A.N. 0.3-exp, MainIF/IP: wlan0 10.12.0.1, WindSize: 128, BLT: 2, OGI: 1000, UT: 0d 0h 2m
Originator viaIF Router (brc rcvd lseq lvld) [ viaIF RTQ RQ TQ].. alternatives...
10.12.10.1 wlan0 10.12.10.1 (126 128 39555 0) [ wlan0 118 127 118] 10.12.10.17 ( 2)
10.12.10.17 wlan0 10.12.10.17 (128 128 49229 0) [ wlan0 123 128 123]
--------------------------
wrt54gs:
The wrt54gl shows always:
Gateway Router (#/128)
=> 10.12.0.1 10.12.0.1 (123), gw_class 33 - 1024KBit/256KBit, reliability: 0
But the ip route list table bat_default contains only a throw entry and not the default route.
ip addr lists the interfaces but always without an ip address assigned.
The batman revision I use is the batman-experimental Rev724. also some revisions before
have the same result.
Despite the presens of --no-throw-rules throw rules are added to the batman routing tables
to throw the hna entries. Is this wanted?
In older version I got a tunnel but this has be removed by batman. Perhaps because the client
didn't not use it to much?
If I try to add a tunnl manually (ip route add default dev bat0 table bat_default)
and try to ping an internet address the client logread shows :kern.err batmand[6649]: Error - can't receive ip from gateway: number of maximum retries reached
The manually added default route is removed after a while by batmand.
Has anyone an idea what I have done wrong.
Regards
Stephan
I'm a new BATMAN fan. Thanks to all who contribute.
I'm having a problem with bat0. It seems to be disconnecting and I cannot
find the cause. My configuration is as follows:
Version:
0.3 beta rv731
Scenario:
A-----B-----GW-----PC
A - is on 104.0.0.3 ath0 with -s 10.0.0.10
B - is on 104.0.0.2 ath0 with -s 10.0.0.10
GW - is on 104.0.0.1 ath0 and 10.0.0.1 eth0
PC - is on 10.0.0.10
All IP addresses are static.
I can see A routing through B to GW fine. The tunnel bat0 on A and B seems
unstable though. I'm looking at VIS packets arriving at PC. It arrives for
about 30 sec then stops for a while. It is not clear why the tunnel keeps
disconnecting.
If anyone can offer some advice, I'd much appreciate it.
hello batmen, ;)
here in berlin NE we are about to update the batmands on our backbone to 0.3.0 . atm our net is mainly running on olsr and batman in parallel for testing purpose.
after some changes in the net we got heavy HNA-hopping with olsr which is related to the improper metric in our case. therefore we are somewhat forcing the
migration to batman and got some strange default routes with the most recent 0.3.0 builds on some routers:
root@OpenWrt:/etc/init.d# route -n
Destination Gateway Genmask Flags Metric Ref Use Iface
[...]
0.0.0.0 0.0.0.0 0.0.0.0 ! 0 0 0 *
[...]
batmand has been started with the following parameters: /usr/sbin/batmand -g 0 -r 0 eth2
after appearance of this default-route olsr-"clients" cannot use the uplink anymore, so further testing is difficult.
we have another problem with this build, but cannot investigate further because of this behaviour. so any help is appreciated.
thanks
dennis bartsch
freifunk-bno.de
attached is some console-output:
###########################
root@OpenWrt:/etc/init.d# ifconfig
eth2 Link encap:Ethernet HWaddr 00:01:36:0D:D2:63
inet addr:104.13.0.54 Bcast:104.255.255.255 Mask:255.0.0.0
UP BROADCAST RUNNING MULTICAST MTU:512 Metric:1
RX packets:105511 errors:0 dropped:0 overruns:0 frame:0
TX packets:122436 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:61107954 (58.2 MiB) TX bytes:45973166 (43.8 MiB)
Interrupt:27
eth2:0 Link encap:Ethernet HWaddr 00:01:36:0D:D2:63
inet addr:105.13.0.54 Bcast:105.255.255.255 Mask:255.0.0.0
UP BROADCAST RUNNING MULTICAST MTU:512 Metric:1
Interrupt:27
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:2800 errors:0 dropped:0 overruns:0 frame:0
TX packets:2800 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:288724 (281.9 KiB) TX bytes:288724 (281.9 KiB)
wifi0 Link encap:UNSPEC HWaddr 00-0B-6B-4D-63-8B-00-0A-00-00-00-00-00-00-00-00
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:997788 errors:0 dropped:1221 overruns:0 frame:443273
TX packets:688240 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:199
RX bytes:305805070 (291.6 MiB) TX bytes:126339425 (120.4 MiB)
Interrupt:28
root@OpenWrt:/etc/init.d# /usr/sbin/batmand -g 0 -r 0 eth2:0 -d 4
WARNING: You are using the unstable batman branch. If you are interested in *using* batman get the latest stable release !
[ 0] Error - can't add rule to 105.0.0.0/8: Invalid argument
[ 0] Error - can't add rule to 105.0.0.0/8: Invalid argument
Using interface eth2:0 with address 105.13.0.54 and broadcast address 105.255.255.255
B.A.T.M.A.N. 0.3-beta (compatibility version 4)
[ 0] Error - can't add rule to 0.0.0.0/0: Invalid argument
[ 10] Error - can't add rule to 0.0.0.0/0: Invalid argument
debug level: 4
[ 20]
[ 940] Forwarding packet (originator 105.13.0.54, seqno 1, TTL 50) on interface eth2:0
[ 940]
[ 940] Received BATMAN packet via NB: 105.13.0.54 , IF: eth2:0 105.13.0.54 (from OG: 105.13.0.54, seqno 1, tq 255, TTL 50, V 4, UDF 0, IDF 0)
[ 940] Drop packet: received my own broadcast (sender: 105.13.0.54)
[ 940]
[ 1090] Received BATMAN packet via NB: 105.12.0.20 , IF: eth2:0 105.13.0.54 (from OG: 105.12.0.20, seqno 55800, tq 255, TTL 50, V 4, UDF 0, IDF 0)
[ 1090] HNA information received (1 HNA network):
[ 1090] hna: 105.0.200.6/32
[ 1090] Creating new originator: 105.12.0.20
[ 1090] Creating new last-hop neighbour of originator
[ 1090] bidirectional: orig = 105.12.0.20 neigh = 105.12.0.20 => own_bcast = 0, real recv = 0, local tq: 0, asym_penality: 0, total tq: 0
[ 1090] schedule_forward_packet():
[ 1090] forwarding: tq_orig: 0, tq_forw: 0
[ 1090] Forward packet: rebroadcast neighbour packet with direct link and unidirectional flag
[ 1090] Forwarding packet (originator 105.12.0.20, seqno 55800, TTL 49) on interface eth2:0
[ 1090] ------------------ DEBUG ------------------
[ 1090] Forward list
[ 1090] 105.13.0.54 at 1946
[ 1090] Originator list
[ 1090] Originator Router (#/255 #/64): Potential routers
[ 1090] No batman nodes in range ...
[ 1090] ---------------------------------------------- END DEBUG
[ 1090]
[ 1090] Received BATMAN packet via NB: 105.13.0.54 , IF: eth2:0 105.13.0.54 (from OG: 105.12.0.20, seqno 55800, tq 0, TTL 49, V 4, UDF 1, IDF 1)
[ 1090] HNA information received (1 HNA network):
[ 1090] hna: 105.0.200.6/32
[ 1090] Drop packet: received my own broadcast (sender: 105.13.0.54)
[ 1090]
[ 1950] Forwarding packet (originator 105.13.0.54, seqno 2, TTL 50) on interface eth2:0
[ 1950] count own bcast (schedule_own_packet): old = 0, [ 1950] new = 0
[ 1950]
[ 1950] Received BATMAN packet via NB: 105.13.0.54 , IF: eth2:0 105.13.0.54 (from OG: 105.13.0.54, seqno 2, tq 255, TTL 50, V 4, UDF 0, IDF 0)
[ 1950] Drop packet: received my own broadcast (sender: 105.13.0.54)
[ 1950]
[ 2710] Received BATMAN packet via NB: 105.12.0.20 , IF: eth2:0 105.13.0.54 (from OG: 105.12.0.20, seqno 55801, tq 255, TTL 50, V 4, UDF 0, IDF 0)
[ 2710] HNA information received (1 HNA network):
[ 2710] hna: 105.0.200.6/32
[ 2710] Other host probably restarted !
[ 2720] updating last_seqno: old 0, new 55801
[ 2720] bidirectional: orig = 105.12.0.20 neigh = 105.12.0.20 => own_bcast = 0, real recv = 1, local tq: 0, asym_penality: 8, total tq: 0
[ 2720] schedule_forward_packet():
[ 2720] forwarding: tq_orig: 0, tq_forw: 0
[ 2720] Forward packet: rebroadcast neighbour packet with direct link and unidirectional flag
[ 2720] Forwarding packet (originator 105.12.0.20, seqno 55801, TTL 49) on interface eth2:0
[ 2720] ------------------ DEBUG ------------------
[ 2720] Forward list
[ 2720] 105.13.0.54 at 2903
[ 2720] Originator list
[ 2720] Originator Router (#/255 #/64): Potential routers
[ 2720] No batman nodes in range ...
[ 2720] ---------------------------------------------- END DEBUG
[ 2720]
[ 2720] Received BATMAN packet via NB: 105.13.0.54 , IF: eth2:0 105.13.0.54 (from OG: 105.12.0.20, seqno 55801, tq 0, TTL 49, V 4, UDF 1, IDF 1)
[ 2720] HNA information received (1 HNA network):
[ 2720] hna: 105.0.200.6/32
[ 2720] Drop packet: received my own broadcast (sender: 105.13.0.54)
[ 2720]
[ 2910] Forwarding packet (originator 105.13.0.54, seqno 3, TTL 50) on interface eth2:0
[ 2910] count own bcast (schedule_own_packet): old = 0, [ 2910] new = 0
[ 2910]
[ 2910] Received BATMAN packet via NB: 105.13.0.54 , IF: eth2:0 105.13.0.54 (from OG: 105.13.0.54, seqno 3, tq 255, TTL 50, V 4, UDF 0, IDF 0)
[ 2910] Drop packet: received my own broadcast (sender: 105.13.0.54)
[ 2910]
[ 3980] Forwarding packet (originator 105.13.0.54, seqno 4, TTL 50) on interface eth2:0
[ 3980] count own bcast (schedule_own_packet): old = 0, [ 3980] new = 0
[ 3980]
[ 3980] Received BATMAN packet via NB: 105.13.0.54 , IF: eth2:0 105.13.0.54 (from OG: 105.13.0.54, seqno 4, tq 255, TTL 50, V 4, UDF 0, IDF 0)
[ 3980] Drop packet: received my own broadcast (sender: 105.13.0.54)
[ 3980] ------------------ DEBUG ------------------
[ 3980] Forward list
[ 3980] 105.13.0.54 at 4917
[ 3980] Originator list
[ 3980] Originator Router (#/255 #/64): Potential routers
[ 3980] No batman nodes in range ...
[ 3980] ---------------------------------------------- END DEBUG
[ 3980]
[ 4920] Forwarding packet (originator 105.13.0.54, seqno 5, TTL 50) on interface eth2:0
[ 4920] count own bcast (schedule_own_packet): old = 0, [ 4920] new = 0
[ 4920]
[ 4920] Received BATMAN packet via NB: 105.13.0.54 , IF: eth2:0 105.13.0.54 (from OG: 105.13.0.54, seqno 5, tq 255, TTL 50, V 4, UDF 0, IDF 0)
[ 4920] Drop packet: received my own broadcast (sender: 105.13.0.54)
[ 4920]
[ 6870] Forwarding packet (originator 105.13.0.54, seqno 6, TTL 50) on interface eth2:0
[ 6870] count own bcast (schedule_own_packet): old = 0, [ 6870] new = 0
Deleting all BATMAN routes
[ 6870] Originator timeout: originator 105.12.0.20, last_valid 2710
[ 6870] update_routes()
[ 6870] Error - can't delete rule to 105.0.0.0/8: Invalid argument
[ 6870] Error - can't delete rule to 105.0.0.0/8: Invalid argument
[ 6870] Error - can't delete rule to 105.0.0.0/8: Invalid argument
[ 6870] Error - can't delete rule to 105.0.0.0/8: Invalid argument
[ 6870] Error - can't delete rule to 0.0.0.0/0: Invalid argument
[ 6870] Error - can't delete rule to 0.0.0.0/0: Invalid argument
root@OpenWrt:/etc/init.d#
_________________________________________________________________
Windows Live Writer Beta - Veröffentlichen Sie Multimediainhalte in Ihrem Blog!
http://get.live.com/betas/writer_betas
Hi
is anyone using this on wrt54g ?
i just tried both and batmand_0.3-beta-rv674 gives a segmenation fault and
batmand_0.2-rv502 doesn't start (probably segfault as well).
can someone confirm/deny this?
has someone a link for a working (with batmand)
openwrt-g-freifunk-1.6.x-x.bin/trx ?
cheers
--Jan
Hi
coming from rv674 and approaching to rv719 the very first remarkable
difference I see is the "second" number (among parenthesis) in title
column
Router (#/255 #/64) issuing the command:
batmand -c -d 1 -b (or -d 2 looking for gateways)
There is a second sliding window (size) ?
thanks
-- Antonio
Hello everyone
first: nice work, i'm impressed!
i'm migrating 15 node olsr network to batman.
right now all nodes run olsrd and batman-0.2 parallel,
but there are some issues with "hidden nodes" (thanks to Axel for
the bmx-reference-manual)
so my question, which of the switches from bmx (if any) are available
in the 0.3-beta versions, or is the beta just something like
0.3-exp --bmx-defaults ?
cheers
--Jan
On Oct 9, 2007, at 6:58 PM, Herbert Poetzl wrote:
> On Tue, Oct 09, 2007 at 06:40:11PM +0200, Aaron Kaplan wrote:
>>
>> yep, I think so too! Definitely worth a try.
>
>> @Bertl: would you help us to get vserver running
>> as the basis for olsr (mesh routing demon) tests?
>
> sure, but please get me some idea what you want to do
> first :)
ok, so we have the following issue (sorry): we want to test
B.a.t.m.a.n (https://www.open-mesh.net/) and olsrd (http://
olsr.funkfeuer.at, http://wiki.funkfeuer.at//index.php/Olsrd-ng) on
our test server.
That test server has 8GB or RAM and is currently in repair.
The idea is that in order to create a massive test with many
instances of olsrd or b.a.t.m.a.n. we need lots of virtual hosts,
they should all be connected via a virtual network.
This network needs a possibility of (real) packetloss between each link.
Furthermore each instance needs its own routing table.
when?
anytime, we can start on some devel server with a few instances.
As soon as our 8GB RAM machine is repaired we should test it there.
best,
aaron.
Hi,
I would like to test OLSR and BATMAN on UML instances, since I don't
have the hardware to make real tests.
Would it be possible to have a copy of the binaries running on the
simulator of http://texas.funkfeuer.at/, in order to launch it on my
computer?
Best,
--
Benjamin Henrion <bhenrion(a)ffii.org>
FFII Brussels - +32-484-566109 - +32-2-4148403