Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question
add comment

3 Answers

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.

share|improve this answer
    
Another answer occurred which is different from yours. I will wait and see till new insights come up. –  Alan Oct 3 '13 at 8:12
    
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 Oct 8 '13 at 9:31
add comment

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.

share|improve this answer
    
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 Oct 3 '13 at 8:42
add comment

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.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.