DHCP question

Hanco
Posts: 5
Joined: Sun Jan 09, 2011 11:37 am

DHCP question

Postby Hanco » Sun Jan 09, 2011 11:42 am

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?!

User avatar
rgmhtt
Posts: 421
Joined: Sun Jan 11, 2009 9:26 am

Re: DHCP question

Postby rgmhtt » Sun Jan 09, 2011 8:05 pm

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'.

Hanco
Posts: 5
Joined: Sun Jan 09, 2011 11:37 am

Re: DHCP question

Postby Hanco » Mon Jan 10, 2011 9:00 am

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

User avatar
lou1z
Posts: 206
Joined: Fri Jul 17, 2009 1:58 am

Re: DHCP question

Postby lou1z » Mon Jan 10, 2011 12:08 pm

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.

User avatar
rgmhtt
Posts: 421
Joined: Sun Jan 11, 2009 9:26 am

Re: DHCP question

Postby rgmhtt » Mon Jan 10, 2011 8:33 pm

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?

User avatar
cpg
Administrator
Posts: 2618
Joined: Wed Dec 03, 2008 7:40 am
Contact:

Re: DHCP question

Postby cpg » Mon Jan 10, 2011 9:06 pm

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.
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 8GB RAM, 1TBx2+3TBx1

Who is online

Users browsing this forum: No registered users and 12 guests