Re: Start dhcpd on boot
Chris Hill <[EMAIL PROTECTED]> writes: > On Sun, 16 Jul 2006, Lowell Gilbert wrote: > >> Chris Hill <[EMAIL PROTECTED]> writes: >>> Again, the issue is *not* that dhcpd doesn't work - IT WORKS >>> PERFECTLY. The issue is that the daemon doesn't start when the >>> machine boots. >> >> Can you use the startup script to start it by hand? > > Yes. As I said in the original post, > "After boot I can do a > # /usr/local/etc/rc.d/isc-dhcpd.sh start > ...and the daemon runs and works" Oops. Sorry I missed that. Well, it almost *has* to be something small and silly, then. What you have configured is almost exactly the same as what works for me. My settings come directly out of the pkg-message for the port, and are: # ### recommended settings for running isc-dhcpd dhcpd_enable="YES" dhcpd_flags="-q"# command option(s) dhcpd_conf="/usr/local/etc/dhcpd.conf" # configuration file dhcpd_ifaces="vr0" # ethernet interface(s) dhcpd_withumask="022" # file creation mask Assuming that other scripts from that directory are starting properly, my next step would be to inject debugging output into the script and look at what actually gets printed to the console at boot. If you haven't looked at the existing console output already, that may have some messages that didn't go into any log files. Good luck, and sorry I can't be more helpful. -- Lowell Gilbert, embedded/networking software engineer, Boston area http://be-well.ilk.org/~lowell/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Start dhcpd on boot
Chris Hill wrote: I installed net/isc-dhcp3-server from ports, butI can't seem to persuade it to start when the machine boots. After boot I can do a # /usr/local/etc/rc.d/isc-dhcpd.sh start ...and the daemon runs and works, but I would like for it to start automatically on boot, with no manual intervention. Any thoughts on how to do this? In /etc/rc.conf I have dhcpd_enable="YES" # Run the DHCP daemon... dhcpd_ifaces="rl1" # ...on this interface... dhcpd_flags="-q"# ...in quiet mode. Remove -q, this has only effect on startup that it won't display any messages - and that may just be why you don't see the error message you need to solve the problem. Also, no need to specify interfaces, dhcpd will bind to the interfaces that match the network declarations in the config file. Cheers, Erik -- Ph: +34.666334818 web: http://www.locolomo.org X.509 Certificate: http://www.locolomo.org/crt/8D03551FFCE04F0C.crt Key ID: 69:79:B8:2C:E3:8F:E7:BE:5D:C3:C3:B1:74:62:B8:3F:9F:1F:69:B9 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Start dhcpd on boot
On Sun, 16 Jul 2006, Lowell Gilbert wrote: Chris Hill <[EMAIL PROTECTED]> writes: Hi, guy. Hi Lowell, haven't seen you in a long time. [snip] Again, the issue is *not* that dhcpd doesn't work - IT WORKS PERFECTLY. The issue is that the daemon doesn't start when the machine boots. Can you use the startup script to start it by hand? Yes. As I said in the original post, "After boot I can do a # /usr/local/etc/rc.d/isc-dhcpd.sh start ...and the daemon runs and works" Thanks, and nice to hear from you. -- Chris Hill [EMAIL PROTECTED] ** [ Busy Expunging <|> ] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Start dhcpd on boot
Chris Hill <[EMAIL PROTECTED]> writes: Hi, guy. > On Sun, 16 Jul 2006, fbsd wrote: > >> Try the 8.0 dhcp server section of the install guide at >> www.a1poweruser.com > > Thanks, Joe. Unfortunately there is nothing here that isn't in the > Handbook. > > Again, the issue is *not* that dhcpd doesn't work - IT WORKS > PERFECTLY. The issue is that the daemon doesn't start when the machine > boots. Can you use the startup script to start it by hand? -- Lowell Gilbert, embedded/networking software engineer, Boston area http://be-well.ilk.org/~lowell/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
RE: Start dhcpd on boot
On Sun, 16 Jul 2006, fbsd wrote: Try the 8.0 dhcp server section of the install guide at www.a1poweruser.com Thanks, Joe. Unfortunately there is nothing here that isn't in the Handbook. Again, the issue is *not* that dhcpd doesn't work - IT WORKS PERFECTLY. The issue is that the daemon doesn't start when the machine boots. -- Chris Hill [EMAIL PROTECTED] ** [ Busy Expunging <|> ] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
RE: Start dhcpd on boot
Try the 8.0 dhcp server section of the install guide at www.a1poweruser.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Chris Hill Sent: Sunday, July 16, 2006 5:56 PM To: FreeBSD Questions List Subject: Start dhcpd on boot I installed net/isc-dhcp3-server from ports, butI can't seem to persuade it to start when the machine boots. After boot I can do a # /usr/local/etc/rc.d/isc-dhcpd.sh start ...and the daemon runs and works, but I would like for it to start automatically on boot, with no manual intervention. Any thoughts on how to do this? Google didn't find anything useful, nor did a search of the -questions archive. On a hunch, I renamed /usr/local/etc/rc.d/isc-dhcpd.sh to /usr/local/etc/rc.d/dhcpd.sh, but still no love, so I put it back. In /etc/rc.conf I have dhcpd_enable="YES" # Run the DHCP daemon... dhcpd_ifaces="rl1" # ...on this interface... dhcpd_flags="-q"# ...in quiet mode. # grep dhc /var/log/messages shows only the usual rash of intrusion attempts from 0wn3d Windows machines, e.g. May 19 22:28:00 mail sshd[22367]: error: PAM: authentication error for root from 24-231-195-180.dhcp.bycy.mi.charter.com Other pertinent info: # uname -a FreeBSD mail.monochrome.org 6.1-RELEASE-p3 FreeBSD 6.1-RELEASE-p3 #0: Sat Jul 15 20:50:20 EDT 2006 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC i386 # pkg_info | grep isc-dhcp3-server isc-dhcp3-server-3.0.3 The ISC Dynamic Host Configuration Protocol server ...a little out of date, I know, but that has no bearing on the issue at hand. Thanks in advance. -- Chris Hill [EMAIL PROTECTED] ** [ Busy Expunging <|> ] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]" ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Start dhcpd on boot
On Sun, 16 Jul 2006, Gerard Seibert wrote: Chris Hill wrote: I installed net/isc-dhcp3-server from ports, [...] I would like for it to start automatically on boot, with no manual intervention. Any thoughts on how to do this? [snip] Is this what you are looking for: http://www.freebsd.org/doc/en_US.ISO8859-1/articles/pxe/server-config.html Don't think so. I'm not looking to have anything netboot, just to allow transient Windows laptops (and other gizmos) to get Internet access. Thanks for the pointer, though. I should have mentioned that I read the Friendly Manual pretty thoroughly before posting, and everything I could find indicated that what I've done is sufficient. Specifically, http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-dhcp.html ...section 25.5.7 -- Chris Hill [EMAIL PROTECTED] ** [ Busy Expunging <|> ] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Start dhcpd on boot
Chris Hill wrote: > I installed net/isc-dhcp3-server from ports, butI can't seem to persuade > it to start when the machine boots. After boot I can do a > # /usr/local/etc/rc.d/isc-dhcpd.sh start > ..and the daemon runs and works, but I would like for it to start > automatically on boot, with no manual intervention. Any thoughts on how > to do this? > > Google didn't find anything useful, nor did a search of the -questions > archive. On a hunch, I renamed /usr/local/etc/rc.d/isc-dhcpd.sh to > /usr/local/etc/rc.d/dhcpd.sh, but still no love, so I put it back. > > In /etc/rc.conf I have > dhcpd_enable="YES" # Run the DHCP daemon... > dhcpd_ifaces="rl1" # ...on this interface... > dhcpd_flags="-q"# ...in quiet mode. > > # grep dhc /var/log/messages > shows only the usual rash of intrusion attempts from 0wn3d Windows > machines, e.g. > May 19 22:28:00 mail sshd[22367]: error: PAM: authentication error for > root from 24-231-195-180.dhcp.bycy.mi.charter.com > > Other pertinent info: > # uname -a > FreeBSD mail.monochrome.org 6.1-RELEASE-p3 FreeBSD 6.1-RELEASE-p3 #0: > Sat Jul 15 20:50:20 EDT 2006 > [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC i386 > > # pkg_info | grep isc-dhcp3-server > isc-dhcp3-server-3.0.3 The ISC Dynamic Host Configuration Protocol server > ..a little out of date, I know, but that has no bearing on the issue at > hand. > Is this what you are looking for: http://www.freebsd.org/doc/en_US.ISO8859-1/articles/pxe/server-config.html //excerpt// 2 Server Configuration 1. Install DHCP: Install net/isc-dhcp3-server you can use this config file dhcpd.conf, stick it in /usr/local/etc/. 2. Enable tftp: 1. Make a directory /usr/tftpboot 2. Add this line to your /etc/inetd.conf: tftpdgram udp waitnobody /usr/libexec/tftpdtftpd /usr/tftpboot 3. Enable NFS: 1. Add this to /etc/rc.conf: nfs_server_enable="YES" 2. Add this to /etc/exports: /usr -alldirs -ro 4. Reboot to enable the new services or start them manually. -- Gerard Seibert [EMAIL PROTECTED] Murphy's First Law: Nothing is as easy as it looks. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Start dhcpd on boot
I installed net/isc-dhcp3-server from ports, butI can't seem to persuade it to start when the machine boots. After boot I can do a # /usr/local/etc/rc.d/isc-dhcpd.sh start ...and the daemon runs and works, but I would like for it to start automatically on boot, with no manual intervention. Any thoughts on how to do this? Google didn't find anything useful, nor did a search of the -questions archive. On a hunch, I renamed /usr/local/etc/rc.d/isc-dhcpd.sh to /usr/local/etc/rc.d/dhcpd.sh, but still no love, so I put it back. In /etc/rc.conf I have dhcpd_enable="YES" # Run the DHCP daemon... dhcpd_ifaces="rl1" # ...on this interface... dhcpd_flags="-q"# ...in quiet mode. # grep dhc /var/log/messages shows only the usual rash of intrusion attempts from 0wn3d Windows machines, e.g. May 19 22:28:00 mail sshd[22367]: error: PAM: authentication error for root from 24-231-195-180.dhcp.bycy.mi.charter.com Other pertinent info: # uname -a FreeBSD mail.monochrome.org 6.1-RELEASE-p3 FreeBSD 6.1-RELEASE-p3 #0: Sat Jul 15 20:50:20 EDT 2006 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC i386 # pkg_info | grep isc-dhcp3-server isc-dhcp3-server-3.0.3 The ISC Dynamic Host Configuration Protocol server ...a little out of date, I know, but that has no bearing on the issue at hand. Thanks in advance. -- Chris Hill [EMAIL PROTECTED] ** [ Busy Expunging <|> ] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"