Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Centos v.5, DHCP server running but not responding to clients

Posted on 2008-10-20
7
Medium Priority
?
1,914 Views
Last Modified: 2013-12-16
Hey All,

So Ive recently installed a Centos v.5 server (the frontend of a ROCKs cluster for those of you familiar with it) however, the DHCP server is not functioning.

When I boot a client who attempts to get a DHCP address from the server, the clients packets reach the server (determined with tcpdump) however the server never responds with a packet back to the client with an address.

The dhcpd daemon is running, there appears to be nothing unusual with the /etc/dhcpd.conf file, and I cant find any errors in any logs (although I may not be looking in the right place).

Any suggestions?

Thanks!
0
Comment
Question by:Mike R.
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
7 Comments
 
LVL 10

Accepted Solution

by:
kyleb84 earned 1000 total points
ID: 22763622
Then do a "tail -f /var/log/messages" and watch for DHCP requests, if the DHCP daemon is running it'll print when a client makes a request.

If nothing comes up, please do an "iptables-save > iptables.cfg" and post that file "iptables.cfg"

If your DHCP server isn't a gateway, do a
- "service iptables stop"
- "chkconfig iptables off"
0
 
LVL 10

Expert Comment

by:kyleb84
ID: 22763630
Also if you do a:
cat /var/log/messages | grep dhcpd
0
 
LVL 10

Expert Comment

by:kyleb84
ID: 22763644
sorry accidentally click submit...

If you do the above, try copy the contents of it's output and paste it in here.
0
Plug and play, no additional software required!

The ATEN UE3310 USB3.1 Gen1 Extender Cable allows users to extend the distance between the computer and USB devices up to 10 m (33 ft). The UE3310 is a high-quality, cost-effective solution for professional environments such as hospitals, factories and business facilities.

 
LVL 3

Author Comment

by:Mike R.
ID: 22769705
So, here's some interesting tidbits from /var/log/messages...

[root@azumaseki log]# grep -i dhcp ./messages
Oct 20 14:39:26 azumaseki dhcpd: DHCPDISCOVER from 00:1b:fc:5f:c6:6c via eth0: network 10/8: no free leases
Oct 20 14:43:03 azumaseki dhcpd: DHCPDISCOVER from 00:1b:fc:5f:c6:6c via eth0: network 10/8: no free leases
Oct 20 21:48:15 azumaseki sshd[17390]: pam_succeed_if(sshd:auth): error retrieving information about user dhcp

So, the requests are getting to the host, but it doesn't seem to think there are free leases. How do I correct this.

I'm not sure if the PAM authentication is related...?

Thanks!
0
 
LVL 1

Assisted Solution

by:Static-shock
Static-shock earned 1000 total points
ID: 22772010
From the message it seems your dhcp pool is all been allocated. How long are you leases and whats the range of IP address in the pool.

Here is an example of mine it will allocate ip address 192.168.1.60-90.
subnet 192.168.1.0 netmask 255.255.255.0 {
  range 192.168.1.60 192.168.1.90;
  option broadcast-address 192.168.1.255;
  #option routers ourrouter.thatisanexample.com;
}

Here is how you set the lease time
default-lease-time 3600;
max-lease-time 7200;

Hope this helps.
Cheers
0
 
LVL 1

Expert Comment

by:Static-shock
ID: 22772034
Regardless ether increase your pool or turn down the lease time.

Then have your windows client do a "ipconfig /release" and "ipconfig /renew"

After restarting your dhcpd server of course /etc/init.d/dhcpd restart

Hope this helps.
Cheers
0
 
LVL 3

Author Comment

by:Mike R.
ID: 22788966
Thanks for all the input. Actually, as it turns out, it was a ROCKs 5 specific issue. Normally ROCKs requires there to be a /home/install directory...but in v5 they changed that directory location and forgot to tell the rest of the system :-)

I manually created a link for /home/instal, and now it's working fine.

Thanks again for the help and points to everyone for effort :-)
M
0

Featured Post

Stressed Out?

Watch some penguins on the livecam!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Suggested Courses

721 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question