Ip static with dhcp server for all network users

Kernels & Hardware, configuring network, installing services

Ip static with dhcp server for all network users

Postby sila » 2017-05-16 10:14

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
sila
 
Posts: 2
Joined: 2017-05-16 09:55

Re: Ip static with dhcp server for all network users

Postby debiman » 2017-05-17 06:08

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
debiman
 
Posts: 1633
Joined: 2013-03-12 07:18

Re: Ip static with dhcp server for all network users

Postby GarryRicketson » 2017-05-17 08:47

Might help to get started:
https://wiki.debian.org/DHCP_Server
"What we expect you have already Done"

Before doing anything, read the Debian documentation:
Debian Documentation
How to ask the smart way
Debian Foro Español
======================
For the Birds
User avatar
GarryRicketson
 
Posts: 4477
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: Ip static with dhcp server for all network users

Postby sila » 2017-05-17 10:09

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.
sila
 
Posts: 2
Joined: 2017-05-16 09:55

Re: Ip static with dhcp server for all network users

Postby GarryRicketson » 2017-05-17 12:54

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/enu/202-10197-02/Advanced.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-set-up-dhcp-reservations-so-you-never-have-to-check-an-ip-address-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,...
"What we expect you have already Done"

Before doing anything, read the Debian documentation:
Debian Documentation
How to ask the smart way
Debian Foro Español
======================
For the Birds
User avatar
GarryRicketson
 
Posts: 4477
Joined: 2015-01-20 22:16
Location: Durango, Mexico


Return to System configuration

Who is online

Users browsing this forum: No registered users and 5 guests

fashionable