On Fri, Apr 05, 2019 at 09:43:12PM +0000, Dave Thompson wrote:
> Hi there,
> 
> I am trying to configure Dnsmasq to provide a custom range of IP
> addresses for my VMs which will then map to a certain subdomain. The
> trouble is, the tag is being found (I can see in the log file) but
> the correct IP range is never provided.
> 
> Here's my config file:
> 
> domain=int.[redacted]
> domain=vm.int.[redacted],192.168.1.50,192.168.1.150
> 
> dhcp-range=192.168.0.50,192.168.0.150,12h
> dhcp-range=tag:vms,192.168.1.50,192.168.1.150,12h

So
ccc.ddd.0.nnn and
ccc.ddd.1.nnn
 
> dhcp-mac=set:vms,08:00:27:*:*:*
> 
> dhcp-host=98:E7:F4:BA:3D:AA,192.168.0.80
> dhcp-leasefile=/var/lib/misc/dnsmasq.leases
> dhcp-authoritative
> 
> log-dhcp
> 
> >From the log:
> 
> Apr  5 17:37:39 pi dnsmasq-dhcp[21541]: 3063663390 available DHCP range: 
> 192.168.0.50 -- 192.168.0.150
    missing the   192.168.1.50   --   192.168.1.150  range
> Apr  5 17:37:39 pi dnsmasq-dhcp[21541]: 3063663390 vendor class: MSFT 5.0
> Apr  5 17:37:39 pi dnsmasq-dhcp[21541]: 3063663390 client provides name: 
> DWT-VPC-W7-0
> Apr  5 17:37:39 pi dnsmasq-dhcp[21541]: 3063663390 DHCPINFORM(eth0) 
> 192.168.0.104 08:00:27:ab:8b:7e
    eth0   ccc.ddd.0.nnn   08:00:27:*:*:*
> Apr  5 17:37:39 pi dnsmasq-dhcp[21541]: 3063663390 tags: vms, eth0
> Apr  5 17:37:39 pi dnsmasq-dhcp[21541]: 3063663390 DHCPACK(eth0) 
> 192.168.0.104 08:00:27:ab:8b:7e DWT-VPC-W7-0
> 
> Can any of you point out what I am missing, please?

Start with changing your
} domain=int.[redacted]
} domain=vm.int.[redacted],192.168.1.50,192.168.1.150
} 
} dhcp-range=192.168.0.50,192.168.0.150,12h
} dhcp-range=tag:vms,192.168.1.50,192.168.1.150,12h

into

 domain=int.[redacted]
 domain=vm.int.[redacted],192.168.0.151,192.168.0.200
 
 dhcp-range=192.168.0.50,192.168.0.150,12h
 dhcp-range=tag:vms,192.168.0.151,192.168.0.200,12h

to get
} Dnsmasq to provide a custom range of IP addresses
} for VMs which will then map to a certain subdomain.
 
So all in  ccc.ddd.X.nnn


Extending it to   ccc.ddd.A.nnn and  ccc.ddd.B.nnn will
take extra effort.


> Thank you very much,
> 
> Dave


Looking forward to the report of the success story.
Yes, even little success stories are welcome.


Groeten
Geert Stappers
-- 
Leven en laten leven

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

Reply via email to