You are not logged in.
Hi guys,
I'm trying to set up an DHCP server which assigns different public ip address with /32 netmask (which I got from my provider) to a specific client. How can I do that?
Following example:
My DHCP server hast address 10.0.0.254 and the client should get an address which is in another network, let's say 50.0.0.1.
subnet 10.0.0.254 netmask 255.255.255.255 {
host test {
hardware ethernet 12:34:56:78:9A:BC;
fixed-address 50.0.0.1;
}
}
The dhcp server won't start if the subnet block isn't defined. The server detects that there is a client which asks for an ip address but the server says "no free leases".
Any suggestions?
Last edited by wulfspider (2017-06-03 01:14:11)
Offline
/32 means 1 IP address in the range - the DHCP server takes 1, meaning zero remaining for any clients of the DHCP server. You probably mean a /24 instead, which is range 0-255.
Offline
You probably mean a /24 instead, which is range 0-255.
... Of which 1 through 254 are usable. All zeros (0) and all ones (255) have special meanings and cannot be used has a host address.
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
Things are a bit more complicated then that ,
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline