From nobody Sun Feb 04 09:58:26 2024 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 4TSQ2351ZXz59SJR for ; Sun, 4 Feb 2024 09:58:35 +0000 (UTC) (envelope-from benoitc@enki-multimedia.eu) Received: from mail-4022.proton.ch (mail-4022.proton.ch [185.70.40.22]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits)) (Client CN "protonmail.com", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TSQ2318h1z4C9Q for ; Sun, 4 Feb 2024 09:58:35 +0000 (UTC) (envelope-from benoitc@enki-multimedia.eu) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=enki-multimedia.eu header.s=protonmail2 header.b=iwNBlfHX; dmarc=pass (policy=none) header.from=enki-multimedia.eu; spf=pass (mx1.freebsd.org: domain of benoitc@enki-multimedia.eu designates 185.70.40.22 as permitted sender) smtp.mailfrom=benoitc@enki-multimedia.eu DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enki-multimedia.eu; s=protonmail2; t=1707040713; x=1707299913; bh=vNchfilNGSc4I7EMx1a0DXWUDewuEb8DapsIxm8yddQ=; h=Date:To:From:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=iwNBlfHXE/TW33dMj+2xQCaNOv/1I1we2Dx3D5eIUne+RNp7kvy1o0ovrPvMz/EXC RvI9d5Bv5wCnVeBVoiviQVg73W6M3q6A/HUg7Qjn2oN4X9fOnvdblsdFQSNLBBSQxW ezsFz3e6gM/Y763P/BWX3ywJvnvgkiIR4V5aYjXBENvhhOr7M8fsW1fFutPNmc518f 4zo2TbhPHqPvIeVqeFhAwPB4ewfZvibnby/fG6f8JhuniWOffO99gaPYa41Lvwa4Ig So6z/bnyuh6Vy9PAU/B8lr8oGqV3txACOIOdw1qcNeI/svYOy8gqnVU7OIxmtneEHG QQBZTrj79nxSA== Date: Sun, 04 Feb 2024 09:58:26 +0000 To: "freebsd-net@FreeBSD.org" From: Benoit Chesneau Subject: Anyway way to set an interface IP not reassigned during netif ? Message-ID: Feedback-ID: 9066678:user:proton 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 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.40 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[enki-multimedia.eu,none]; RWL_MAILSPIKE_EXCELLENT(-0.40)[185.70.40.22:from]; R_DKIM_ALLOW(-0.20)[enki-multimedia.eu:s=protonmail2]; R_SPF_ALLOW(-0.20)[+ip4:185.70.40.0/24]; MIME_GOOD(-0.10)[text/plain]; ASN(0.00)[asn:62371, ipnet:185.70.40.0/24, country:CH]; RCPT_COUNT_ONE(0.00)[1]; MIME_TRACE(0.00)[0:+]; MISSING_XM_UA(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCVD_COUNT_ZERO(0.00)[0]; TO_DN_EQ_ADDR_ALL(0.00)[]; MLMMJ_DEST(0.00)[freebsd-net@freebsd.org]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DKIM_TRACE(0.00)[enki-multimedia.eu:+] X-Rspamd-Queue-Id: 4TSQ2318h1z4C9Q Im' using the machine as a gateway and use one of the interface as an OOB a= ccess to the applications. I should be able to launch automated commands to= re-configure the applications an other network interfaces from this OOB in= terface.=C2=A0 The issue I have is that when I update the rc.conf and launch the command `= service netif restart` and same for the `routing` it will reset all interfa= ces and reassign the configuration to them. Which disconnect the client mak= ing the upgrade. What would be the way the way to prevent it?=C2=A0 For now I'm thinking to set the interfaces and routing =C2=A0separatly but = hen I miss the flexibility of rc.conf . Is there another way to do it and e= nsure an interface won't be resetted? Beno=C3=AEt