Koozali.org: home of the SME Server

DHCP problem?

Offline JoshuaR

  • ****
  • 125
  • +0/-0
    • Tech-Eze
DHCP problem?
« on: June 22, 2007, 04:39:06 AM »
Hi guys,
   I've searched around a bit but I can't figure out this problem (not that surprising--newbie).  Anyway, I have SME 7 set up as a private server & gateway.  My network works fine and all the workstations can access the net; the problem is that after a number of hours (I usually notice it overnight), my client machines cannot retrieve an IP via the DHCP.  They work at first though...  If I restart the server, then the client machines can acquire the IPs again and everything works fine.  I don't know what to do.  My first guess is something to do with DHCP lease, but I really don't know...:cry:

If anyone could help it'd be really appreciated.
Life's tragedy is that we get old too soon, and wise too late...

Offline mmccarn

  • *
  • 2,657
  • +10/-0
DHCP problem?
« Reply #1 on: June 22, 2007, 04:55:26 AM »
Look at /var/log/dhcpd/current to see what is happening.

Look for some other device on the network running DHCP - a home router, a windows system with 'internet connection sharing' turned on, something like that -- most DHCP servers will turn themselves off if they sense another server on the same network segment.

Offline JoshuaR

  • ****
  • 125
  • +0/-0
    • Tech-Eze
DHCP problem?
« Reply #2 on: June 22, 2007, 05:49:29 AM »
thanks mmccarn, I'll give that a try and see what goes
Life's tragedy is that we get old too soon, and wise too late...

Offline TrevorB

  • *
  • 259
  • +0/-0
    • http://www.batley.id.au
Re: DHCP problem?
« Reply #3 on: June 22, 2007, 08:12:41 AM »
Quote from: "JoshuaR"
My network works fine and all the workstations can access the net; the problem is that after a number of hours (I usually notice it overnight), my client machines cannot retrieve an IP via the DHCP.  They work at first though...  If I restart the server, then the client machines can acquire the IPs again and everything works fine.
What contribs/other apps. have you loaded?

Also look at what is running (eg. top - and see if anything is taking a lot of cpu).

I have had problems when dhcpd keeps trying to reload and seemed to think that it had 0 allowed addresses - and just kept trying. Removed sme7admin and haven't had a problem since (not necessarily sme7admin's fault, but I haven't been able to track down what might have clashed....).

Good Luck
Trevor B

Offline JoshuaR

  • ****
  • 125
  • +0/-0
    • Tech-Eze
DHCP problem?
« Reply #4 on: June 22, 2007, 12:03:47 PM »
Quote
What contribs/other apps. have you loaded?


None, just what installed default.

I looked up the DHCPD log and it at one point it says "network down" but I don't know what caused that...

Also DHCPCD doesn't start by default, but to be perfectly honest I don't know what it is :oops: , I just assumed it was some superfluous DHCP add-on.

I guess I'll have to look that up  :roll:
Life's tragedy is that we get old too soon, and wise too late...

Offline TrevorB

  • *
  • 259
  • +0/-0
    • http://www.batley.id.au
DHCP problem?
« Reply #5 on: June 22, 2007, 12:37:52 PM »
Quote from: "JoshuaR"
I looked up the DHCPD log and it at one point it says "network down" but I don't know what caused that...

Also DHCPCD doesn't start by default, but to be perfectly honest I don't know what it is :oops: , I just assumed it was some superfluous DHCP add-on.
dhcpcd is your server getting it's IP (will only be running if you selected 'Use DHCP <whatever>' when configuring your external network).

dhcpd is the dhcp daemon which supplies IP addresses to the workstations on your network. That's the log you need to be looking at...

Trevor B  :)

Offline JoshuaR

  • ****
  • 125
  • +0/-0
    • Tech-Eze
DHCP problem?
« Reply #6 on: June 22, 2007, 12:58:47 PM »
Quote
dhcpd is the dhcp daemon which supplies IP addresses to the workstations on your network. That's the log you need to be looking at...

hmm, that's where i was looking.  The only thing that looked out of place was
Quote
2007-06-21 08:11:30.431303500 receive_packet failed on eth0: Network is down


I don't know how to isolate what caused that, but my network has been running all day no probs, so I'll see in the morning if it continues working...
Life's tragedy is that we get old too soon, and wise too late...

Offline Stefano

  • *
  • 10,894
  • +3/-0
DHCP problem?
« Reply #7 on: June 22, 2007, 02:17:22 PM »
Quote from: "JoshuaR"
Quote
dhcpd is the dhcp daemon which supplies IP addresses to the workstations on your network. That's the log you need to be looking at...

hmm, that's where i was looking.  The only thing that looked out of place was
Quote
2007-06-21 08:11:30.431303500 receive_packet failed on eth0: Network is down


I don't know how to isolate what caused that, but my network has been running all day no probs, so I'll see in the morning if it continues working...


sounds like eth go to sleep mode..

my 2€c

Ciao

Stefano

Offline JoshuaR

  • ****
  • 125
  • +0/-0
    • Tech-Eze
DHCP problem?
« Reply #8 on: June 23, 2007, 02:12:21 AM »
Quote
sounds like eth go to sleep mode


is that easy/possible to fix?  :oops:
Life's tragedy is that we get old too soon, and wise too late...