Solved

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

Posted on 2008-10-20
7
1,859 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.
  • 3
  • 2
  • 2
7 Comments
 
LVL 10

Accepted Solution

by:
kyleb84 earned 250 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
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

 
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 250 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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
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…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

810 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