Link to home
Start Free TrialLog in
Avatar of matt51
matt51

asked on

DHCP Server does not respond to requests

Hi.  I'm running Redhat 7.1.  I Installed the DHCPD RPM that came with redhat.  I created the dhcpd.conf file, by following the directions on this site: http://www.europe.redhat.com/documentation/mini-HOWTO/DHCP/x369.php3#DHCPSERVER

I also did "route add 255.255.255.0 dev eth1".  

I created the lease file, as instructed.  I then started the server using "/usr/sbin/dhcpd eth1 -d -f".

I then connected the linuxbox to a windows 98 computer, but it would not accept an address, and nothing came up on the linux machines screen indicating that it ever received one.  If anyone has any ideas, they would be greatly appreciated.
Avatar of jlevie
jlevie

How about letting us see your dhcp config file. Also your route statement is wrong. It should be "route add 255.255.255.255 dev eth1" You may also want to be sure that the requests from the win98 box are reaching the server. Check for that by running "tcpdump -n -i eth1" and look for the request packets.

You can also check the /var/log/messages file for any dhcp related failure/problem messages.

Good Luck

Tarik
why don't you use linuxconf's GUI to set up dhcp
it may ease your problem.

--Vijayapal
Avatar of matt51

ASKER

This is my dhcpd.conf:

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;
option domain-name-servers xxx.xxx.xxx.xxx;
option domain-name "mydomain.org";

subnet 192.168.1.0 netmask 255.255.255.0 {
   range 192.168.1.10 192.168.1.250;
}

I was mistakened I did in fact use the correct route command: "route add 255.255.255.0 dev eth1"


I responce the the linuxconf gui.  After I configured the server, I installed that module of linuxconf, and everything was setup correctly.  The server runs without error, it just is not responding to a request form a windows machine.

I apologize for the delay in my responce, so I've raised the points to 200.


Is the dhcpd server running (if you check ps -axu)

I think it may not be running becuase you need to define in your dhcpd.conf file a sunbnet block for all of your subnets (ethernet cards).
Try to add empty subnet blocks to all other subnets that your computer is connected to.  Exmaple

subnet 192.176.21.0 netmask 255.255.255.0 {}

I had once the problem that dhcpd will not normally at startup without defining all subnets (even empty ones)  and I used for a couple of days to run it by hand specifying which eth's to listen to.

Good luck,

Tarik
Avatar of matt51

ASKER

I know the dhcpd server is running because I started it in the forground ("usr/sbin/dhcpd eth1 -d -f"), and with debugging, so all dhcp activity is reported to the console.  It starts up without any errors, it just does not display any requests for IP addresses.


In windows 98 run the command "winipcfg" from Start/Run and try to "Release all" and then "Renew All" ips and see if it works.

Make sure that you also not have a fixed IP in windows 98 in the properties of TCPIP.

Good Luck,

Tarik
ASKER CERTIFIED SOLUTION
Avatar of jlevie
jlevie

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
matt51:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
No comment has been added lately, so it's time to clean up this TA.
I will leave the following recommendation for this question in the Cleanup topic area:

Accept: jlevie {http:#6237811}

Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

majorwoo
EE Cleanup Volunteer