From: Sven Eckelmann <sven@narfation.org>
To: b.a.t.m.a.n@lists.open-mesh.org
Cc: Oguzhan Kayhan <oguzhan@kayhan.name.tr>
Subject: Re: configuration issue
Date: Mon, 27 Apr 2020 17:27:30 +0200 [thread overview]
Message-ID: <1684592.5WYlJ4OYfx@bentobox> (raw)
In-Reply-To: <CANKYHpeiWj7w2KEnkEfjUHWKfbhEAj7kMVE5hL5xv6O_1ZVFwg@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 3925 bytes --]
On Monday, 27 April 2020 14:26:40 CEST Oguzhan Kayhan wrote:
> Hello
> I am running batman over a openwrt 18.06
> default batman config over this firmware is batman-adv 2017.4
This is odd. 18.06 is using batman-adv 2018.1 (2018.1-11 at the moment).
Sounds like something went wrong with your routing feed.
[...]
> config wifi-iface
> option device 'radio0'
> option ifname 'mesh0'
> option network 'mesh'
> option mode 'adhoc'
> option ssid 'mesh'
> option bssid '02:CA:FE:CA:CA:40'
> option mcast_rate '18000'
[...]
Please think about switching to meshpoint without forwarding.
config wifi-iface 'wmesh'
option device 'radio0'
option ifname 'mesh0'
option network 'bat0_hardif_mesh0'
option mode 'mesh'
option mesh_id 'mesh'
option mesh_fwding '0'
option mesh_ttl '1'
option 'mcast_rate' '18000'
At least in my experience, the IBSS support in the device firmware is either
not there or starting to rot.
> I have two systems present..
> One board is with 802.11n radio. other is 802.11ac radio
> This is the only difference..same image compiled running on both devices..
[...]
> This configuration works fine..
> But if I run same config on the second node with 802.11ac radio.. it fails..
> So I dig around and changed the config as follows.. And it started to work..
> batman-adv is same..no difference
[...]
> config interface 'bat0_hardif_eth0'
> option mtu '1532'
> option proto 'batadv'
> option mesh 'bat0'
> option ifname 'eth0'
Hum, where is the ethernet coming from? This is not used in the other
configuration as slave interface for bat0. And it should also fail if you do
something like this on the 11n device and don't use a separate interface
section in /etc/config/network for it.
Besides this, what is the change? I don't see one.
And if you just wanted to have eth0 as slave and the wlan interface as slave -
then yes, you need two different interfaces with proto batadv (batadv_hardif
in OpenWrt 19.07) in /etc/config/network. It is not possible to have multiple
slave interfaces in /etc/config/network attached to a single master interface
using a single (non-"bridge" type) interface section . This is a limitation
of netifd.
> I have two questions so far..
>
> Why the first config does not work over second system..(Wifi works
> fine but. for mesh. i needed to change the config like this)
>
> Second question.. I can live with different config.. Ok..
> But I want to use eth0 and eth2 and mesh network as a bridge...
"as a bridge"? Maybe you mean in a bridge? Should work right of the box with eth2:
config interface 'bat0_hardif_wlan'
option mtu '1532'
option proto 'batadv'
option mesh 'bat0'
config interface 'bat0_hardif_eth0'
option mtu '1532'
option proto 'batadv'
option mesh 'bat0'
option ifname 'eth0'
config interface 'lan'
option type 'bridge'
option ifname 'eth2 bat0'
option proto 'static'
If you want to use eth0, eth2 and bat0 in a bridge then it would look like this:
config interface 'bat0_hardif_wlan'
option mtu '1532'
option proto 'batadv'
option mesh 'bat0'
config interface 'lan'
option type 'bridge'
option ifname 'eth0 eth2 bat0'
option proto 'static'
> But whenever i add any of this interfaces on bridge.. batman-adv fails..
> What am I missing???
A device just cannot be in a bridge and in batadv at the same time. Just not
possible because the bridge would steal all the ethernet packets before
batman-adv would receive them. So it is not even allowed to have two masters
(batadv interface and a bridge) for a single interface (wlan0, eth0, ...).
Kind regards,
Sven
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2020-04-27 15:27 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-27 12:26 configuration issue Oguzhan Kayhan
2020-04-27 15:27 ` Sven Eckelmann [this message]
[not found] ` <CANKYHpe_cG=dKv5z4tecjb24U_P2ipWoQPownNCxKySU_FozQw@mail.gmail.com>
2020-04-27 17:19 ` Sven Eckelmann
[not found] ` <CANKYHpcZU09emNFy3yf4K0F5s8gzT6giosqfCDNj278f6Z3_mQ@mail.gmail.com>
2020-04-28 9:28 ` Oguzhan Kayhan
2020-04-28 9:51 ` Sven Eckelmann
2020-04-28 10:36 ` Oguzhan Kayhan
2020-04-28 11:17 ` Sven Eckelmann
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=1684592.5WYlJ4OYfx@bentobox \
--to=sven@narfation.org \
--cc=b.a.t.m.a.n@lists.open-mesh.org \
--cc=oguzhan@kayhan.name.tr \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox