-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256
On 14/01/15 22:19, Helmut Friederici wrote: > Hello Simon, > > thanks for your reply. > > Obviously the problems have gone two days later without having done > something. Maybe the lease times where too long and I was too > impatient. > Could be. There's no way for dnsmasq to end existing leases, but it will notice that a client should move IP because the config has changed and refuse to renew when the client tries at the end of the lease. That will make the client get a new lease with a new address. Cheers, Simon. > I reduced the lease times to only a few minutes but later I will > set them to some more practical values again. > > But for now time healed any wounds. > > Thanks again, Helmut > > > Am Montag, 12. Januar 2015, 20:32:39 schrieb Simon Kelley: >> A couple of things to start with: >> >> First, tell us the version of dnsmasq you're using. Second, add >> >> log-dhcp >> >> to the configuration file, let you clients attempt to get an >> address, and see what was logged. Amongst other things, all the >> tags that dnsmasq calculated for the client will be shown, so we >> can see if the problem is wrong tags, or something else. >> >> >> Cheers, >> >> Simon. >> >> On 12/01/15 15:06, Helmut Friederici wrote: >>> Hello, this is my first post in this mailing list and I am a >>> newbie to dnsmasq. So please be a bit patient with me. >>> >>> I think I am not the first having the following problem and >>> there is a solution, but I haven't seen it yet. I want to setup >>> multiple IP ranges for different ethernet-enabled devices. Many >>> of them should get fixed addresses by dnsmasq, others should >>> get real dynamic addresses. What I want is the following: >>> >>> - defining several DHCP-Ranges with and without tagnames, >>> e.g.: DHCP-RANGE=tag:external,<IP-Start>,<IP- >>> End>,255.255.255.0,8h DHCP-RANGE=tag:local1,<IP-Start>,<IP- >>> End>,255.255.255.0,1h DHCP-RANGE=tag:local2,<IP-Start>,<IP- >>> End>,255.255.255.0,1h DHCP-RANGE=tag:local3,<IP-Start>,<IP- >>> End>,255.255.255.0,1h >>> DHCP-RANGE=<IP-Start>,<IP-End>,255.255.255.0,2h - defining > several >>> DHCP-Hosts with and without fixed IPs, names, but all existing >>> range tags DHCP-HOST=<MAC1>,set:external,<Name1> >>> DHCP-HOST=<MAC2>,set:external,<IP2>,<Name2> >>> DHCP-HOST=<MAC3>,set:local1,<IP3> >>> DHCP-HOST=<MAC4>,set:local1,<IP4> >>> DHCP-HOST=<MAC5>,set:local2,<IP5>,<Name5> >>> DHCP-HOST=<MAC6>,set:local3,<IP6> - using partly specified MAC >>> addresses (vendor specific) so that devices with matching MAC >>> addresses get IP addresses of DHCP range "local2" >>> DHCP-HOST=11:22:33:*:*:*,set:local2 - using different gateways >>> - or more specific suppress internet access >>> DHCP-OPTION=tag:local1,3,127.0.0.1 >>> DHCP-OPTION=tag:local2,3,127.0.0.1 >>> DHCP-OPTION=tag:local3,3,127.0.0.1 DHCP-OPTION=3,<Gateway- > IP> >>> >>> What I expected I expected the host with <MAC1> will get an IP >>> from the range tagged as "external", but it gets one of the >>> untagged range. Other PCs previously having an IP in the local1 >>> range but reconfigured to get an external one remain on the >>> earlier address and do not have access to the internet any >>> more. Dnsmasq runs on Red Hat Enterprise Linux 6.6, After >>> modifying the config file I stopped the network and dnsmasq >>> services, cleared the arp cache > and >>> restarted the services as follows, but the problem remains. >>> service network stop service dnsmasq stop ip neigh flush dev >>> eth1 service dnsmasq start service network start >>> >>> Who can give me some advice? Or tell me where I'an wrong. >>> >>> Thanks in advance >>> >>> I tried to stop the network service and the dnsmasq service, >>> mod >>> >>> >>> >>> _______________________________________________ > Dnsmasq-discuss >>> mailing list Dnsmasq-discuss@lists.thekelleys.org.uk >>> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss >> >> >>> _______________________________________________ >> Dnsmasq-discuss mailing list >> Dnsmasq-discuss@lists.thekelleys.org.uk >> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss > > > > > _______________________________________________ Dnsmasq-discuss > mailing list Dnsmasq-discuss@lists.thekelleys.org.uk > http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss > -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCAAGBQJUvCn3AAoJEBXN2mrhkTWiQxIP/jANJapkmCQJx5WWbRpkLt9u JgsiOFSwtcENhRQqvAl1FDzhfmx+yuJYMA7XrPIGiNVh6MKEGiUN3+NgQknG6FbK ryktDzQmM6OoKP8DUvDAduv3KTUnxbF1rEea/5moMwNtYDukeuCKBjSmVUK7VEfz la8hWhEOovZz9wUzB636+dYd+wrIaSm2MRS7/tr5CidZOiXcIZvOwQvHORNt/5S0 +Kscpfpu374PXO0WT5IlEnLyz96wvq+X51Z8sI3UP2FpdW7WWqubkxtRaPwdFFyo fhrf62pkYMucay59N72ibBT5flEg+J+Fgiln1v/btbQ9t3YMBGrlokUIm8mHhLgv Emb39GDKFtl+WIp4u2mt+tBx5eiquc/hQyyahiH0FktoUnLMDupptmqPU6Xa7UTw DDaADFJab3F60Jkh6i10IbwI1IVqeaNEBD37Vg0eEEsmfohW0nFKeWM7RVT1oG65 oEKfgCGywQfRJhG9XmJTa2dUe6onewBbZpw6OlThTOg69f2Kw5WVSiS4gFOfgbbO PozPtikWdZmfRXjECASnI1nsX/khI/aE/VxQcI11+TwnOkpMeg52sIP8lZ/C0qSs bf8iUIRBH5GnF12aOXJWlII1gnN9Dnq/12e/n3xNta4y2rCMBBrN2anC9Ti81TUV QQkF84tx9WuYyBHRzzA1 =T9g3 -----END PGP SIGNATURE----- _______________________________________________ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss