From owner-freebsd-virtualization@freebsd.org Tue Oct 20 09:23:01 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 3D98842B49A for ; Tue, 20 Oct 2020 09:23:01 +0000 (UTC) (envelope-from darcy@druid.net) Received: from mail.vex.net (mail.vex.net [98.158.139.68]) by mx1.freebsd.org (Postfix) with ESMTP id 4CFp7m1dcHz43yd for ; Tue, 20 Oct 2020 09:22:59 +0000 (UTC) (envelope-from darcy@druid.net) Received: from imp.druid.net (unknown [98.158.128.36]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: darcy) by mail.vex.net (Postfix) with ESMTPSA id 6F1FE3874C for ; Tue, 20 Oct 2020 05:22:58 -0400 (EDT) To: freebsd-virtualization@freebsd.org References: <57c32e6d-5572-3d3b-1a57-f3064bee7dc2@druid.net> <20201020065630.GE8272@funkthat.com> From: D'Arcy Cain Autocrypt: addr=darcy@druid.net; keydata= xjMEXu32OxYJKwYBBAHaRw8BAQdAD839OEQVMqCs45KVwLKg4srvl51WsVhMpTGOd9z3Ym3N HUQnQXJjeSBDYWluIDxkYXJjeUBkcnVpZC5uZXQ+wpYEExYIAD4WIQSQJTNYM0vv3aTmBCs/ 5DDweYZnXQUCXu32OwIbAwUJCWYBgAULCQgHAgYVCgkICwIEFgIDAQIeAQIXgAAKCRA/5DDw eYZnXWAxAP9cDL1j4koUFRBNQyC4iMp/cx5KnozmtsFtiTrWdZBrIwD6A2rLFx60tJryd/qp SZpXk7UPDLH/PY1hstjx9WUbXQjOOARe7fY7EgorBgEEAZdVAQUBAQdAbK0SOaTRrkI2QAWz rCz29D2RDOgGTvEbDpyWiyA5RhQDAQgHwn4EGBYIACYWIQSQJTNYM0vv3aTmBCs/5DDweYZn XQUCXu32OwIbDAUJCWYBgAAKCRA/5DDweYZnXaNOAQDC77ymNjoMZQVgDCcmgZEk6IZxn45k nyW17OYCpRctvgD9Fg3aocAbHK7V9AhmSbDPxLNQygQUPjjU7Cyn97b1cQs= Subject: Re: When is a switch not a switch? Message-ID: <5d2726bb-abb8-3648-1e56-9249a3493095@druid.net> Date: Tue, 20 Oct 2020 05:22:57 -0400 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101 Thunderbird/78.3.2 MIME-Version: 1.0 In-Reply-To: <20201020065630.GE8272@funkthat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="30I12hOzoiVtVZRliSK06CgeL4tZqDSMA" X-Rspamd-Queue-Id: 4CFp7m1dcHz43yd X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of darcy@druid.net has no SPF policy when checking 98.158.139.68) smtp.mailfrom=darcy@druid.net X-Spamd-Result: default: False [-1.01 / 15.00]; SUBJECT_ENDS_QUESTION(1.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-0.99)[-0.993]; HAS_ATTACHMENT(0.00)[]; MIME_GOOD(-0.20)[multipart/signed,multipart/mixed,text/plain,application/pgp-keys]; PREVIOUSLY_DELIVERED(0.00)[freebsd-virtualization@freebsd.org]; AUTH_NA(1.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_MEDIUM(-0.19)[-0.189]; TO_DN_NONE(0.00)[]; NEURAL_SPAM_SHORT(0.27)[0.274]; DMARC_NA(0.00)[druid.net]; ARC_NA(0.00)[]; SIGNED_PGP(-2.00)[]; R_SPF_NA(0.00)[no SPF record]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:+,3:+,4:+,5:~]; ASN(0.00)[asn:19842, ipnet:98.158.139.0/24, country:CA]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-virtualization] X-Content-Filtered-By: Mailman/MimeDel 2.1.33 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 09:23:01 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --30I12hOzoiVtVZRliSK06CgeL4tZqDSMA Content-Type: multipart/mixed; boundary="gdgEPREXL9TaObQP4DXAGnTStytJHIAQt"; protected-headers="v1" From: D'Arcy Cain To: freebsd-virtualization@freebsd.org Message-ID: <5d2726bb-abb8-3648-1e56-9249a3493095@druid.net> Subject: Re: When is a switch not a switch? References: <57c32e6d-5572-3d3b-1a57-f3064bee7dc2@druid.net> <20201020065630.GE8272@funkthat.com> In-Reply-To: <20201020065630.GE8272@funkthat.com> --gdgEPREXL9TaObQP4DXAGnTStytJHIAQt Content-Type: multipart/mixed; boundary="------------057A5AAF8CB944A1C1DA409B" Content-Language: en-US This is a multi-part message in MIME format. --------------057A5AAF8CB944A1C1DA409B Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: quoted-printable On 10/20/20 2:56 AM, John-Mark Gurney wrote: > By switch, do you mean use bridge? How specifically is the network > configured? Yes. I did try bridge first but I may not have understand all the nuance= s.=20 I also thought that "switch" meant the same thing as a physical switch = but=20 I guess it is more like a router. That was the point of my subject. > What you are describing sounds like what I do w/ bridge, but my use was= > slightly more complicated. >=20 > Say your host has em0 as the main network, you would create a bridge0 > interface, either via cloned_interfaces or via "ifconfig bridge0 create= ". > Then you would put the em0 interface as a member of the bridge "ifconfig bridge0 addm bge0" in my case but I also have a private network= so=20 "ifconfig bridge0 addm bge0 addm bge1" then. Or do I need two bridges? > interface. You would also add the tap interfaces of the various bhyve > vms as well (don't forget to make sure the tap interface is up on the > host, net.link.tap.up_on_open helps w/ this)... This is the part I am trying to automate so that VM can freely move betwe= en=20 hosts. Is there a way to make tap automatically add itself to a bridge? Thanks for your help. --=20 D'Arcy J.M. Cain | Democracy is three wolves http://www.druid.net/darcy/ | and a sheep voting on +1 416 788 2246 (DoD#0082) (eNTP) | what's for dinner. IM: darcy@VybeNetworks.com, VoIP: sip:darcy@druid.net Disclaimer: By sending an email to ANY of my addresses you are agreeing that: 1. I am by definition, "the intended recipient". 2. All information in the email is mine to do with as I see fit and make such financial profit, political mileage, or good joke as it lends itself to. In particular, I may quote it where I please. 3. I may take the contents as representing the views of your company if I so wish. 4. This overrides any disclaimer or statement of confidentiality that may be included or implied in your message. --------------057A5AAF8CB944A1C1DA409B-- --gdgEPREXL9TaObQP4DXAGnTStytJHIAQt-- --30I12hOzoiVtVZRliSK06CgeL4tZqDSMA Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- wnsEABYIACMWIQSQJTNYM0vv3aTmBCs/5DDweYZnXQUCX46scQUDAAAAAAAKCRA/5DDweYZnXYbd AQCk3vPfkraXGv5YA1zbrH8GQGraOa/6q4bULnO/f8+rlgEA0wZFsP++/kA6Jc+vPtDRKfwyP2GH fKq5ApTRNXEFuwM= =62f0 -----END PGP SIGNATURE----- --30I12hOzoiVtVZRliSK06CgeL4tZqDSMA--