Hello,

Am 03.01.2013 um 15:58 schrieb Marek Lindner:

> On Thursday, January 03, 2013 19:03:11 Jan Lühr wrote:
>> c) Disable regular gateway, force node to switch to backup
>> kif:~# batctl gw_mode client
>> 
>> Gateway-List is:
>> reifunk-b0487acb2d58:~# batctl gwl
>>      Gateway      (#/255)           Nexthop [outgoingIF]: gw_class ...
>> [B.A.T.M.A.N. adv 2012.4.0, MainIF/MAC: wlan0-1/b2:48:7a:cb:2d:59 (bat0)]
>> => aa:31:0e:4a:0f:1d (255) aa:31:0e:4a:0f:1d [  mesh-vpn]:  39 -
>> 1024KBit/1024KBit
>> 
>> d) Re-enable regular gateway
>> root@kif:~# /usr/local/sbin/batctl gw server 100Mbit/100Mbit
> 
> Ah! You failed to mention this part in your initial email.
> 
> The behavior is easily explained: batman-adv does not switch gateway whenever 
> a new gateway is found (even if it is a better gateway) unless the selection 
> class is on fast or late switching.
> 

It is. - Sorry, forgot to mention:
Freifunk-b0487acb2d58:~# batctl gw_mode
client (selection class: 1)

=> 1 -> fast connection consider the gateway's advertised  throughput as well 
as the link quality towards the gateway

Keep smiling
yanosz

Reply via email to