From nobody Wed Dec 20 20:32:45 2023 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 4SwQHH1FN2z55JvM for ; Wed, 20 Dec 2023 20:32:59 +0000 (UTC) (envelope-from freebsd@grem.de) 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)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SwQHG4qbhz3PGF for ; Wed, 20 Dec 2023 20:32:58 +0000 (UTC) (envelope-from freebsd@grem.de) Authentication-Results: mx1.freebsd.org; none Received: by mail.evolve.de (OpenSMTPD) with ESMTP id 0bbcd56a; Wed, 20 Dec 2023 20:32:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=grem.de; h=date:from:to:cc :subject:message-id:in-reply-to:references:mime-version :content-type:content-transfer-encoding; s=20180501; bh=txXwe7Ep dgCOOmNse8iNK1wxLgg=; b=O9u04BOQ++nalijwB1OXMhT0kF7Dcs+71BsdZ1ce JP4zLL0ErO+Iqtu5nSq+A87+HswngQMx1ctuVXPpgbB0G80V6d4dsGTBthb/VkuW eMVEz5EKY8QahedgNR0WkPluHkVecibehK/s0FNVyd+go0GeNtrVP8lBQtohK5HY VM0OsektSG9N7l2hI0n9J1erxICHnW+VuiuHM9jFd2/oSnOCflZpsslWomC0LhLw u+R7eTSaHAB5lICcTqmAgUbU3hhHl/bDl2oT89t95r6AHqDn9O5vuW4lF9zXeaYa 3lgXMJ5OEJHa5RDOgH//pZorqo2kzaSUYEL9fhx4ijzVnw== DomainKey-Signature: a=rsa-sha1; c=nofws; d=grem.de; h=date:from:to:cc :subject:message-id:in-reply-to:references:mime-version :content-type:content-transfer-encoding; q=dns; s=20180501; b=nT Oj09Cgmb5Iorij2LnopDOgSjERP4hZeWHXW6vrbrI9l9ByW2UeU40D5pki2/FFwi nkTTt7CiLbvH1DnbR8CQaH5zBgoMsuwgf0IEwrWDpkvhr7dxpHs2TUgWYvff5y/i Af3H0dHrRupzgkbRp8y+GWLpF6B1z1Web7R9snYLzJwOPbT9J2r2ZKbcmvVo3Wv0 EG7uzkFkEB5wzdDOzMYy01oyoMElxu4nGsOUlUDfoJzv4dEDCFVJfXQreS2vUuNv gcvn3zVBgDMssqpGtn+U6DG5QXxLb/adDWr1dGp8stdbsr6y4MBts/qgztQADDxD nHV6b/hWMfcN6nHpUNQQ== Received: by mail.evolve.de (OpenSMTPD) with ESMTPSA id ddaedc6d (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Wed, 20 Dec 2023 20:32:49 +0000 (UTC) Date: Wed, 20 Dec 2023 21:32:45 +0100 From: Michael Gmelin To: "Patrick M. Hausen" Cc: FreeBSD Net Subject: Re: Display of bridge member interfaces cut short - bug or intention? Message-ID: <20231220213245.3596498a@bsd64.grem.de> In-Reply-To: References: 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: 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=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:24940, ipnet:213.239.192.0/18, country:DE] X-Spamd-Bar: ---- X-Rspamd-Queue-Id: 4SwQHG4qbhz3PGF On Wed, 20 Dec 2023 18:04:36 +0100 "Patrick M. Hausen" wrote: > Hi all, > > as some probably know we provide web hosting services and we use > jails for that. > > On some particular host we have 255 vnet jails all of which are > connected to the external interface of the host - renamed to "inet0" > in our environment - via if_bridge(4) and all managed with iocage. > > root@ph003:~ # grep inet0 /iocage/jails/vpro*/config.json|wc -l > 255 > > Of these 251 also have a second epair interface connected to a > private bridge named "priv1". These are used for connections to the > central database server which should not be exposed to the Internet. > > root@ph003:~ # grep priv1 /iocage/jails/vpro*/config.json | wc -l > 251 > > While looking for a different problem to my great suprise I found > today that ifconfig truncates the list of member interfaces for both > bridge instances. And both to the same value of 102, although the > member numbers are (albeit slightly) different: > > root@ph003:~ # ifconfig inet0|grep member:|wc -l > 102 > root@ph003:~ # ifconfig priv1 | grep member: | wc -l > 102 > > All 255 jails are connected to the external network and perfectly > reachable from the Internet. That's why I conclude that the display > is wrong, not the bridge configuration. > > What's happening here? Is this intentional or shall I file a bug > report? > > More importantly: either way is this only cosmetic or will we hit > another unexpected limit of the number of interfaces that can be > members of a bridge any time soon? > Hi Patrick, I could reproduce the issue and created a fix: https://reviews.freebsd.org/D43135 As far as I can tell the issue is cosmetic (unless, of course, you have automation based on libifconfig or the output of the ifconfig command). Best Michael -- Michael Gmelin