[Dnsmasq-discuss] Obtaining addresses from dnsmasq via dhcprelay

Anton warm at mtele.pro
Tue Mar 10 04:24:08 GMT 2015


Hi.

I have cisco with ip unnumbered feature enabled. Loopback interface has next configuration:

interface Loopback20
 ip address 192.168.21.1 255.255.255.0 secondary
 ip address 192.168.20.1 255.255.255.0
 no ip redirects
end

and dnsmasq.conf is:
---------------------------------------------------
interface=eth0.10
no-ping
port=0
log-async=20
log-facility=/tmp/dnsmasq.log
dhcp-hostsfile=/etc/dnsmasq/dnsmasq.hosts
dhcp-leasefile = /tmp/dnsmasq.lease

#dhcp-range=set:r20,192.168.20.2,192.168.20.253,255.255.255.0,12m # commented out for test purpose 
dhcp-range=set:r21,192.168.21.2,192.168.21.253,255.255.255.0,12m

#dhcp-option = tag:r20, option:router, 192.168.20.1 # commented out for test purpose
dhcp-option = tag:r21, option:router, 192.168.21.1 
---------------------------------------------------

Cisco sends dhcp requests to dnsmasq always from 192.168.20.1 source. When using range tagged r20 all works fine, but
if using range r21 dnsmasq cannot find range with "no address range available for DHCP request via 192.168.20.1".

How to make dnsmasq to use next available range or to use all ranges at the same time ?

For example r20 will be full and how to use next available range ? Or how to make dnsmasq to use all available ranges
at the same time providing that request will always be  received from cisco primary loopback interface ip address
(192.168.20.1 in this case) ?






More information about the Dnsmasq-discuss mailing list