All of lore.kernel.org
 help / color / mirror / Atom feed
From: Simon Wunderlich <sw@simonwunderlich.de>
To: b.a.t.m.a.n@lists.open-mesh.org
Cc: lavincent15@gmail.com
Subject: Re: Batman_V Originator Loop Issue
Date: Wed, 08 Jul 2020 11:15:40 +0200	[thread overview]
Message-ID: <5716273.fDpRzsxG9E@prime> (raw)
In-Reply-To: <20200707194731.1176.30400@diktynna.open-mesh.org>

[-- Attachment #1: Type: text/plain, Size: 4756 bytes --]

Hi Luke,

can you please describe which nodes are connected to the LAN and which are 
not? You say "one is connected to LAN" and the others are "operating as an 
access point", does that mean they are not connected to the same LAN via 
Ethernet?

If multiple nodes are connected and bridged to the same LAN, bridge loop 
avoidance should be enabled - you have that in your config, but you could 
double check with "batctl bl" and then "batctl bbt"/"batctl cl" (please post 
these tables if you think this could be connected).

You could also try disabling distributed arp table and multicast mode, just to 
make sure this is not shooting us in the foot here. Those optimizations are 
not really needed for such a small network.

Cheers,
       Simon

On Tuesday, July 7, 2020 9:47:31 PM CEST lavincent15@gmail.com wrote:
> Running batctl 2020.1-openwrt-1 [batman-adv: 2020.1-openwrt-2]
> 
> When running a two node network with one node connected to my lan and the
> other operating as an access point, my network works great. I can connect
> clients to my batman nodes and access my LAN.
> 
> When booting up a third node. My network works for 1 minute, then breaks
> down. My LAN cannot ping any of the batman nodes anymore.
> 
> I keep receiving messages like this: "[ 2900.755655] br-lan: received packet
> on bat0 with own address as source address (addr:8c:ae:4c:db:14:5c,
> vlan:0)" which signifies a bridge loop I think.
> 
> My originator messages look wrong as I can see my host originator messages
> along with all the neigbor nodes:
> 
> root@OpenWrt:/etc/config# batctl o -n
> [B.A.T.M.A.N. adv 2020.1-openwrt-2, MainIF/MAC: mesh0/00:30:1a:4e:b8:26
> (bat0/f2:07:f1:5f:e0:78 BATMAN_V)] Originator        last-seen (
> throughput)  Nexthop           [outgoingIF] * 00:30:1a:4e:b8:18    0.570s (
>       86.7) 00:30:1a:4e:b8:2e [     mesh0] 00:30:1a:4e:b8:18    0.570s (   
>    21.6) 00:30:1a:4e:b8:18 [     mesh0] * 00:30:1a:4e:b8:2e    1.510s (    
>  212.6) 00:30:1a:4e:b8:2e [     mesh0] 00:30:1a:4e:b8:2e    1.510s (      
> 38.9) 00:30:1a:4e:b8:18 [     mesh0] 00:30:1a:4e:b8:26    1.510s (      
> 38.9) 00:30:1a:4e:b8:18 [     mesh0] * 00:30:1a:4e:b8:26    1.510s (     
> 108.9) 00:30:1a:4e:b8:2e [     mesh0]
> 
> root@OpenWrt:/etc/config# batctl n -n
> [B.A.T.M.A.N. adv 2020.1-openwrt-2, MainIF/MAC: mesh0/00:30:1a:4e:b8:26
> (bat0/f2:07:f1:5f:e0:78 BATMAN_V)] IF             Neighbor             
> last-seen
> 00:30:1a:4e:b8:2e    0.490s (      179.0) [     mesh0]
> 00:30:1a:4e:b8:18    0.380s (       79.2) [     mesh0]
> 
> 
> 
> Here is my /etc/config/network:
> config interface 'loopback'
>         option ifname 'lo'
>         option proto 'static'
>         option ipaddr '127.0.0.1'
>         option netmask '255.0.0.0'
> 
> config globals 'globals'
>         option ula_prefix 'fdc4:e092:8929::/48'
> 
> config interface 'lan'
>         option type 'bridge'
>         option proto 'static'
>         option ipaddr '192.168.0.32'
>         option netmask '255.255.255.0'
>         option ip6assign '60'
>         option gateway '192.168.0.1'
>         list dns '8.8.8.8'
>         option ifname 'bat0 eth0'
> 
> config interface 'nwi_mesh0'
>         option mtu '2304'
>         option proto 'batadv_hardif'
>         option master 'bat0'
> 
> config interface 'bat0'
>         option proto 'batadv'
>         option routing_algo 'BATMAN_V'
>         option aggregated_ogms '1'
>         option ap_isolation '0'
>         option bonding '0'
>         option fragmentation '1'
>         option gw_mode 'server'
>         option log_level '0'
>         option orig_interval '1000'
>         option bridge_loop_avoidance '1'
>         option distributed_arp_table '1'
>         option multicast_mode '1'
>         option network_coding '0'
>         option hop_penalty '30'
>         option isolation_mark '0x00000000/0x00000000'
> 
> 
> And here is my /etc/config/wireless
> root@OpenWrt:/etc/config# cat wireless
> config wifi-device 'radio0'
>         option type 'mac80211'
>         option channel '36'
>         option hwmode '11a'
>         option path
> 'soc0/soc/1ffc000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0' option htmode
> 'VHT80'
> 
> config wifi-iface 'mesh0'
>         option device 'radio0'
>         option ifname 'mesh0'
>         option network 'nwi_mesh0'
>         option mode 'mesh'
>         option mesh_fwding '0'
>         option mesh_id 'batman_mesh'
>         option encryption 'none'
> 
> config wifi-iface 'wifinet0'
>         option device 'radio0'
>         option mode 'ap'
>         option ssid 'N2-Lander'
>         option encryption 'psk2'
>         option key 'finnjamin'
>         option ifname 'wlan0'
>         option network 'lan'
> 
> 
> Any and all help is greatly appreciated


[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  reply	other threads:[~2020-07-08  9:15 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-07 19:47 Batman_V Originator Loop Issue lavincent15
2020-07-08  9:15 ` Simon Wunderlich [this message]
2020-07-08 14:44   ` lavincent15
2020-07-08 15:26   ` lavincent15
2020-07-09 20:33     ` Linus Lüssing
2020-07-24 10:02       ` Linus Lüssing
2020-07-24 15:00         ` lavincent15
2020-07-24 20:23           ` Linus Lüssing
2020-07-27 16:28             ` lavincent15
2020-07-27 18:36               ` Linus Lüssing

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5716273.fDpRzsxG9E@prime \
    --to=sw@simonwunderlich.de \
    --cc=b.a.t.m.a.n@lists.open-mesh.org \
    --cc=lavincent15@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.