How to retain a unique IP on a client with a static IP in a DHCP subnet?

1

When I say DHCP subnet I mean that the clients are intended to receive their network configuration via DHCP, not statically.


Let's observe the following situation:

I set up an IP address statically, and set the correct subnet and gateway. I'm presuming that, since the IP on the client is static, the client won't broadcast the DHCP discover. That is why the client doesn't know about the existence of the DHCP sever, and vice versa.

What is the mechanism which prevents the DHCP server to assign the address from the statically set client to some new client which asks for an Ip address?

TheMeaningfulEngineer

Posted 2013-10-02T07:04:34.513

Reputation: 235

Answers

9

In this scenario there's nothing that prevents IP conflicts from happening. For this exact situation there's an option to define reservations in the DHCP server, or you can set your static IP outside the DHCP scope.

EliadTech

Posted 2013-10-02T07:04:34.513

Reputation: 2 076

Another answer occurred which is different from yours. I will wait and see till new insights come up. – TheMeaningfulEngineer – 2013-10-03T08:12:58.920

I have my DHCP server configured to allocate specific IP addresses to specific MAC addresses so that all my family's phones and laptops always keep the same IP addresses. Makes firewall rules and usage reporting a little easier. – Adrian Pronk – 2013-10-08T09:31:05.233

1

http://www.ietf.org/rfc/rfc2131.txt

3.1.2

When allocating a new address, servers SHOULD check that the offered network address is not already in use; e.g., the server may probe the offered address with an ICMP Echo Request.

3.1.5

If the client detects that the address is already in use (e.g., through the use of ARP), the client MUST send a DHCPDECLINE message to the server and restarts the configuration process.

user1602017

Posted 2013-10-02T07:04:34.513

Reputation: 121

That might be what the IETF rules says, but in reality I've never seen (or heard of) a behavior like this that prevents IP conflicts. – EliadTech – 2013-10-03T08:42:01.580

1

you have two option here.

1) Add the required IP in your DHCP reservation list, this will enable to get same IP always for the client from DHCP server. 2) Set a Static IP in your client machine , but the same time add the assigned IP in the exclusion list of the server.This is for restricting the server from assigning the same IP to any client.

rejee

Posted 2013-10-02T07:04:34.513

Reputation: 11