Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Aug 2016 18:22:08 -0700
From:      Doug Hardie <doug@mail.sermon-archive.info>
To:        Polytropon <freebsd@edvax.de>
Cc:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: Non working NIC
Message-ID:  <21C5CB57-F898-48DB-B3C4-24D4D57DB5FF@mail.sermon-archive.info>
In-Reply-To: <174B1185-C1FF-4699-81B6-861E97A30181@mail.sermon-archive.info>
References:  <224DCDD3-162F-4E67-8C1D-9332C85FC032@mail.sermon-archive.info> <C5192B10-AD4E-4966-88EA-486AE1DA9116@mail.sermon-archive.info> <6A68E1F3-95CC-42AE-94B4-02B153E4E83F@mail.sermon-archive.info> <20160818010513.0c95f8df.freebsd@edvax.de> <F582ED5D-5BB4-4FE6-B4FA-32BB2F9EBFC8@mail.sermon-archive.info> <20160818015848.d9fd126e.freebsd@edvax.de> <174B1185-C1FF-4699-81B6-861E97A30181@mail.sermon-archive.info>

index | next in thread | previous in thread | raw e-mail


> On 17 August 2016, at 18:17, Doug Hardie <doug@sermon-archive.info> wrote:
> 
>> 
>> On 17 August 2016, at 16:58, Polytropon <freebsd@edvax.de> wrote:
>> 
>> On Wed, 17 Aug 2016 16:32:20 -0700, Doug Hardie wrote:
>>> 
>>>> On 17 August 2016, at 16:05, Polytropon <freebsd@edvax.de> wrote:
>>>> 
>>>> On Wed, 17 Aug 2016 15:56:15 -0700, Doug Hardie wrote:
>>>>> Added a new NIC (rl0).  Removed any reference to msk0 in rc.conf. 
>>>>> Set rl0 for DHCP.  Same result, but some additional messages:
>>>>> 
>>>>> Starting Network: mske0
>>>>> Starting Network: rl0
>>>>> rl0: link state changed to up
>>>>> Starting Network: lo0
>>>>> Starting dhclient
>>>>> rl0: not found
>>>>> exiting
>>>>> 
>>>>> I am out of ideas here.  How can I figure out what is going on and correct it?
>>>> 
>>>> This almost looks like a problem with the contents of rc.conf.
>>>> Can you show all the relevant lines?
>>> 
>>> I switched to a minimal rc.conf:
>>> 
>>> fsck_y_enable="YES"
>>> background_fsck="NO"
>>> dumpdev="NO"
>>> hostname="steve"
>>> ifconfig_rl0="DHCP"
>>> sshd_enable="YES"
>>> 
>>> 
>>> Same results.
>> 
>> No errors in this file. However it's interesting that (if I remember
>> the thread so far) you reported the disappearing of a network interface
>> with two different devices... however, there's something strange about
>> the message: when I try to run dhclient for a network interface that
>> does not exist on my system, I get this:
>> 
>> 	# dhclient fxp0
>> 	ifconfig: interface fxp0 does not exist
>> 	fxp0: not found
>> 	exiting.
>> 
>> Note the ifconfig-related line. And if you run "ifconfig -a" and the
>> interface _is_ listed, this makes the whole thing even more strange...
> 
> I created the following code:
> 
> #include <stdio.h>
> #include <sys/types.h>
> #include <sys/socket.h>
> #include <ifaddrs.h>
> 
> int main (int argc, char *argv[])
> {
>        int rc;
>        struct ifaddrs *ifi;
> 
>        rc = getifaddrs (&ifi);
>        printf ("rc = %d\n", rc);
> }
> 
> 
> Compiled it with debugging and ran it.  after the getifaddrs call (it returned 0), there were 3 entries in the table.  All 3 have the name of "". 
> 
> I commented out the networking calls in rc.conf, rebooted the machine and then ran the code.  Same result.  I rebooted in single user mode and ran the code and the same results.  The boot process is not setting the interface names properly.  Whats even more fascinating about this is I have upgraded other machines (although they are newer) from 9.3 to 11.0-RC1 and they worked just fine.

I just noticed, all the systems that upgraded and worked properly are amd64.  This one is i386.



help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?21C5CB57-F898-48DB-B3C4-24D4D57DB5FF>