You are not logged in.

#1 2017-06-02 23:49:27

wulfspider
Member
From: Germany, Hesse, Darmstadt
Registered: 2015-05-05
Posts: 13

DHCP how to assign ip addresses with /32 to a specific client?

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

#2 2017-06-03 07:30:10

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: DHCP how to assign ip addresses with /32 to a specific client?

/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

#3 2017-06-03 14:36:51

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,791

Re: DHCP how to assign ip addresses with /32 to a specific client?

brebs wrote:

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

#4 2017-06-03 16:41:36

Lone_Wolf
Forum Moderator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,922

Re: DHCP how to assign ip addresses with /32 to a specific client?

Things are  a bit more complicated then that ,


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

Board footer

Powered by FluxBB