From owner-freebsd-questions@FreeBSD.ORG Thu Jun 8 09:57:52 2006 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6DEB316C623 for ; Thu, 8 Jun 2006 08:50:36 +0000 (UTC) (envelope-from xfb52@dial.pipex.com) Received: from smtp-out5.blueyonder.co.uk (smtp-out5.blueyonder.co.uk [195.188.213.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id BA4FA43D46 for ; Thu, 8 Jun 2006 08:50:35 +0000 (GMT) (envelope-from xfb52@dial.pipex.com) Received: from [172.23.170.145] (helo=anti-virus03-08) by smtp-out5.blueyonder.co.uk with smtp (Exim 4.52) id 1FoGDn-0008O8-DE; Thu, 08 Jun 2006 09:50:31 +0100 Received: from [80.192.2.223] (helo=[192.168.0.2]) by asmtp-out2.blueyonder.co.uk with esmtp (Exim 4.52) id 1FoGDm-0002xm-PJ; Thu, 08 Jun 2006 09:50:30 +0100 Message-ID: <4487E4D6.2030503@dial.pipex.com> Date: Thu, 08 Jun 2006 09:50:30 +0100 From: Alex Zbyslaw User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-GB; rv:1.7.13) Gecko/20060515 X-Accept-Language: en MIME-Version: 1.0 To: Malcolm Fitzgerald References: <447A662C.9050708@daleco.biz> <8f8af4261e016d4487bb94952df8157c@pacific.net.au> <447AF91C.10106@daleco.biz> <69cd51de50f2e39fbdc605d214cc5026@pacific.net.au> <4486DD4B.3080606@dial.pipex.com> <2548ca0250d134faf9e1a0e49154598b@pacific.net.au> In-Reply-To: <2548ca0250d134faf9e1a0e49154598b@pacific.net.au> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: questions@freebsd.org Subject: Re: troubleshooting network settings X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jun 2006 09:57:55 -0000 Malcolm Fitzgerald wrote: > > On 08/06/2006, at 12:06 AM, Alex Zbyslaw wrote: > >> Malcolm Fitzgerald wrote: >> >>> On 29/05/2006, at 11:37 PM, Kevin Kinsey wrote: >>> >>>> Hmm, is that all? Unusual; I'd think the loopback _should_ be set >>>> up correctly. >>>> >>>> `ifconfig lo0 inet 127.0.0.1 netmask 255.255.255.0` ?? >>>> >>>> If that fixes it, then we have to figure out *why* it's not being >>>> doing automatically. Problem during init/rc, most likely ... weird. >>> >>> >>> >>> I've not had time to address this problem for a week. Going through >>> all the advice again I found that this advice is good. That fixes >>> the problem. Any pointers on getting it done automatically? >> >> >> What does /etc/rc.conf show for lo0 related things? (And just to >> check your defaults as well...) >> >> egrep lo0 /etc/rc.conf /etc/defaults/* >> >> >> Mine shows: >> >> /etc/defaults/rc.conf:ifconfig_lo0="inet 127.0.0.1" # default >> loopback device configuration. > > > Same here > Just to confirm, since I didn't really read the beginning of this thread, when you reboot your machine, the setting for lo0 is already wrong, yes? Since we now know that the rc settings look ok, maybe some script is doing the dirty, so what does egrep 'lo0|ifconfig' /etc/rc.d/* /usr/local/etc/rc.d/* show? I do have numerous hits in /etc/rc.d, none of which look like they would affect lo0 unless you specified lo0 in /etc/rc.conf. I have no hits in /usr/local/etc/rc.d/*, which is what I would expect -- if you get any hits there then follow them up to see what they are doing. If you get hits in /etc/rc.d not in my list then have a look. (I'm still on FreeBSD 5 so if you are on 6 then you may get slightly fewer or more hits, but I wouldn't expect too drastic differences). My hits are: /etc/rc.d/atm1: ifconfig ${natm} up /etc/rc.d/dhclient: ifconfig ${ifn} /etc/rc.d/initdiskless: iflist=`ifconfig -l` /etc/rc.d/initdiskless: set -- `ifconfig ${i}` /etc/rc.d/ip6addrctl: if ifconfig lo0 inet6 >/dev/null 2>&1; then /etc/rc.d/ip6addrctl: if ifconfig lo0 inet6 >/dev/null 2>&1; then /etc/rc.d/netif:# it will call ifconfig(8) to show, in long format, the configured /etc/rc.d/netif: ifconfig ${ifn} /etc/rc.d/netif: ifconfig_up ${ifn} && cfg=0 /etc/rc.d/netif: ifconfig_down ${ifn} && cfg=0 /etc/rc.d/network_ipv6: ipv6_network_interfaces="`ifconfig -l`" /etc/rc.d/network_ipv6: ifconfig $i up /etc/rc.d/pflog: if ! ifconfig pflog0 up; then /etc/rc.d/rtadvd: for i in `ifconfig -l` ; do /etc/rc.d/rtadvd: lo0|gif[0-9]*|stf[0-9]*|faith[0-9]*|lp[0-9]*|sl[0-9]*|tun[0-9]*) /etc/rc.d/sppp: # to go _before_ the general ifconfig since in the case --Alex