Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


fran1942

82 posts

Master Geek

Trusted

#151770 4-Sep-2014 15:16
Send private message

Hello, if I have a bunch of printers with static IP addresses, and I establish a new DHCP server, how does the DHCP server realise that those static IP's are already in use ?
Does the DHCP server send out a query on the network before it allocates addresses ?

Thanks for any info.

Create new topic
kiwipeter
211 posts

Master Geek
+1 received by user: 27

ID Verified

  #1121904 4-Sep-2014 15:19
Send private message

Hi,

Nope, the DHCP server will not take any notice - you will need to reserve those addresses from the new DHCP scope otherwise you'll get dupe IP issues.

Cheers



Dynamic
4015 posts

Uber Geek
+1 received by user: 1851

ID Verified
Trusted
Lifetime subscriber

  #1121907 4-Sep-2014 15:20
Send private message

If you are using the same operating system and DHCP software, you should be able to export and import the settings.

Some DHCP Servers can be configured to test (ping) an IP address before handing it out.

Otherwise, just enter these static IP addresses as a Reservation or an Exclusion manually into your DHCP software.




“Don't believe anything you read on the net. Except this. Well, including this, I suppose.” Douglas Adams


tardtasticx
3084 posts

Uber Geek
+1 received by user: 483


  #1121908 4-Sep-2014 15:21
Send private message

We've just covered DHCP servers in one of my lectures this week actually :D

You'd simply add the range of static IPs currently issued, into an Exclusion on the DHCP server. That way it won't issue those IPs to anything. You do the same thing to ensure servers and the like have a static IP.



stefankrz
20 posts

Geek
+1 received by user: 2


  #1121946 4-Sep-2014 15:48
Send private message

initially the dhcp server wont know that the ip addresses have been assigned statically to a device. it will offer the address to the client that that is requesting an address. the client should then test this address and if it finds it is in use it will send a DHCPDECLINE message back to the dhcp server. the client will then start the request for an ip address again. the dhcp server should then mark the declined ip address as a bad address and not try and give it out anymore

this is how it should work in theory.

you could make life simpler by setting the start of range of the addresses being handed out above the ip addresses of the printers. this will also allow you to manually assign other ip addresses in the low range you know is always available

eXDee
4033 posts

Uber Geek
+1 received by user: 1070

Trusted

  #1122051 4-Sep-2014 18:20
Send private message

Either put your static devices outside of the DHCP scope (but still within the subnet), or create reservations. Nice thing about reservations is that if you reset the configuration on those printers, itll just jump straight back on the right IP.

zaptor
745 posts

Ultimate Geek
+1 received by user: 39


  #1122063 4-Sep-2014 18:42
Send private message

If you have to use static IP's for your printers it's probably better that you set them up in your DHCP server (mapping via mac address) instead of hard-coding on each individual printer.
Otherwise, would be a wee bit of an administrative nightmare I would've thought.

 
 
 

Shop on-line at New World now for your groceries (affiliate link).
nathan
5695 posts

Uber Geek
+1 received by user: 1630
Inactive user


  #1122112 4-Sep-2014 19:53
Send private message

some DHCP servers have the option to test if an address is already in use before it hands out an address that would conflict.  Windows Server DHCP comes to mind.

Glassboy
851 posts

Ultimate Geek
+1 received by user: 251

ID Verified
Trusted

  #1122130 4-Sep-2014 20:36
Send private message

nathan: some DHCP servers have the option to test if an address is already in use before it hands out an address that would conflict.  Windows Server DHCP comes to mind.


Circa Windows Server 2008 yes :-)

Create new topic








Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.