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

Configure the DHCP server to hand out unchanging IP addresses to specific MAC addresses #1279

Closed
ajlennon opened this issue Oct 14, 2019 · 10 comments

Comments

@ajlennon
Copy link
Contributor

@ajlennon ajlennon commented Oct 14, 2019

There's been a lot of discussion recently around m-DNS, ZeroConf, Bonhour or whatever we want to call it. Whatever the underlying issues they seem to be ongoing.

As a fall-back (e.g. for the Creality Printers) we've been printing the IP address alongside the m-DNS domain name.

Unfortunately these IP addresses keep changing.

There should be a feature in the DHCP server I would think that allows us to create a list of DHCP assigned IP addresses which don't change, and are handed out to specific devices based on the MAC address they report when obtaining an IP address via DHCP.

Assuming we don't already do this and I haven't missed it, can we maintain a list of such devices and their assigned IPs somewhere on the Wiki?

@ajlennon ajlennon changed the title Configure the DHCP server to hand out static IP addresses to specific MAC addresses Configure the DHCP server to hand out unchanging IP addresses to specific MAC addresses Oct 14, 2019
@skos-ninja

This comment has been minimized.

Copy link

@skos-ninja skos-ninja commented Oct 14, 2019

Yes we can issue static IP's on request.

We also maintain a list that is managed by @DoESLiverpool/networking who can see this list however it is kept private right now as it doesn't seem appropriate to publically list devices with their IP's on the internet

@johnmckerrell

This comment has been minimized.

Copy link
Member

@johnmckerrell johnmckerrell commented Oct 14, 2019

@ajlennon

This comment has been minimized.

Copy link
Contributor Author

@ajlennon ajlennon commented Oct 14, 2019

Just realised. This is public! Shall forward the list directly :-D

@amcewen

This comment has been minimized.

Copy link
Member

@amcewen amcewen commented Oct 14, 2019

It'd be nice if the Pi at mqtt.local was actually set to use its allocated IP address too :-) It's been sat on 10.0.30.194 for a while now...

@MatthewCroughan

This comment has been minimized.

Copy link

@MatthewCroughan MatthewCroughan commented Oct 14, 2019

@ajlennon The issue from #1210 regarding mDNS I think is still that the Ubiquiti feature John found that essentially caches the last DNS result from a given piece of hardware.

Register client hostname from DHCP requests in USG DNS forwarder: ON/OFF
Which I found in Settings -> Services -> DHCP -> DHCP Server

The reason I think this is because even if two devices are running mDNS, they will not discover eachother if their .localdomain (dhcp hostname discovery) has been preferred by this ubiquiti feature.

So, it's a race condition, wherein regular DNS is sometimes being preferred, making things subservient to the router's domain (.localdomain or otherwise) or the device's configuration in /etc/hosts. Also an issue is that sometimes the previous hostnames used on a given dhcp lease.

@MatthewCroughan

This comment has been minimized.

Copy link

@MatthewCroughan MatthewCroughan commented Oct 14, 2019

So if I have two Pi's running avahi-daemon, it will be up in the air whether their hostname resolves .localdomain or .local because this feature is preferring .localdomain some of the time. I don't know if this is simply when the router is discovering it, or how the feature works, but this is something I've observed.

@johnmckerrell

This comment has been minimized.

Copy link
Member

@johnmckerrell johnmckerrell commented Oct 14, 2019

These have now been configured, I'm afraid I've changed the IP addresses for the 3D printers but they should be easier to remember/transcribe now.

@johnmckerrell

This comment has been minimized.

Copy link
Member

@johnmckerrell johnmckerrell commented Oct 14, 2019

(I haven't touched the 3D printers themselves though so I believe they're still operating on their old IP addresses for now)

@ajlennon

This comment has been minimized.

Copy link
Contributor Author

@ajlennon ajlennon commented Oct 14, 2019

@MatthewCroughan given these IP addresses won't change again would it be possible for you to update those lovely little stickers you did? If you do make the change could you make the text bigger for #grumpyoldengineers ?

@MatthewCroughan

This comment has been minimized.

Copy link

@MatthewCroughan MatthewCroughan commented Oct 14, 2019

@ajlennon really we need a better, larger display for them. Maybe made out of laser cut acrylic? All in all we need a bigger label, and we're limited in that regard. I tried to put as much info on them as possible, like cura instructions. Does anyone have any suggestions for making a bigger label?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants
You can’t perform that action at this time.