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

dhcp server stops listening for messages #60

Open
isarantis opened this issue Sep 25, 2019 · 0 comments
Open

dhcp server stops listening for messages #60

isarantis opened this issue Sep 25, 2019 · 0 comments

Comments

@isarantis
Copy link

isarantis commented Sep 25, 2019

Hello sorry for the generic title but my issue is bit strange.
-The goal
In my network i want some clients getting (static like) ip from my dhcp server to leverage network booting, and the rest ( unidentified ) clients to get an ip from my dynamic range. The static bindings are outside of this range driven by a config file that constantly changes (thus the function).
-The config
I have created a dhcp server and im giving addresses with this example config:
{ range: [ 'xxx.xxx.xxx.29', 'xxx.xxx.xxx.30' ], static: [Function: bound ], dns: [ '1.1.1.1', '8.8.8.8' ], netmask: '255.255.255.192', router: [ 'xxx.xxx.xxx.62' ], broadcast: 'xxx.xxx.xxx.63', bootFile: 'sarantis.kpxe', tftpServer: 'xxx.xxx.xxx', server: 'xxx.xxx.xxx.25', randomIP: true }
-The issue
first of all i get alot this error that crashes the server on its first discovery
`projectRoot\node_modules\dhcp\lib\dhcp.js:302
const ip = this._state[oldestMac].address;
^

TypeError: Cannot read property 'address' of undefined`
also i am having an issue that after some time the server stops responding or getting (tested via listeners on 'message') without any error or exception.
I managed to narrow it down that if i give away all the dynamic ips from the range dhcp-server stops working for both dynamic and static-like clients.

If you have any ideas on how i could probably solve this issue i would like to check it out.
Thank in advance.

Update:
Maybe i have managed to narrow down the first issue: it happens when the first discovery is on windows with static-like ip ( 70% sure)

@isarantis isarantis changed the title dhcp server not listening after some point dhcp server stops listening for messages Sep 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant