Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Aug 2023 19:46:21 -0700
From:      Chuck Tuffli <chuck@freebsd.org>
To:        FreeBSD-Current <freebsd-current@freebsd.org>, freebsd-net@freebsd.org
Subject:   Re: Can't assign address to igc
Message-ID:  <CAKAYmMKLM6FwyCdsfivB4-zoF5n1uzbsZgwpHUsDZMe%2Bjvw0nQ@mail.gmail.com>
In-Reply-To: <CAKAYmML_tPaT2oXnSqWXv%2BeA5wZbac-GgRO7qtMEBitZ5hXd9w@mail.gmail.com>
References:  <CAKAYmMLyAgxq0Keb3CZLWWF__BjEvbJ8ftVTiDTqmAG1GNrPiQ@mail.gmail.com> <CAKAYmML_tPaT2oXnSqWXv%2BeA5wZbac-GgRO7qtMEBitZ5hXd9w@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Bah, actually adding freebsd-net this time

On Tue, Aug 15, 2023 at 7:44=E2=80=AFPM Chuck Tuffli <chuck@freebsd.org> wr=
ote:
>
> [Adding freebsd-net@]
>
> On Tue, Aug 1, 2023 at 10:46=E2=80=AFAM Chuck Tuffli <chuck@freebsd.org> =
wrote:
> >
> > Running a recent-ish version (n264266-8f8da1bcc799) on an Intel NUC
> > (RNUC11PABi5), assigning an IPv4 address to igc0 doesn't work. There
> > is no error message, and this has been working in the past. Looking
> > through dmesg only shows:
> >
> > igc0: link state changed to UP
> > igc0: link state changed to DOWN
> > igc0: link state changed to UP
> >
> > The address is set in rc.conf:
> > ifconfig_igc0=3D"inet 192.168.5.10 netmask 255.255.255.0"
> >
> > And manually setting it via
> > # ifconfig igc0 inet 192.168.5.10/24 up
> > does not work either. Any suggestions?
>
> I spent a little time debugging this but still need some help
> understanding what might be wrong.
>
> Instrumenting dump_sa() in the AF_INET case, the .sin_addr contains
> the value of the IP address I'm adding (printf shows 0x0a05a8c0 or big
> endian 192 168 6 10). Switching the log level in
> sys/netlink/route/iface.c to LOG_DEBUG3 shows messages:
> [nl_iface] dump_iface_addr: dumping ifa 0xfffff8000db0cd80 type
> inet(2) for interface igc0
> Does this mean the address information was written to the net link
> buffer? If so, what might make ifconfig not display that address?
>
> One other tidbit is, eventually ifconfig reports the address and
> things like sshd start working. Typically this takes < 100 iterations
> to do this.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAKAYmMKLM6FwyCdsfivB4-zoF5n1uzbsZgwpHUsDZMe%2Bjvw0nQ>