DHCP Help
markd at macports.org
markd at macports.org
Tue May 22 21:10:19 PDT 2007
"Brian Go" <evildrgo at gmail.com> on Tuesday, May 22, 2007 at 8:47 PM -0800
wrote:
>Problem 1.
>the man pages for dhcpd were not installed - how do i fix that.
Hi Brian,
I just installed it and the man pages work for me. Perhaps your man oath
has a problem, but I don't know what to tell you to do.
contents dhcp
[snip]
/opt/local/share/man/cat1/omshell.1.gz
/opt/local/share/man/cat3/dhcpctl.3.gz
/opt/local/share/man/cat3/omapi.3.gz
/opt/local/share/man/cat3/omshell.3.gz
/opt/local/share/man/cat5/dhclient.conf.5.gz
/opt/local/share/man/cat5/dhclient.leases.5.gz
/opt/local/share/man/cat5/dhcp-eval.5.gz
/opt/local/share/man/cat5/dhcp-options.5.gz
/opt/local/share/man/cat5/dhcpd.conf.5.gz
/opt/local/share/man/cat5/dhcpd.leases.5.gz
/opt/local/share/man/cat8/dhclient-script.8.gz
/opt/local/share/man/cat8/dhclient.8.gz
/opt/local/share/man/cat8/dhcpd.8.gz
/opt/local/share/man/cat8/dhcrelay.8.gz
>
>Problem 2.
>Had too add this line into my dhcpd.conf and have no idea what this does.
>#adhock
>ddns-update-style ad-hoc;
You'd have to ask the developers that one.
>
>Problem 3.
>It couldn't find /etc/dhcpd.conf
>I made a symlink to /etc/dhcpd.conf -> /opt/local/etc/dhcp/dhcpd.conf
>and i got a bit further but dhcp still won't start.
>
>Problem 4.
>I need a quick refresher on how to restart services in BSD.
>what's the equivalent of init.d on the mac?
OS X improves upon BSD conventions here. When you install a macport that
has a startupitem, dhcp in this case, you'll see this during install.
---> Creating launchd control script
###########################################################
# A startup item has been generated that will aid in
# starting dhcp with launchd. It is disabled
# by default. Execute the following command to start it,
# and to cause it to launch at startup:
#
# sudo launchctl load -w /Library/LaunchDaemons/org.macports.dhcpd.plist
###########################################################
So you want to do what it says and run this to start it up.
sudo launchctl load -w /Library/LaunchDaemons/org.macports.dhcpd.plist
The statrtupitem, in the case of the dhcp port, specifies the conf file
location at ${prefix}/etc/dhcp/dhcpd.conf. If you don't use the
startupitem, it reverts to default /etc/dhcpd.conf.
Mark
More information about the macports-users
mailing list