From nobody Sun Feb 18 01:17:06 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 4TcnpH5zvYz5BMH8 for ; Sun, 18 Feb 2024 01:17:27 +0000 (UTC) (envelope-from zlei@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TcnpH3h2Sz49Yd; Sun, 18 Feb 2024 01:17:27 +0000 (UTC) (envelope-from zlei@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708219047; 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=2r2cbVC0pOjsQ3mUubvHD9pXy64Hs+QZdUxgHED5VvA=; b=uX9AkdrbConiFMAqDGMV2jNwpWMBMdtV3gRXeHDlraw35/aXIhGVKMZFFoO1XzZ7V4ci9p wkJgN22hX5EO9ynbZK3qDB5u0b65lxUjCYliPUKMie43AaKpFm2x4Ke3/nKN1pmsyfE8tf UKy44NlAjZ4jczZDyEQsSFnGQCjbPmHafZxNxw+LpCOTOq2ASkTsb4XbLXeHc5VVvKo8EJ H0xM5RMOQ50OC26ZLJxgzZDiRtBrf3BDDeAOo/g0wK60yXEuuga3T5ZBbOs/hZYYjzgFpD S2pwDl+JFe/kEXc/HKfLnRpyZ4+IsvNVNk2fKK+48DYowktm9RQHV1aP1o/3Cg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708219047; 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=2r2cbVC0pOjsQ3mUubvHD9pXy64Hs+QZdUxgHED5VvA=; b=lIdzPlYU0q8Ian0J63iTeUngfLWaetM62Va2BHJvPjCCizkDTyXEN2rJlkeWvghzof6+Ev YaFEuNyjCbX6lHbODR36K4+VwkWOnvl+X+FKcgik+YZazgEa4ATv7N2QypPsDePapZS5OZ AzRXfspDQ1Cjt3MYzhi9Vo7vmLE5AGoaLeCmJTv0oqOt1J7uaeuAURSuf9dxn6Fmq0T5c/ 79pKsYiZGJLtkDhLMRbytWDgjlGsTrvdouM/txzDLt6PBskdEMZNJ7Uxx8UM6rY+9afk1T gYMXPIVyumIPH/pC8k6I5f2F4TKd2iA66LDP6c3lBnYSwUkYy8HTXJbdvd2DEA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708219047; a=rsa-sha256; cv=none; b=QYJqdeilnc0xEsp66PLEv/z4bKtrpyVAg1KoIptkKV+QbRuF6k+LOifLE5LxZj0Mf7gdBF 4I5AgA28MO2Qcl/bFvK0YjWJzEDIzt46PXB2v78YZ0Dqw6TAt6J0D8fKxpgJQuZXJqHXK6 b6toUW6BMRnvcYtfpXhifTTLR5ByCRVfaVAbMZSNL1NFSJL5m9KcJT0TIx8umMUtEMAMkT MVhy1dppvCL7aa6mRrxdkLeXucUXKNhDiWnNOoNuoJdRiOANCGdrjTkO7skdIxp842LU82 Ijp2RUZ/zhEnJZgdKqLIBAVF7qIcm3IO95tPGaQVsJMFHCDX9kEGzSGmLFZP7w== Received: from smtpclient.apple (ns1.oxydns.net [45.32.91.63]) (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 4TcnpD0T4Xz1GwG; Sun, 18 Feb 2024 01:17:23 +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.8\)) Subject: Re: Anyway way to set an interface IP not reassigned during netif ? From: Zhenlei Huang In-Reply-To: Date: Sun, 18 Feb 2024 09:17:06 +0800 Cc: "freebsd-net@FreeBSD.org" Content-Transfer-Encoding: quoted-printable Message-Id: <349BFB06-F777-405D-8D8F-CE25BEEC126B@FreeBSD.org> References: To: Benoit Chesneau X-Mailer: Apple Mail (2.3696.120.41.1.8) > On Feb 4, 2024, at 5:58 PM, Benoit Chesneau = wrote: >=20 > Im' using the machine as a gateway and use one of the interface as an = OOB access to the applications. I should be able to launch automated = commands to re-configure the applications an other network interfaces = from this OOB interface.=20 I would recommend you employ vnet jails for this kind of setup. Leave one OOB interface in jail 0 (the host), and move all interfaces = those are for routing to a dedicated vnet jail. >=20 > 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 interfaces and reassign the configuration to them. Which disconnect = the client making the upgrade. What would be the way the way to prevent = it?=20 With dedicated vnet jail for routing (your business), then the setup is = much clean and clear. >=20 > For now I'm thinking to set the interfaces and routing separatly but = hen I miss the flexibility of rc.conf . Is there another way to do it = and ensure an interface won't be resetted? >=20 > Beno=C3=AEt >=20 Best regards, Zhenlei