troubleshooting network settings

Alex Zbyslaw xfb52 at dial.pipex.com
Thu Jun 8 09:57:55 UTC 2006


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




More information about the freebsd-questions mailing list