Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Aug 2025 11:54:23 +0800
From:      Zhenlei Huang <zlei@FreeBSD.org>
To:        "Patrick M. Hausen" <hausen@punkt.de>
Cc:        "freebsd-net@freebsd.org" <freebsd-net@freebsd.org>
Subject:   Re: Static vxlan configuration fails - probably because of wrong order in rc
Message-ID:  <7000BD16-48A8-4D4A-A5F9-843F9F15F1FB@FreeBSD.org>
In-Reply-To: <A4CFF5AE-36E5-43E9-88D1-E0B02F2FF475@punkt.de>
References:  <D0196A32-4382-4EFB-A746-FA841787FA9A@punkt.de> <5F0F9208-9F4B-401B-B7B8-BCF64737A97F@punkt.de> <A4CFF5AE-36E5-43E9-88D1-E0B02F2FF475@punkt.de>

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


> On Aug 22, 2025, at 3:09 AM, Patrick M. Hausen <hausen@punkt.de> =
wrote:
>=20
> Hi all,
>=20
>> Am 08.08.2025 um 16:07 schrieb Patrick M. Hausen <hausen@punkt.de>:
>> someone hinted in the original pr that this might be due to the fact
>> that I am using USB ethernet which is brought up later than regular
>> NICs.
>>=20
>> I don't have much choice on an RPI CM3+, but I'll investigate in
>> that direction. If vxlan works in a VM with an em(4) NIC we can =
consider this solved.
>=20
> With em0 instead of ue0 the vxlan interfaces come up as expected.
>=20
> Now one remaining question:
>=20
> Why not start USB network interfaces that are connected at boot time
> together with all regular interfaces? They don't come and go in my =
context,
> they are just connected via USB.

Well the rc.d scripts actually run late.

=46rom rc.d/netif,

```
        # Create IEEE802.11 interface
        wlan_up $cmdifn

        # Create cloned interfaces
        clone_up $cmdifn

        # Rename interfaces.
        ifnet_rename $cmdifn

        # Configure the interface(s).
        netif_common ifn_start $cmdifn
```

The cloned interfaces are created first, then they, including the =
physical interfaces, say em0 and ue0, are configured.

So I guess your config of em0 is before vxlan0, and ue0 is after vxlan0. =
You may move ue0 before vxlan0 in rc.conf and give it another try.

Best regards,
Zhenlei

>=20
> Kind regards,
> Patrick
> --=20
> punkt.de GmbH
> Patrick M. Hausen
> .infrastructure
>=20
> Sophienstr. 187
> 76185 Karlsruhe
>=20
> Tel. +49 721 9109500
>=20
> https://infrastructure.punkt.de
> info@punkt.de
>=20
> AG Mannheim 108285
> Gesch=C3=A4ftsf=C3=BChrer: Daniel Lienert, Fabian Stein
>=20






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7000BD16-48A8-4D4A-A5F9-843F9F15F1FB>