Handbook DHCPD needs update?
(This missive is going to both freebsd-stable and freebsd-doc.) Hi all, I just got done setting up my brand spankin' new FreeBSD 6 (release) server for DHCPD, and I found an ommision in the online handbook. I'm a newbie at FreeBSD but I'm pretty sure about this. In short, the handbook never mentions that one needs to add the following lines to /etc/rc.conf: dhcpd_enable="YES" dhcpd_ifaces="dc0" If one doesn't do that, the script that the handbook says to use to start dhcpd won't work, even if you do it manually as the handbook instructs: # /usr/local/etc/rc.d/isc-dhcpd.sh start This won't work. This script snarfs values out of /etc/rc.conf, and the default (in the script above) for dhcpd_enable is NO. Hence the script alone won't start anything. (When you check the handbook, make sure you scrolldown to section 24.5.7. The first part of the DHCP section explains how to set up the client (dhclient). That part does have the correct setup for /etc/rc.conf. Scroll down to the server section, dhcpd, to see what I'm talknin' about.) Anyhoo, what's the best way to fix this? I could submit a patch, but it might be faster for someone else. I've never submitted a patch to the documentation. Peace, out. ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: DHCP client error: domain_not_set.invalid
Thanks to Sebastian and Brooks for their quick replies. I took the easy way out and installed the ISC client which works just fine. The problem is my DHCP server is a DSL modem. I don't see any way to set the domain field. In addition, this interface is really not on a network but a connection between two networks (its PPPoE), it make sense that my ISP has configured the modem this way. The interface is one that will be addressed only by address, it really doesnt have a name. Or at least, the DHCP "server" doesn't assign a domain, its set elsewhere. So I think Brooks is correct. The dhcp client should just ignore the domain setting and just assume that there is no domain associated with this interface. Should we suggest this to the OpenBSD client maintainer? Brooks Davis wrote: On Sun, Nov 13, 2005 at 07:14:00PM -0800, Mark Space wrote: Hi all, I just set up the latest 6.0 release, and I'm getting errors with the DHCP client. Trying to pull a network address during start up, I get: Bogus domain search list 15: domain_not_set.invalid This repeats several times before giving up. Google tells me that this problem was report by two users on the bsd-current list. No one ever replied to their inquiries (at least on the list), so I thought to try once more to see if there's any interest in addressing this issue. More info was in the original post: http://lists.freebsd.org/pipermail/freebsd-current/2005-October/057034.html We should really bitch and then ignore this value when it's bogus rather than rejecting the lease. We should also probably allow underscores since they are popular among clueless Microsoft admins. Please try the follow patch. -- Brooks Index: dhclient.c === RCS file: /home/ncvs/src/sbin/dhclient/dhclient.c,v retrieving revision 1.11 diff -u -p -r1.11 dhclient.c --- dhclient.c 2 Sep 2005 17:35:35 - 1.11 +++ dhclient.c 14 Nov 2005 17:42:46 - @@ -67,6 +67,7 @@ __FBSDID("$FreeBSD: src/sbin/dhclient/dh #define PERIOD 0x2e #define hyphenchar(c) ((c) == 0x2d) +#defineunderscorechar(c) ((c) == 0x5f) #define bslashchar(c) ((c) == 0x5c) #define periodchar(c) ((c) == PERIOD) #define asterchar(c) ((c) == 0x2a) @@ -76,7 +77,7 @@ __FBSDID("$FreeBSD: src/sbin/dhclient/dh #define whitechar(c) ((c) == ' ' || (c) == '\t') #define borderchar(c) (alphachar(c) || digitchar(c)) -#definemiddlechar(c) (borderchar(c) || hyphenchar(c)) +#definemiddlechar(c) (borderchar(c) || hyphenchar(c) || underscorechar(c)) #define domainchar(c) ((c) > 0x20 && (c) < 0x7f) #define CLIENT_PATH "PATH=/usr/bin:/usr/sbin:/bin:/sbin" @@ -2252,6 +2253,8 @@ check_option(struct client_lease *l, int if (!res_hnok(sbuf)) { warning("Bogus Host Name option %d: %s (%s)", option, sbuf, opbuf); + l->options[option].len = 0; + free(l->options[option].data); return (0); } return (1); @@ -2260,7 +2263,8 @@ check_option(struct client_lease *l, int if (!check_search(sbuf)) { warning("Bogus domain search list %d: %s (%s)", option, sbuf, opbuf); - return (0); + l->options[option].len = 0; + free(l->options[option].data); } } return (1); ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "[EMAIL PROTECTED]"
DHCP client error: domain_not_set.invalid
Hi all, I just set up the latest 6.0 release, and I'm getting errors with the DHCP client. Trying to pull a network address during start up, I get: Bogus domain search list 15: domain_not_set.invalid This repeats several times before giving up. Google tells me that this problem was report by two users on the bsd-current list. No one ever replied to their inquiries (at least on the list), so I thought to try once more to see if there's any interest in addressing this issue. More info was in the original post: http://lists.freebsd.org/pipermail/freebsd-current/2005-October/057034.html ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Incorrect super block--Thanks!
From: [EMAIL PROTECTED] Of course, this is dead right and ignore my previous response. You'll find that the cdrom drive is almost certainly in /etc/fstab as the other responder mentioned - to mount it with the default fstab options (which should work just fine): mount /cdrom Yup, silly me, I was bypassing the fstab file by giving the full command. Thanks all! _ Is your PC infected? Get a FREE online computer virus scan from McAfee® Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Incorrect super block--help!
Hey, newb BSDer here with a question I've got a brand new 5.4 install. I'm trying to mount the CDROM. As root, I type: mount /dev/acd0 /cdrom and I get "incorrect super block" error message after a bit of CD activity, and no mount. I've tried a CD-RW I burned (the FreeBSD install disk I installed from) and an old copy of SimCity 2000, neither worked, same error message. I'm stuck. Any ideas? _ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "[EMAIL PROTECTED]"