From nobody Wed Jun 12 10:52:17 2024 X-Original-To: current@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 4Vzj7G48Fwz5M0Rv for ; Wed, 12 Jun 2024 10:52:58 +0000 (UTC) (envelope-from grembo@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 4Vzj7G3f8hz4pKN; Wed, 12 Jun 2024 10:52:58 +0000 (UTC) (envelope-from grembo@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1718189578; 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=7OQhkkcmVRwEsxIFKOhUGPDcXP5kFmDItJDiocE/eOw=; b=iGTurnryOdLkDtyoDIRUxoOQJO761omFKNkjJTmJBrMa711pPPQhMCBuAIz/qRZicT5SH5 KkaD55ycJwyi5Cfe77GzA3MVRB0AcIx3g0ddSGIjzrzagsp3XVTxyXqef52/uwdakUzZ3q 5UUrmrxI+eGvaPBpQtGqHsANUJkwFlZ72Yo8co5qPheN5h3IZal7q6Jww5rDyLI4+82yAw 7wmBVDESmlPSIzCxSW8a+KnHaGRkPr8W72m/uuqZuEyaRo/+Kx0fgSx7zqAL1hjiYJ2f+j lKppIyDOlx+di22d97kdW8+oSz9N0D4QLb++a0cSEog3KQ3h9veeIqAbePsCbw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1718189578; a=rsa-sha256; cv=none; b=cDm/xVEzOta7mwrbDKkEDKliqdpWuMFMLGOn5EZHVR5ALsTsKopdYraVJ7fO4L2xOtDPiV 0GwhOvBEDFlFFKOcg1bUmIWx/oqSnEx83Z7SDJq1Ak6Ngqa30kmGzyPae5gwJauAbzJvzV irm+ixWEuk1fcKNHVos+gfffCaIRPg7F9X6MbJIxygUNHdkCXFckLdPSN3xsEbs46ysxIQ vFcgFrUgCBamdNWxWMTQU16cdYl3+UFaeS8TBAONRQr5pTtNTzdSit8D4korb+wmJ7oRaV G8NklXz+dOsqlTLw8XfogLa2bg8GFrtg+wRaAgjJeykaJQ0m8I/J6V/FHDPi/A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1718189578; 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=7OQhkkcmVRwEsxIFKOhUGPDcXP5kFmDItJDiocE/eOw=; b=T828Fp9tZsUWx4DjNoi25Np6Xa47zzo6QsgQ3yWQUX8czpGR6UeiZQtnk9iTlrvxOR9wF7 REZ7Hlaq9GpyMgnXZM7G52OhGz6qvwI2DIix/AUJ21d2/36rvoGG4LqMdIH39p3pUsiZz5 SLwQCB5RBVPNPoUZgALcjGs/S7leGcACZpPzT7ZDzVrSLSqZ4Yc3d9nCF3VxL4Lx4SjlX9 elUyzWCAy+N5Sw1wJF7q8JnoD/RLk9l+Sw3jj9TwQsxQPkVboQpjfxgQc/Lan9SHXXYU3Z 77mCA1562NJPNZ3N8UGE9lsNedixOwupPwdnQiK29ehodDj1HmwG75QykXwUaA== Received: from mail.evolve.de (mail.evolve.de [213.239.217.29]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA512 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mail.evolve.de", Issuer "R3" (verified OK)) (Authenticated sender: grembo/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4Vzj7G0LNqz14vp; Wed, 12 Jun 2024 10:52:57 +0000 (UTC) (envelope-from grembo@freebsd.org) Received: by mail.evolve.de (OpenSMTPD) with ESMTPSA id d7f00b4e (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Wed, 12 Jun 2024 10:52:56 +0000 (UTC) Date: Wed, 12 Jun 2024 12:52:17 +0200 From: Michael Gmelin To: "Poul-Henning Kamp" Cc: Ronald Klop , current@freebsd.org Subject: Re: 14.1-R rc.conf/ifconfig netmask issue was really hard to figure out Message-ID: <20240612125217.68483cf9.grembo@freebsd.org> In-Reply-To: <202406121039.45CAdal6010274@critter.freebsd.dk> References: <202406120747.45C7lRGZ009491@critter.freebsd.dk> <413984193.6719.1718185609109@localhost> <202406121039.45CAdal6010274@critter.freebsd.dk> X-Face: $wrgCtfdVw_H9WAY?S&9+/F"!41z'L$uo*WzT8miX?kZ~W~Lr5W7v?j0Sde\mwB&/ypo^}> +a'4xMc^^KroE~+v^&^#[B">soBo1y6(TW6#UZiC]o>C6`ej+i Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAJFBMVEWJBwe5BQDl LASZU0/LTEWEfHbyj0Txi32+sKrp1Mv944X8/fm1rS+cAAAACXBIWXMAAAsTAAAL EwEAmpwYAAAAB3RJTUUH3wESCxwC7OBhbgAAACFpVFh0Q29tbWVudAAAAAAAQ3Jl YXRlZCB3aXRoIFRoZSBHSU1QbbCXAAAAAghJREFUOMu11DFvEzEUAGCfEhBVFzuq AKkLd0O6VrIQsLXVSZXoWE5N1K3DobBBA9fQpRWc8OkWouaIjedWKiyREOKs+3PY fvalCNjgLVHeF7/3bMtBzV8C/VsQ8tecEgCcDgrzjekwKZ7TwsJZd/ywEKwwP+ZM 8P3drTsAwWn2mpWuDDuYiK1bFs6De0KUUFw0tWxm+D4AIhuuvZqtyWYeO7jQ4Aea 7jUqI+ixhQoHex4WshEvSXdood7stlv4oSuFOC4tqGcr0NjEqXgV4mMJO38nld4+ xKNxRDon7khyKVqY7YR4d+Cg0OMrkWXZOM7YDkEfKiilCn1qYv4mighZiynuHHOA Wq9QJq+BIES7lMFUtcikMnkDGHUoncA+uHgrP0ctIEqfwLHzeSo+eUA66AqzwN6n 2ZHJhw6Qh/PoyC/QENyEyC/AyNjq74Bs+3UH0xYwzDUC4B97HgLocg1QLYgDDO1v f3UX9Y307Ew4AHh67YAFFsxEpkXwpXY3eIgMhAAE3R19L919nNnuD2wlPcDE3UeT L2ytEICQib9BXgS2fU8PrD82ToYO1OEmMSnYTjSqSv9wdC0tPYC+rQRQD9ESnldF CyqfmiYW+tlALt8gH2xrMdC/youbjzPXEun+/ReXsMCDyve3dZc09fn2Oas8oXGc Jj6/fOeK5UmSMPmf/jL+GD8BEj0k/Fn6IO4AAAAASUVORK5CYII= List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Wed, 12 Jun 2024 10:39:36 +0000 "Poul-Henning Kamp" wrote: > Ronald Klop writes: > > > What do you thing about defaulting to /32 on a missing netmask? > > An interface with 1 IP address without any information about the > > network All traffic can go to the gateway. > > I dont think that will work ? > > The gateway will not be inside any of the attached networks, so you > have no route to it ? > You can do an interface route hack sysrc static_routes="gateway default" sysrc route_gateway="-host 1.2.3.4 -interface bla0" sysrc route_default="default 1.2.3.4" This is actually quite useful in some setups, but in the context of deciding on default behavior when no mask is given this is probably not very helpful. Cheers -- Michael Gmelin