Solved

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

Posted on 2008-10-20
7
1,849 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
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 
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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

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…
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 get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

747 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now