PDA

View Full Version : [ubuntu] dhcp configuration



ub007
June 20th, 2008, 12:58 PM
hello,

i just installed a dhcp server and configured the /etc/dhcpd.conf file.

default-lease-time 600;
max-lease-time 7200;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.1.255;
option routers 192.168.1.254;

subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.10 192.168.1.100;
range 192.168.1.150 192.168.1.200;
}

its a stand alone server and havent connected any clients to it.How do i test whether the configuration works fine?

cheers,
David

Het Irv
June 20th, 2008, 02:34 PM
I don't know if you can, DHCP is used for assigning IP addresses to computers in a network... so, to test you would need to set up a computer to look at your new server and see if it gets an IP address correctly. Is the server always going to be standalone? If so DHCP seems kinda pointless...

the_doc
June 20th, 2008, 02:36 PM
Agreed, I think you're going to have to hook up at least one node to test the DHCP configuration.

ub007
June 23rd, 2008, 08:15 AM
Hi,
yep,got the client PCs ready and a switch.
I tried configuring DHCP and finally got it to start(used random IPs and subnets),but its not yet functional.I've got 4 PCs(installed ubuntu server on one of them) and a switch.I'vent configured DNS yet.How do i set up this network?I wish to give a static IP to the server and other PCs to get their IPs via dhcp.could anyone help me with the condiguration....?
What steps to follow,what IPs to put and so on....

Cheers,
Davis

Het Irv
June 23rd, 2008, 03:16 PM
In the server you should be able to set a static IP on the server itself, (sorry I only know the GUI way to do this). If you set the Default gateway to the Server's IP address. That should get you working.