From nobody Fri Aug 22 03:54:23 2025 X-Original-To: freebsd-net@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4c7RCB07gBz64wxR for ; Fri, 22 Aug 2025 03:54:30 +0000 (UTC) (envelope-from zlei@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4c7RC96LjKz3drq; Fri, 22 Aug 2025 03:54:29 +0000 (UTC) (envelope-from zlei@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1755834869; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=h71D0yuk8Xo/Eq81HtNQOLUnuVWHz4hTx9S5KWFQksY=; b=wO+OGQb46njusJxUsBZIWixS6hJ36Wq5GNukN8xsCzlbalbqhceaUaHyw7vjEOJMILwgno mqxgTKHPz4YnGiWTtTv7JDJyYShpOhZJMiReh00o+yIcUY9sOERPYppukzCwWtMQ4tHkuL /DyJRDwSYB/EkA3f1tUCfkIJlaF69hWWyrtB6PB2EvQ97rsBPuLEXEhxScpvx7lxQ/4x+R LX8g3gAnrbVONsRbm8dG5x7k3nc1N/bOBQfza0QHb0eaypdanE7U6LVJa2PZBDE8WzGVWN s5UFyjT0xLwvf8cKLAZhs5YI8h8EE0slmNCYcwpk+Mw6Fe6Wy/hv1tfE6+OXlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1755834869; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=h71D0yuk8Xo/Eq81HtNQOLUnuVWHz4hTx9S5KWFQksY=; b=lfDzdZVXxFjvR2FOEFSl6eNuVnrg3DWZS3/T2HHXo7jdRBiANKWIxkS06f5mpWjKMJUchv +uP3LqiBy9J8isBIbQs+u9/Hpq7MBSaUQCuLiQqHggtE6SvrJhqyyzWFKVD7CWQnRyYwaq jXkoodOTE3mv2/zZbFrLyRqr48FWZt1m3qoGc8pCbJ4GiEEYi96hmXDK1dsSR3zXjETIYx t0eC7xn+aqbacWEVxzuBXPvo7JZYYZuKI7cDzc365ZFHaF4hWsz55rFphi+DGvbx21hNM/ 8gqviKMFLbitR+6KPXO13p+C2owcSlFYtNPYRlHWHpk3CicFZMVp8a2s6jshpg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1755834869; a=rsa-sha256; cv=none; b=l4c0rLn0W5EaofhlBtRJxMkM9yFq4BF91foX0tkO31omYoMFPwUgwRzaYbVQl0jCzsL7M2 ZYaJpGGOR+nHfGlrb/boyMoN1XikeUJFRbv5ApPL6GTo8ShU964xnThlYuIFVhYyl2GCSA wLpNtV9xfw8rG92kDLI3ZC4Nty5CeeWdK/Ej2Ov+rNh6O7nHpx0TkuaDxgUK6ZTRmDC8Og mzZVxr5JcdItI4zJCv4JdyAZ3w1/9YOppMEUEg21B57nbaqDbLkmgHZGEIB6Gbg2tfXqnx t9p5DKrmSxqe+7iSwSCjzpa/wWgTNSUB2zPElbM87UGyX9g2Mu6YuaYR0lWlpA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from smtpclient.apple (unknown [IPv6:2001:19f0:6001:9db:98f0:9fe0:3545:10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: zlei/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4c7RC86qpkzNM1; Fri, 22 Aug 2025 03:54:28 +0000 (UTC) (envelope-from zlei@FreeBSD.org) Content-Type: text/plain; charset=utf-8 List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@FreeBSD.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.10\)) Subject: Re: Static vxlan configuration fails - probably because of wrong order in rc From: Zhenlei Huang In-Reply-To: Date: Fri, 22 Aug 2025 11:54:23 +0800 Cc: "freebsd-net@freebsd.org" Content-Transfer-Encoding: quoted-printable Message-Id: <7000BD16-48A8-4D4A-A5F9-843F9F15F1FB@FreeBSD.org> References: <5F0F9208-9F4B-401B-B7B8-BCF64737A97F@punkt.de> To: "Patrick M. Hausen" X-Mailer: Apple Mail (2.3696.120.41.1.10) > On Aug 22, 2025, at 3:09 AM, Patrick M. Hausen = wrote: >=20 > Hi all, >=20 >> Am 08.08.2025 um 16:07 schrieb Patrick M. Hausen : >> 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