Return to BSD News archive
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!yeshua.marcam.com!MathWorks.Com!panix!not-for-mail From: wpaul@panix.com (Bill Paul) Newsgroups: comp.os.386bsd.questions Subject: Re: FreeBSD: error message during boot Date: 8 Jul 1994 12:23:16 -0400 Organization: The M00se Illuminati (bl00p!) Lines: 111 Message-ID: <2vjuhk$qev@panix3.panix.com> References: <2viokj$688@ohlone.kn.PacBell.COM> <2virb1$6el@ohlone.kn.PacBell.COM> NNTP-Posting-Host: panix3.panix.com X-Newsreader: TIN [version 1.2 PL2] Daring to challenge the will of the almighty Leviam00se, *AGAIN*, Sherman Mui (smui@news.kn.PacBell.COM) had the courage to say: : Sherman Mui (smui@news.kn.PacBell.COM) wrote: : : : >syslogd: bind: Can't assign requested address : : : This is caused by incorrect settings in /etc/netstart. : Hmm... Well now I just got rid of two error messages. : I don't know if I posted this one originally: : starting network : ifconfig: localhost: badvalue : . : . : . : [then the syslogd one above] : I made some changes in a few files. But the one that seemed to get it was : 'hosts'. You need one test loop back one. My trusty Nutshell SysAdmin : book says: : 127.1 loopback : 193.0.9.1 corebreech.anything.else.com [my hostname + whatever] : That did the trick for me. I also edited my 'networks' file and just : changed that default: : corebreech 127 : And on 'hosts.equiv': : corebreech : [domain or something. I don't really know on the second line] : I didn't change anything in 'netstart' I couldn't figure out what to change! : But I still have this error: : starting network daemons: portmap routed bind: can't assign requested : address printer sendmail inetd : Sherman Alright, I went through this with somebody on IRC last night. Pay close attention: In /etc/hosts, you must have a line that says: 127.0.0.1 localhost localhost.my.domain Errors that will result if you don't do this: ifconfig will not be able to figure out what IP address goes with the name 'localhost' and you'll get 'localhost: bad value.' In /etc/netstart, you must do: ifconfig lo0 localhost route add localhost <-- could well be optional, but doesn't hurt Errors that will result if you don't do this: the loopback device will not be properly configured and/or you will have no route to it. The result is that programs expecting to have networking enabled (including syslog and friends) will get horribly confused. *AND*, if you're not going to be directly connected to a network, you should change /etc/host.conf to say: hosts bind It's set up the other way around by default. I don't like it that way myself. Errors that can result if you don't do this: if you don't have a nameserver available to you, the resolver will have trouble translating hostnames into IP addresses. Bogosity levels will be off the scale. (Note also that if you do have access to a nameserver, you need to set up /etc/resolv.conf to point to it.) By changing the order, you'll be telling the resolver to check the host files for matches *first*, then roll over to the nameserver (if any) if no match is found. Make sure that: - There are no typos in any of the three files mentioned above. - There are no bogus non-ASCII characters in the files mentioned above. - All three files have their read permission bits set. Lastly, be very careful with /etc/hosts.equiv. If you add a hostname to it, say 'otherhost.domain,' then root on otherhost.domain will be able to rsh/rlogin to your machine without a password. Once you have everything set correctly, you should be able to type 'telnet localhost' and establish a connection to yourself. If you get an error such as 'localhost: unknown host' or 'network unreachable' then you still have work to do. : ---------------------------------------------------------------------- : Sherman | Mui | moooster| @thetech| .com | smui@kn | .pacbell| : ---------------------------------------------------------------------- -Bill -- _ /\ _ Join the / \_/\_/ \_/\_/ \ .----. M00se Illuminati Bill Paul \_____/ () \_____/ (bl00p!) Face it: wouldn't <Big City M00se> / \ `----' you feel much wpaul@panix.com -or- / \__/ \ --' safer? ghod@drycas.club.cc.cmu.edu /__________\