Path: utzoo!attcan!uunet!lll-winken!lll-lcc!ames!mailrus!husc6!rice!sun-spots-request From: dana@dino.bellcore.com (Dana A. Chee) Newsgroups: comp.sys.sun Subject: Re: FTP problem on 3/60's Message-ID: Date: 21 Dec 88 08:27:27 GMT References: <8812011748.AA04934@white.cs.unc.edu> Sender: usenet@rice.edu Organization: Sun-Spots Lines: 24 Approved: Sun-Spots@rice.edu Original-Date: 14 Dec 88 14:15:57 GMT X-Sun-Spots-Digest: Volume 7, Issue 68, message 3 of 12 white@cs.unc.edu (Brian T. White) writes: > We had this problem when a ypclient machine did not have its own host name > in its own version of /etc/hosts.... For those interested, what really happens is that ifconfig 'fails'. When ifconfig is called to set up the interface (in /etc/rc.boot), one of the things it does is to try to set the internet address for the interface. But this fails since the address can't be found for the host name. The effect of this is that the kernel says that there is no address for the given interface and fails the 'bind()'. The method we use to get around this is to do the ifconfig again in /etc/rc.local after the yp stuff has been started (after the mount -vat). Below is an example: # re-do the ifconfig to put the hostname in /etc/ifconfig ec0 `/bin/hostname` -trailers up > /dev/null -- Dana Chee (201) 829-4488 Bellcore Room 2Q-250 445 South Street ARPA: dana@bellcore.com Morristown, NJ 07960-1910 UUCP: {gateways}!bellcore!dana