From owner-freebsd-virtualization@freebsd.org Tue Oct 20 12:35:28 2020 Return-Path: Delivered-To: freebsd-virtualization@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id E4BD64304C6 for ; Tue, 20 Oct 2020 12:35:28 +0000 (UTC) (envelope-from hausen@punkt.de) Received: from mail.punkt.de (mail.punkt.de [IPv6:2a00:b580:8000:11:1c6b:7032:35e9:5616]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4CFtPr33R6z4H7W for ; Tue, 20 Oct 2020 12:35:28 +0000 (UTC) (envelope-from hausen@punkt.de) Received: from [217.29.46.75] (kagate.punkt.de [217.29.33.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.punkt.de (Postfix) with ESMTPSA id E6BF510EBF; Tue, 20 Oct 2020 14:35:26 +0200 (CEST) From: "Patrick M. Hausen" Message-Id: Content-Type: multipart/signed; boundary="Apple-Mail=_7BBBCBFB-692C-4BEB-96A9-692E04966C41"; protocol="application/pgp-signature"; micalg=pgp-sha256 Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.17\)) Subject: Re: When is a switch not a switch? Date: Tue, 20 Oct 2020 14:35:25 +0200 In-Reply-To: <309e9df2-51e0-ff71-15ef-e42d0418f193@druid.net> Cc: freebsd-virtualization@freebsd.org To: D'Arcy Cain References: <57c32e6d-5572-3d3b-1a57-f3064bee7dc2@druid.net> <20201020065630.GE8272@funkthat.com> <3ed627e2-d99a-107e-4135-8aef1ad4ec71@druid.net> <30A67F82-312E-4651-A5E7-2E2AD926FF24@punkt.de> <973b1b56-817f-6976-e5d3-34cfbc373b13@druid.net> <309e9df2-51e0-ff71-15ef-e42d0418f193@druid.net> X-Mailer: Apple Mail (2.3445.104.17) X-Rspamd-Queue-Id: 4CFtPr33R6z4H7W X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of hausen@punkt.de designates 2a00:b580:8000:11:1c6b:7032:35e9:5616 as permitted sender) smtp.mailfrom=hausen@punkt.de X-Spamd-Result: default: False [-3.83 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:b580::/32:c]; MV_CASE(0.50)[]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; HAS_ATTACHMENT(0.00)[]; DMARC_NA(0.00)[punkt.de]; MID_RHS_MATCH_FROM(0.00)[]; NEURAL_HAM_LONG(-1.01)[-1.007]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_HAM_SHORT(-0.94)[-0.941]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_MEDIUM(-0.98)[-0.984]; SIGNED_PGP(-2.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:16188, ipnet:2a00:b580::/32, country:DE]; SUBJECT_ENDS_QUESTION(1.00)[]; MAILMAN_DEST(0.00)[freebsd-virtualization]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Oct 2020 12:35:29 -0000 --Apple-Mail=_7BBBCBFB-692C-4BEB-96A9-692E04966C41 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi! > Am 20.10.2020 um 14:10 schrieb D'Arcy Cain : >=20 > On 10/20/20 7:39 AM, Patrick M. Hausen wrote: >>> When I started I thought of a switch as analogous to a physical = switch. If I am in an office with one ethernet jack but I have multiple = devices I might connect a switch (or hub) to the jack and plug my = devices into the switch. I don't need to create a separate network for = my office. All of my devices are on the company network. >> OK, the "switch" interface in FreeBSD is bridge(4). >=20 > Understood. >=20 >> Or to cite Radia Perlman: >> A bridge is a network device making forwarding decisions based on = layer 2 addresses. >> A router is a network device making forwarding decisions based on = layer 3 addresses. >> "Switch" is a marketing term meaning "faster or cheaper than the = competition". >=20 > I always thought that a switch was a hub with packet switching to = avoid collisions. That is a bridge. A switch simply is a multiport bridge. And a layer 3 = switch is a router. > Or else rename the bridges to "public" and "private". Yep, probably. >> ifconfig_inet0=3D"addm igb0 up" > ifconfig_public=3D"addm bge0 up" > ifconfig_private=3D"addm bge1 up" >=20 >> ifconfig_inet0_alias0=3D"inet 1.2.3.4/24" > ifconfig_public_alias0=3D"inet 1.2.3.4/24" > ifconfig_private_alias0=3D"192.168.151.4/14" >=20 > So why alias? Wouldn't "ifconfig_public=3D" work? We already have ifconfig_public=3D"addm bge0 up" Adding ifconfig_public=3D"inet 1.2.3.4/24" on another line would overwrite the first one. These are just variable assignments not executable code. You cannot have more than one ifconfig_public line. If you need more than one they have to be named ifconfig_public ifconfig_public_alias0 ifconfig_public_alias1 ... Execution stops at the first undefined one, so no gaps, either. > Not sure I need this as long as arp works as it should. Do I really = care what the MAC is? Well, the ARP timeouts specifically of Cisco gear can be enervatingly = long so hosts are not reachable after reboot for minutes ... these settings fix that. HTH, Patrick -- punkt.de GmbH Patrick M. Hausen .infrastructure Kaiserallee 13a 76133 Karlsruhe Tel. +49 721 9109500 https://infrastructure.punkt.de info@punkt.de AG Mannheim 108285 Gesch=C3=A4ftsf=C3=BChrer: J=C3=BCrgen Egeling, Daniel Lienert, Fabian = Stein --Apple-Mail=_7BBBCBFB-692C-4BEB-96A9-692E04966C41 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEgzqrjO/mj9CSsTg2kG8u4u3aiVwFAl+O2Y0ACgkQkG8u4u3a iVxAawf6Avy0WuiR8v3nSAk/5/9/8RE1aaFG5yKyoZe9402/fu0+77c8kdbR5zOy yIcHJxX1hLy+YCo484WSOC9ac3upkZyySBFFhzLjvUGObAzVRtNpKwfE3UO85Yst om2fS3NRDJIYWx5Z3HzGsxbtDyFVYXA1uodq8dwq1rCnVaZtE9gTuU5XpPSt/mdB /OQsFfvmQVfbTLFOrCqqZ8ExR5Zi/sU7KQuMum825K5u9H8TjiPmeg5o9uk+YJyZ blQNdwRiSAaqgEVE5EgR/kPq7jIjCUDc2nef5BkpXwJ1+KORdHAOj7jLnOOkYhOI uJebS8wgkDZZtfr5XFbqh0BMiW+cfQ== =3P8P -----END PGP SIGNATURE----- --Apple-Mail=_7BBBCBFB-692C-4BEB-96A9-692E04966C41--