From: Sven Eckelmann <sven@narfation.org>
To: b.a.t.m.a.n@lists.open-mesh.org
Subject: Re: [B.A.T.M.A.N.] no able to switch routing algo to V ?
Date: Sat, 07 May 2016 16:18:38 +0200 [thread overview]
Message-ID: <112511932.Eq5c9Kmyda@sven-edge> (raw)
In-Reply-To: <572DF6E3.3030901@wifibot.com>
[-- Attachment #1: Type: text/plain, Size: 1921 bytes --]
On Saturday 07 May 2016 16:08:35 contact wrote:
> Hello,
>
> I just got openwrt 15.05.1 with batman-adv 2016.1 on 3 picostation HP,
> this time a selected before the build of openwrt batman V option, I can
> see it when it ask for available routing algo ,
>
> root@OpenWrt:/etc/init.d# cat /sys/kernel/debug/batman_adv/routing_algos
> Available routing algorithms:
> * BATMAN_IV
> * BATMAN_V
>
> but when I do :
>
> echo BATMAN_V > /sys/module/batman_adv/parameters/routing_algo
>
> It does nothing, still on BATMAN_IV during session and on reboot ?
This module parameter only controls what routing algorithm is chosen when a
new batman-adv interface is created. So if you already have created it then
changing the parameter doesn't do anything to the already existing batman-adv
interface. Also rebooting a device will reset it either to the default or to
the one you've explicitly specified during the loading of the modules.
But you seem to use OpenWrt. It allows to specify the routing_algo in
/etc/config/network and should be applied right before the batman-adv
interface is created. You just have to make sure that you don't specify
conflicting things. An example of a simple configuration is:
config interface 'batnet'
option mtu '1532'
option proto 'batadv'
option mesh 'bat0'
option routing_algo 'BATMAN_V'
The wireless configuration would then normally reference this batnet network:
config wifi-iface 'wmesh'
option device 'radio0'
option ifname 'adhoc0'
option network 'batnet'
option mode 'adhoc'
option ssid 'mesh'
option 'mcast_rate' '18000'
option bssid '02:CA:FE:CA:CA:40'
This information was taken from Batman-adv-openwrt-config wiki page [1]
Kind regards,
Sven
[1] https://www.open-mesh.org/projects/batman-adv/wiki/Batman-adv-openwrt-config
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
next prev parent reply other threads:[~2016-05-07 14:18 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-07 14:08 [B.A.T.M.A.N.] no able to switch routing algo to V ? contact
2016-05-07 14:18 ` Sven Eckelmann [this message]
2016-05-07 16:04 ` contact
2016-05-07 16:28 ` Sven Eckelmann
2016-05-07 16:42 ` contact
2016-05-07 16:44 ` Sven Eckelmann
2016-05-07 16:51 ` contact
2016-05-07 16:53 ` Marek Lindner
2016-05-07 16:59 ` contact
2016-05-07 17:01 ` Marek Lindner
2016-05-07 17:06 ` contact
2016-05-07 18:09 ` contact
2016-05-07 18:45 ` contact
2016-05-07 22:40 ` Marek Lindner
2016-05-07 16:55 ` Sven Eckelmann
-- strict thread matches above, loose matches on Subject: below --
2016-05-06 20:27 [B.A.T.M.A.N.] [PATCH maint] batman-adv: Fix double neigh_node_put in batadv_v_ogm_route_update Sven Eckelmann
2016-05-07 12:07 ` Marek Lindner
2016-05-07 12:29 ` [B.A.T.M.A.N.] no able to switch routing algo to V ? contact
2016-05-07 13:14 ` 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=112511932.Eq5c9Kmyda@sven-edge \
--to=sven@narfation.org \
--cc=b.a.t.m.a.n@lists.open-mesh.org \
/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