How to add option60 into dhcp client?
I tried to run dhcpcd in a shell, and the -i option can add the option 60.
But how to call the dhcpcd in my app?
See also questions close to this topic
Thoughts on needed subnet expansions
I work for a non-profit with some slightly more antiquated hardware. We have 3 locations, about 700 devices across them. Right now our locations are set up as:
Location 1 (Main) - /23 with a DHCP server. Range is 10.0.0.0 - 10.0.1.254
Location 2 - /24 with a DHCP server. Range is 192.168.0.0 - 192.168.0.254
Location 3 - /24 without a DHCP server. This location has the subnet issued by our ISP and all devices are pointed back to our primary and secondary DNS servers via adapter management (often via scripts).
We are rolling out VoIP at the end of the month and I'm not confident we have the necessary IPs to handle the incoming hardware at Location 1 and Location 2. I'm looking for thoughts on the following:
Moving Location 1 to a /22. This location has a ton of static devices (DVRs, Routers, Printers, reserved leases, most of our servers, etc). This would be quite a bit of work.
Moving Location 2 to a /23. This has fewer static devices and probably wouldn't be as difficult.
Here are my questions / issues that are causing me to be conflicted:
I actually don't know how many open IP addresses we have at Location 1. Unfortunately, my predecessor didn't use reservations, so I have no way to see all of the static devices on the network outside of just..knowing. In addition, the scope was set to only 150 addresses of the potential 512, but it was set in the middle of the subnet and I can't figure out why.
I think it would be nice to have all of the VoIP phones on their own cluster of 256, even if I don't NEED the addresses, maybe I should expand and scope it anyway?
I know that /24 has always been the ideal scenario for a network, but anymore is this really necessary? Does anyone see any issues with /22?
We don't have vLANs and our switches are dummy switches. I've been pushing for managed (or partially managed) switches at the minimum, but they aren't approved yet, so vLANs aren't really an option right now.
A final note, all of our servers are physical devices and not virtualized. Again, working on approval, but hard to come by with tight budget constraints. This means that changes are not easily snapshotted or restored from backup.
Anyone have some thoughts or suggestions on what you would recommend?
How do I send a UDP hardware unicast on Windows?
I am developing a DHCP server in Rust.
The DHCP server must be able to send hardware unicasts to clients with unconfigured interfaces using their MAC address and the newly assigned (but not configured yet) IP address.
I have solved it on Linux by injecting an ARP entry before sending a packet, and on FreeBSD and Mac OS with BPF.
As long as there are few open-source DHCP servers for Windows, I cannot know how to send a hardware unicast properly.
I have tried the
CreateIpNetEntryWinAPI function, but for some reason it blocks for 3 seconds exactly and then returns the success code with no effect (I do not see the anticipated entry neither with
For now it is solved by calling subprocess
netsh ip interface set neighbors ..., but such a solution does not fit my project will.
How do I send a UDP hardware unicast on Windows properly?
DHCP network settings
I have a Synology NAS box (IP 192.168.8.104). I cannot seem to access it. I used to be able to access it from my Xbox connected to the same T Link router. Now, since I got a new router, the Xbox cannot see it.
Also, when I use my MacBook, in Finder I can see the Nas box, and can connect to it with the username and password.
However when entering 192.168.8.104:5000 in a browser, the response times out.
Looking at my DHCP settings in the router, the start IP is 184.108.40.206 and end 192.168.0.199. The range is outside the NAS IP. I cannot change there to a range fitting the NAS IP.
Any ideas please? How can I get a browser and/or Xbox to connect.