From nobody Wed Oct 8 06:51:08 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 4chNvf4WnWz6BR89 for ; Wed, 08 Oct 2025 06:51:26 +0000 (UTC) (envelope-from pprocacci@gmail.com) Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4chNvd65mqz3HRX for ; Wed, 08 Oct 2025 06:51:25 +0000 (UTC) (envelope-from pprocacci@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b="SGUIQ/A/"; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of pprocacci@gmail.com designates 2a00:1450:4864:20::52c as permitted sender) smtp.mailfrom=pprocacci@gmail.com Received: by mail-ed1-x52c.google.com with SMTP id 4fb4d7f45d1cf-62fc0b7bf62so10827362a12.2 for ; Tue, 07 Oct 2025 23:51:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1759906278; x=1760511078; darn=freebsd.org; h=content-transfer-encoding:to:subject:message-id:date:from :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=yJnvyQy+lzudD1Bi5/4XD47PZKY7Yp8aqkGcg68L07g=; b=SGUIQ/A/Bykrfy7arqm+fT2nYM4FamTj0HT97rxX5y+jzhbS1D5CVu9jCJpxSOFvpr 4LXY5LI6+9CnG1DhFky+VUJbKUp2QEEMcwLe82fZ22qOp2WXrNe9Bsaz7a6Pr3xzNr7k b8D/d/czjEtA/g6Mw+kHeGCVDM9bqqnW3oAN6PKnwP6mz0VWJrf1UnVxsYVi0Q2Ivb43 afIeNspDVWCSXExHToZ0YQQOR8/PU8r9xjnTrTnhdcL423rneHfvGL6KFEeMrP6fPlNr w5wPgu1+cC2QIbgsTku1pl/bHKGu1LIKe27ln+uGh62stYgZaiZm0n+SGHS52M2uDbFy I+yQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1759906278; x=1760511078; h=content-transfer-encoding:to:subject:message-id:date:from :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=yJnvyQy+lzudD1Bi5/4XD47PZKY7Yp8aqkGcg68L07g=; b=MZTIltarSeEGdLEztK09ML6auoCClp6svjUACMBcmkQxnFDNXc/TpuxHdrKoZBMACG gsO2bsm+UUj8SZhT4ksK5E4RYhICIjKIjyLfUPf6by3/J3LT1GwC7Vkh9dwFKlThgbsK kWJTWLhYg/2uqAgOv+P9NJFCTcFBXVSpfPs6sbQvHGcQB0e2bhnwt7vAxy4eY7vNQ1TC Q/e0jqjl2ptWzqNZ27XT6Ci3zfFoAZ6CoqEQcRK4C/2JPz8yFDCyfCFeyB6h1HJM7QPx cBT8XK4LqmA6d8Tk2g1DwNVzKgeDPZTYOAkiolJSryqvGazpH2QnLhuQh8UOLMnY/ppV sj8Q== X-Gm-Message-State: AOJu0YxzbMqjEByCuHm7VRFh0htOl/3/+HeF3o2AkVj06YfJ3ir3uqww gJN1cVvpa6aD/PHVqXVVYMqbL4WPkpRioEKP0ycnJb2yq4WvumrsXnZTpPdwJlxiskjMRcMuXxT qBKarkgstkxYql00E6RceKnwgTNucPBApAvw= X-Gm-Gg: ASbGncuWOGvq9HCtNvNEQ4hDNrZQPOcRszxbMNVFYbrJProngBPNE2G+/v5XTtCC5Id s7oD2tVYE40NmcNcQw+qcZokHnH9Vh8ywvL/mpu1+ZyCOAL2rtJjdljS4T33TSQCmaRyPMpsZ// yYWk1K96CqXLRIY7PqtzvkXCG0Q6EZZXgM4BTQNcaGyAEtUT957M/sQMM+it1tzrk72eZoor5wH bzpWn+4kx1U7SwzBMiXLg/4zhgf X-Google-Smtp-Source: AGHT+IGPNYRmnNdIvg6hT96SGr7VYIAFKR4x4otliBsydugCkh1LhC66PB8Y62M5UG2odIUK2cXtSSzBtI76CA4TWZw= X-Received: by 2002:a05:6402:2708:b0:632:466d:5d10 with SMTP id 4fb4d7f45d1cf-639d5c3ec89mr1902377a12.20.1759906278315; Tue, 07 Oct 2025 23:51:18 -0700 (PDT) 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 From: Paul Procacci Date: Wed, 8 Oct 2025 02:51:08 -0400 X-Gm-Features: AS18NWBfhU_nt7E3aAy6kYFzU60l_vv1iMqL9ztE18O7ULqmtETGVhKG_1fNrkA Message-ID: Subject: FBSD 15 :: if_bridge help needed To: freebsd-net@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.91 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-0.999]; NEURAL_HAM_SHORT(-0.91)[-0.909]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20230601]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; MIME_GOOD(-0.10)[text/plain]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_TLS_LAST(0.00)[]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; RCPT_COUNT_ONE(0.00)[1]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; FREEMAIL_FROM(0.00)[gmail.com]; DKIM_TRACE(0.00)[gmail.com:+]; FROM_HAS_DN(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; PREVIOUSLY_DELIVERED(0.00)[freebsd-net@freebsd.org]; TO_DN_NONE(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MISSING_XM_UA(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; MLMMJ_DEST(0.00)[freebsd-net@freebsd.org]; RCVD_COUNT_ONE(0.00)[1]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::52c:from] X-Rspamd-Queue-Id: 4chNvd65mqz3HRX Trying to get ahead of this before 15's release. What I thought was going to be pretty simple isn't turning out as such. They say a picture is worth a thousand words: +-------------+ | Jail 1 | <- controls epair0b and tags w/ (epair0b.60) +-------------+ / / <- should trunk vlan 60 +------------+ | bridge0 | +------------+ \ <- should be an access port vhid 60 \ +---------------+ | Jail 2 | <- controls only epair1b and does no tagging +---------------+ Simply put two epairs' "A" sides have been placed into the bridge via: ifconfig bridge0 addm $epair0a tagged 60 up ifconfig bridge0 addm $epair1a untagged 60 up The two corresponding epairs' "B" sides have been placed into each jail via a jail.conf directive: Jail 1: vnet.interface =3D "epair0b"; Jail 2: vnet.interface =3D "epair1b"; Jail 1 then furthers the above, with creating a vlan(4) off of epair0b while Jail 2 does no such thing. This should effectively be a scenario where jail 1 is connected to a trunk, while jail 2 is connected to an access port. Given the documentation (which follows), I cannot for the life of me figure out what I'm doing wrong. Jail 1 cannot communicate with jail 2 over vlan 60 via the bridge. Any insight here would be appreciated. Thanks, Paul Procacci Relevant documentation: " The interface name may be followed by one or more of the following options: untagged vlan-id Set the untagged VLAN identifier for the interface. This is equivalent to the ifuntagged command. tagged vlan-set Set the allowed VLAN list for the interfa= ce. This is equivalent to the iftagged comman= d. " and " iftagged interface vlan-list Set the interface's VLAN access list to the provided list of VLANs. The list should be a comma-separated list of one or mo= re VLAN IDs or ranges formatted as first-last, the value =E2=80= =9Cnone=E2=80=9D meaning the empty set, or the value =E2=80=9Call=E2=80=9D mean= ing all VLANs (1-4094). This option is only meaningful if the vlanfilter option is enabled for the bridge; otherwise, all VLANs will be permitted= . ifuntagged interface vlan-id Set the untagged VLAN identifier for an interface. Frames received on this interface without an 802.1Q tag will be assig= ned to this VLAN instead of the default VLAN 0, and outgoing frame= s on this VLAN will have their 802.1Q tag removed. " bridge0 (trimmed) bridge0: flags=3D1008843 metric 0 mtu 1500 options=3D10 ether 58:9c:fc:10:6f:fa bridge flags=3D1 member: epair1a flags=3D143 port 12 priority 128 path cost 2000 vlan protocol 802.1q untagged 60 member: epair0a flags=3D143 port 10 priority 128 path cost 2000 vlan protocol 802.1q tagged 10,20,30,40,50,60,70 epair0a: flags=3D1008943 metric 0 mtu 1500 options=3D60000b ether 58:9c:fc:10:8b:0f status: active epair1a: flags=3D1008943 metric 0 mtu 1500 options=3D60000b ether 58:9c:fc:10:87:aa status: active epair0b.60: flags=3D1008843 metric 0 mtu 1500 options=3D0 ether 58:9c:fc:10:bb:b7 inet 192.168.60.1 netmask 0xffffff00 broadcast 192.168.60.255 vlan: 60 vlanproto: 802.1q vlanpcp: 0 parent interface: epair0b status: active epair1b: flags=3D1008843 metric 0 mtu 1500 options=3D60000b ether 58:9c:fc:10:00:5d inet 192.168.60.2 netmask 0xffffff00 broadcast 192.168.60.255 status: active --=20 __________________ :(){ :|:& };: