Solved

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

Posted on 2008-10-20
7
1,868 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 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
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 
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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
ignore other .htaccess 2 69
linux - yum package installation issue 2 107
Linux 3 33
SMTP log file for IMSVA 5 28
Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

740 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