Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FS#1290 - Additional dhcp-range not created in dnsmasq.conf #7966

Closed
openwrt-bot opened this issue Jan 23, 2018 · 4 comments
Closed

FS#1290 - Additional dhcp-range not created in dnsmasq.conf #7966

openwrt-bot opened this issue Jan 23, 2018 · 4 comments
Labels

Comments

@openwrt-bot
Copy link

Kurgan-:

I have created 3 interfaces I want to run a DHCP server on.

The first is the default LAN, then there are 2 more: "camera" and "management".

In /etc/config/dhcp.conf I have the interfaces defined properly (I suppose):

config dhcp 'lan' option interface 'lan' option start '100' option limit '150' option leasetime '12h'

config dhcp 'management'
option start '100'
option leasetime '12h'
option limit '150'
option interface 'management'

config dhcp 'camere'
option interface 'camere'
option start '100'
option leasetime '12h'
option limit '150'
list dhcp_option '6,192.168.42.1'

Anyway, when I look at the generated dnsmasq.conf file (/var/etc/dnsmasq.conf.cfg02411c), I can see only ONE dhcp-range definition, for LAN interface. There is NO OTHER dhcp-range entry.

dhcp-range=lan,192.168.0.100,192.168.0.249,255.255.255.0,12h

So, dnsmasq does not serve dhcp to the other two interfaces.

If I manually add ranges to /etc/dnsmasq.conf, then DHCP works on the other interfaces too.

@openwrt-bot
Copy link
Author

Kurgan-:

I have an addition to the bug report: it seems that only the first enabled config is compiled into the generated dnsmasq.conf.

If I disable DHCP on the "LAN" interface, by setting "option ignore 1" in its stanza in /etc/config/dhcp, then I get the dhcp-range set for "camera", in dnsmasq.conf, but still nothing for "management".

@openwrt-bot
Copy link
Author

arjendekorte:

What is in /etc/config/network?

@openwrt-bot
Copy link
Author

Kurgan-:

config interface 'lan' option type 'bridge' option ifname 'eth0' option proto 'static' option netmask '255.255.255.0' option ip6assign '60' option ipaddr '192.168.0.1' option delegate '0'

config interface 'camere'
option proto 'static'
option ifname 'eth3'
option delegate '0'
option ipaddr '192.168.42.1'
option netmask '255.255.255.0'

config interface 'management'
option ifname 'eth4'
option _orig_ifname 'eth4'
option _orig_bridge 'false'
option proto 'static'
option ipaddr '192.168.43.1'
option netmask '255.255.255.0'

@openwrt-bot
Copy link
Author

jow-:

Please try "option force 1" to all "config dhcp" sections. Also post the output of "logread" after /etc/init.d/dnsmasq restart.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant