Re: [Dnsmasq-discuss] DHCP problem when moving from one WiFi SSID to another

2018-12-26 Thread john doe
On 12/26/2018 6:58 PM, Chris Green wrote:
> I have a large[ish[ house and to provide good WiFi throughout I run
> two Draytek routers.  The 'main' one is a Vigor 2860n which connects
> to the internet by FTTC, the second one is an old Vigor 2820n which
> has its WAN disabled and the LAN hardwired to the 2860n LAN.
> 
> Currently I'm using the same SSID on both routers, I've read quite a
> lot around this and the weight of opinion seems to be that using the
> same SSID should work OK and is more transparent to the user than
> using different ones.  However I have also tried different SSIDs for
> the two routers requiring user intervention to move from one to the
> other, this shows the same symptoms (described below) as using the
> same SSID.
> 
> What happens is that when I move around such that the WiFi connection
> should move from the 2820n to the 2860n my laptop loses its IP
> address.
> 
> DHCP and DNS is provided by dnsmasq running on a RaspberryPi, the
> basic IPV4 setup is as follows:-
> 
> Vigor 2860n - 192.168.1.1
> Raspberry Pi - 192.168.1.2 (runs dnsmasq)
> Desktop 192.168.1.3
> Vigor 2820n - 192.168.1.20
> 
> The Pi assigns IP addresses from 192.168.80 to 192.168.1.127 and the
> conf file is:-
> 
> domain-needed
> bogus-priv
> expand-hosts
> domain=zbmc.eu
> dhcp-range=192.168.1.80,192.168.1.127,12h
> dhcp-option=3,192.168.1.1
> local=/zbmc.eu/
> cname=bbb,beaglebone
> cname=mx201,maxine-X201
> cname=ben,DESKTOP-978VD5M
> cname=oki,MC342-AE529C
> dhcp-host=00:BB:3A:E9:A3:15,maxineKindle
> dhcp-host=00:09:B0:C9:CE:81,onkyoTx-nr616
> dhcp-host=28:EF:01:2D:EB:07,chrisKindle
> dhcp-host=08:EB:74:9D:47:53,humaxFreeview
> dhcp-host=2C:08:8C:CC:9A:9E,humaxYouview
> dhcp-host=00:1F:E2:4E:8F:CA,maxineStudy
> dhcp-host=00:25:36:AE:52:9C,192.168.1.50
> 
> 
> My laptop seems to lose its IP address whenever I move from one
> Draytek's WiFi to the other but only when the IP is assigned by
> dnsmasq.  If I connect to my guest network (192.168.6.x) then I get a
> IP address assigned by the 2860n and a good connection to the outside
> world.  If I then reconnect to the 'local' WiFi the laptop loses its
> IP address.  It's as if dnsmasq doesn't see the disconnection and
> doesn't answer the new DHCP broadcast from my laptop.  If I leave it
> disconnected for a minute or two and then re-connect to the WiFi it
> *does* get an IP.
> 
> 
> Can anyone explain what might be wrong and/or a fix or workaround?
> 
> 

How is this issue different from the one you posted a fiew mounths back (1)?

Did you try what Simon Kellie suggested then?

1)
http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/2018q2/012225.html

-- 
John Doe

___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss


[Dnsmasq-discuss] [PATCH] Fix typo in ra-param man page section

2018-12-26 Thread Christian Weiske
---
 man/dnsmasq.8| 2 +-
 man/fr/dnsmasq.8 | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git man/dnsmasq.8 man/dnsmasq.8
index f01a5ba..9c30d2b 100644
--- man/dnsmasq.8
+++ man/dnsmasq.8
@@ -1829,7 +1829,7 @@ The interval between router advertisements may be set (in 
seconds) with
 .B --ra-param=eth0,60.
 The lifetime of the route may be changed or set to zero, which allows
 a router to advertise prefixes but not a route via itself. 
-.B --ra-parm=eth0,0,0
+.B --ra-param=eth0,0,0
 (A value of zero for the interval means the default value.) All four 
parameters may be set at once.
 .B --ra-param=eth0,mtu:1280,low,60,1200
 
diff --git man/fr/dnsmasq.8 man/fr/dnsmasq.8
index 88967df..a04c776 100644
--- man/fr/dnsmasq.8
+++ man/fr/dnsmasq.8
@@ -1774,7 +1774,7 @@ Un intervalle (en secondes) entre les annonces routeur 
peut être fourni par :
 .B --ra-param=eth0,60.
 La durée de vie de la route peut être changée ou mise à zéro, auquel cas
 le routeur peut annoncer les préfixes mais pas de route :
-.B --ra-parm=eth0,0,0
+.B --ra-param=eth0,0,0
 (une valeur de zéro pour l'intervalle signifie qu'il garde la valeur par 
défaut).
 Ces quatre paramètres peuvent être configurés en une fois :
 .B --ra-param=eth0,mtu:1280,low,60,1200
-- 
2.20.1


___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss


Re: [Dnsmasq-discuss] Documentation error (minor)

2018-12-26 Thread john doe
On 12/26/2018 7:40 PM, Chris Green wrote:
> While looking through the example dnsmasq.conf file comments with a
> view to seeing if there was anything relevant to my recent question
> about losing DHCP configuration when re-connecting I found:-
> 
> # Set the DHCP server to authoritative mode. In this mode it will barge in
> # and take over the lease for any client which broadcasts on the network,
> # whether it has a record of the lease or not. This avoids long timeouts
> # when a machine wakes up on a new network. DO NOT enable this if there's
> # the slightest chance that you might end up accidentally configuring a 
> DHCP
> # server for your campus/company accidentally. The ISC server uses
> # the same option, and this URL provides more information:
> # http://www.isc.org/files/auth.html
> #dhcp-authoritative
> 
> The link http://www.isc.org/files/auth.html is broken and, although I
> searched around a bit in isc.org I couldn't find anything relevant.
> 

Simply look for 'authoritative DHCP server' on the internet machine.

> By the way, while I'm about it would this possibly be the answer to my
> DHCP re-connect problem?  "This avoids long timeouts when a machine
> wakes up on a new network." does sound a bit hopeful.  However I'm not
> really clear what the sentence after means so I'm not sure if I can
> try this safely or not.
> 

If you have only one DHCP server on your network, you should be fine
trying '--dhcp-authoritative'.

-- 
John Doe

___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss


[Dnsmasq-discuss] Documentation error (minor)

2018-12-26 Thread Chris Green
While looking through the example dnsmasq.conf file comments with a
view to seeing if there was anything relevant to my recent question
about losing DHCP configuration when re-connecting I found:-

# Set the DHCP server to authoritative mode. In this mode it will barge in
# and take over the lease for any client which broadcasts on the network,
# whether it has a record of the lease or not. This avoids long timeouts
# when a machine wakes up on a new network. DO NOT enable this if there's
# the slightest chance that you might end up accidentally configuring a DHCP
# server for your campus/company accidentally. The ISC server uses
# the same option, and this URL provides more information:
# http://www.isc.org/files/auth.html
#dhcp-authoritative

The link http://www.isc.org/files/auth.html is broken and, although I
searched around a bit in isc.org I couldn't find anything relevant.

By the way, while I'm about it would this possibly be the answer to my
DHCP re-connect problem?  "This avoids long timeouts when a machine
wakes up on a new network." does sound a bit hopeful.  However I'm not
really clear what the sentence after means so I'm not sure if I can
try this safely or not.

-- 
Chris Green

___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss


[Dnsmasq-discuss] DHCP problem when moving from one WiFi SSID to another

2018-12-26 Thread Chris Green
I have a large[ish[ house and to provide good WiFi throughout I run
two Draytek routers.  The 'main' one is a Vigor 2860n which connects
to the internet by FTTC, the second one is an old Vigor 2820n which
has its WAN disabled and the LAN hardwired to the 2860n LAN.

Currently I'm using the same SSID on both routers, I've read quite a
lot around this and the weight of opinion seems to be that using the
same SSID should work OK and is more transparent to the user than
using different ones.  However I have also tried different SSIDs for
the two routers requiring user intervention to move from one to the
other, this shows the same symptoms (described below) as using the
same SSID.

What happens is that when I move around such that the WiFi connection
should move from the 2820n to the 2860n my laptop loses its IP
address.

DHCP and DNS is provided by dnsmasq running on a RaspberryPi, the
basic IPV4 setup is as follows:-

Vigor 2860n - 192.168.1.1
Raspberry Pi - 192.168.1.2 (runs dnsmasq)
Desktop 192.168.1.3
Vigor 2820n - 192.168.1.20

The Pi assigns IP addresses from 192.168.80 to 192.168.1.127 and the
conf file is:-

domain-needed
bogus-priv
expand-hosts
domain=zbmc.eu
dhcp-range=192.168.1.80,192.168.1.127,12h
dhcp-option=3,192.168.1.1
local=/zbmc.eu/
cname=bbb,beaglebone
cname=mx201,maxine-X201
cname=ben,DESKTOP-978VD5M
cname=oki,MC342-AE529C
dhcp-host=00:BB:3A:E9:A3:15,maxineKindle
dhcp-host=00:09:B0:C9:CE:81,onkyoTx-nr616
dhcp-host=28:EF:01:2D:EB:07,chrisKindle
dhcp-host=08:EB:74:9D:47:53,humaxFreeview
dhcp-host=2C:08:8C:CC:9A:9E,humaxYouview
dhcp-host=00:1F:E2:4E:8F:CA,maxineStudy
dhcp-host=00:25:36:AE:52:9C,192.168.1.50


My laptop seems to lose its IP address whenever I move from one
Draytek's WiFi to the other but only when the IP is assigned by
dnsmasq.  If I connect to my guest network (192.168.6.x) then I get a
IP address assigned by the 2860n and a good connection to the outside
world.  If I then reconnect to the 'local' WiFi the laptop loses its
IP address.  It's as if dnsmasq doesn't see the disconnection and
doesn't answer the new DHCP broadcast from my laptop.  If I leave it
disconnected for a minute or two and then re-connect to the WiFi it
*does* get an IP.


Can anyone explain what might be wrong and/or a fix or workaround?


-- 
Chris Green

___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss