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#1438 - odhcpd serving ipv4 does not honor DHCP start or limit parameters #6463

Closed
openwrt-bot opened this issue Mar 16, 2018 · 2 comments
Closed
Labels

Comments

@openwrt-bot
Copy link

K2DLS:

Supply the following if possible:

  • Device problem occurs on WRT1900AC
  • Software versions: LEDE Reboot 17.01.4 r3560-79f57e422d / LuCI lede-17.01 branch (git-17.290.79498-d3f0685)
  • Steps to reproduce

I was attempting to run odhcpd + unbound as documented here:

https://github.com/openwrt/packages/blob/master/net/unbound/files/README.md#unbound-and-odhcpd

While odhcpd did serve up IPv4 addresses, it ignored the start and limit parameters in the config dhcp section of /etc/config/dhcp. Addresses outside of the desired scope were assigned to clients.

@openwrt-bot
Copy link
Author

dedeckeh:

Can you provide more detailed info like the dhcp config being used; which address has been leased to a client not belonging to the dhcp start/limit parameters ?

@openwrt-bot
Copy link
Author

dedeckeh:

Works for me using following config :

dhcp.lan=dhcp
dhcp.lan.interface='lan'
dhcp.lan.start='100'
dhcp.lan.leasetime='12h'
dhcp.lan.dhcpv6='server'
dhcp.lan.ra='server'
dhcp.lan.dhcpv4='server'
dhcp.lan.limit='1'
dhcp.odhcpd=odhcpd
dhcp.odhcpd.leasefile='/tmp/hosts/odhcpd'
dhcp.odhcpd.leasetrigger='/usr/sbin/odhcpd-update'
dhcp.odhcpd.loglevel='7'
dhcp.odhcpd.maindhcp='1'

Client is assigned 192.168.1.100 which is within the configured range :

Tue Apr 17 21:17:49 2018 daemon.notice odhcpd[2031]: Got DHCPv4 request
Tue Apr 17 21:17:49 2018 daemon.info odhcpd[2031]: assigning mapped IP (empty list): 192.168.1.100
Tue Apr 17 21:17:49 2018 daemon.warn odhcpd[2031]: received DHCPV4_MSG_DISCOVER from 10:fe:ed:89:1e:02
Tue Apr 17 21:17:49 2018 daemon.warn odhcpd[2031]: sending DHCPV4_MSG_OFFER to 10:fe:ed:89:1e:02 - 192.168.1.100
Tue Apr 17 21:17:49 2018 daemon.debug odhcpd[2031]: Received 300 Bytes from 0.0.0.0%br-lan
Tue Apr 17 21:17:49 2018 daemon.notice odhcpd[2031]: Got DHCPv4 request
Tue Apr 17 21:17:49 2018 daemon.warn odhcpd[2031]: received DHCPV4_MSG_REQUEST from 10:fe:ed:89:1e:02
Tue Apr 17 21:17:49 2018 daemon.warn odhcpd[2031]: sending DHCPV4_MSG_ACK to 10:fe:ed:89:1e:02 - 192.168.1.100

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