Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Ip static with dhcp server for all network users

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
sila
Posts: 2
Joined: 2017-05-16 09:55

Ip static with dhcp server for all network users

#1 Post by sila »

hello,
we would like to set up a dhcp server under debian jessie.
We would like this dhcp server to be able to always assign the same ip address for each computer in the lan
Our networks has about 1000 computers (desktop and laptop)
is this possible with dhcp server?

thanks for help

User avatar
debiman
Posts: 3063
Joined: 2013-03-12 07:18

Re: Ip static with dhcp server for all network users

#2 Post by debiman »

probably yes.
show us what you came up with so far, i'm sure we can help.
but we won't do it for you.

User avatar
GarryRicketson
Posts: 5644
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: Ip static with dhcp server for all network users

#3 Post by GarryRicketson »

Might help to get started:
https://wiki.debian.org/DHCP_Server

sila
Posts: 2
Joined: 2017-05-16 09:55

Re: Ip static with dhcp server for all network users

#4 Post by sila »

We have in the configuration file dhcpd.conf :

subnet 172.16.0.0 netmask 255.255.0.0{
range 172.16.0.20 172.16.4.255;
option domain-name-servers 172.16.0.3;
option domain-name "example.org";
option routers 172.16.0.1;
option broadcast-address 172.16.255.255;
default-lease-time 604800;
max-lease-time 604800;
}


host host1 {
hardware ethernet x:x:x:x:x:x;
fixed-address 172.16.0.23
}


we defined lease-time to 7 days
But it is possible that a customer may apply for a lease with a duration less than that defined and consequently the dhcp can assign to him a ip address different from that which he gave to him before.
We would like the connected clients to always keep the same ip address
We can not do that with fixed-address because we have a lot of machines (More than 1000 between desktop and laptop) and we do not know their mac addresses.

User avatar
GarryRicketson
Posts: 5644
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: Ip static with dhcp server for all network users

#5 Post by GarryRicketson »

I tried doing a search also using this as the key words:

Code: Select all

 How to make dhcp server  always assign the same ip address for each computer in the lan 
How to make dhcp server always assign the same ip address for each computer in the lan
One hit , -------------------------------------------
http://documentation.netgear.com/dg834n ... d.7.3.html
but it is for "DG834N RangeMax NEXT Wireless ADSL2+ Modem Router Reference Manual " , It might serve as a example, but the main point is we would
need to know more specific details, on what brand, type of router or routers , are being used, and your best option might be to check with the manufactures manual for details
on configuring it.

This might be of use:
http://lifehacker.com/5822605/how-to-se ... ress-again
Every router is a bit different, but in general, here's how to set it up:
There is more information in the various results of the search I show above, the instructions a different, depending on the type of router, etc,...

Post Reply