Page 1 of 1

DHCP question

Posted: Sun Jan 09, 2011 11:42 am
by Hanco
The DHCP server in the HDA can be stopped by doing this:

* First turn on Advanced Settings, under Setup --> Settings
* Then go to the Settings --> Servers
* Once there, find the DHCP Server and unselect both "Watchdog. DHCP Server is being monitored 24x7" and "Start at Boot time"
* Then stop it. It will be stopped forever
(My bold above in that last line)

When it says "Forever" is it really "Forever"? I have now disabled the router DHCP but when I restart my Amahi box, the DHCP server is not running and I don't seem to be able to find out how to sort this. If I recall, part of the install process had me using a text editor when I wanted the DHCP server not to run on the box (until I had worked out the router functionality to disable it!)

How do I "get back to how it was" (without a complete re-install)?

D'oh. Newbies eh?!

Re: DHCP question

Posted: Sun Jan 09, 2011 8:05 pm
by rgmhtt
You go back to Advance settings and turn it back on.

Or:

chkconfig dhcpd on
service dhcpd start

To see all of the services running on your system (for the 'fun' of it):

chkconfig --list

For example, if there are not Apple systems on your network you can stop avahi-daemon. Do you need bluetooth? Probably those are the only 'extras'.

Re: DHCP question

Posted: Mon Jan 10, 2011 9:00 am
by Hanco
You go back to Advance settings and turn it back on.

Or:

chkconfig dhcpd on
service dhcpd start

To see all of the services running on your system (for the 'fun' of it):

chkconfig --list

For example, if there are not Apple systems on your network you can stop avahi-daemon. Do you need bluetooth? Probably those are the only 'extras'.
Thank you. I did not know the chkconfig --list command.

I did know how to turn it on by the Advanced Settings... BUT why does it need me to turn it back on each time I re-power the box? I think I've managed to "permanently set it to off" - Is that possible?!?

Cheers

Re: DHCP question

Posted: Mon Jan 10, 2011 12:08 pm
by lou1z
have a look at chkconfig --list to see what levels it is set at.
common levels are 3 (no gui just the shell) or 5 (gui or running as desktop)

chkconfig --level 35 dhcpd on

will turn in on permanently for runlevel 3 & 5.
if it's not turning on, then there's another reason (possibly another dhcp server on the network? eg router)
you need to check the logs to see why if it's not.

Re: DHCP question

Posted: Mon Jan 10, 2011 8:33 pm
by rgmhtt
I did know how to turn it on by the Advanced Settings... BUT why does it need me to turn it back on each time I re-power the box? I think I've managed to "permanently set it to off" - Is that possible?!?

Cheers
After boot check with --list is 3 & 5 set to on? If not something strange is happening...

Run

service dhcpd status

If dhcpd is NOT running, then it crashed due to a config problem? Does

service dhcpd start

Get it going or give an error? What does your /etc/dhcp/dhcpd.conf look like?

Re: DHCP question

Posted: Mon Jan 10, 2011 9:06 pm
by cpg
Setup > Settings > Servers

enable "Start at boot time"

enable "Watchdog"

if it does not start then, you have a whole different problem. if this is a 100% stock configuration, you may have to file a bug.