Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Oct 2020 10:03:02 -0400
From:      D'Arcy Cain <darcy@druid.net>
To:        Jason Tubnor <jason@tubnor.net>
Cc:        "Patrick M. Hausen" <hausen@punkt.de>, "freebsd-virtualization@freebsd.org" <freebsd-virtualization@freebsd.org>
Subject:   Re: When is a switch not a switch?
Message-ID:  <b39bb54e-dd49-e7b6-5493-41f40a9ee74a@druid.net>
In-Reply-To: <CACLnyCJmLcRe-19iy2eZY8gxF9PGbzvaudTGEFcAHaMidL8XAw@mail.gmail.com>
References:  <57c32e6d-5572-3d3b-1a57-f3064bee7dc2@druid.net> <20201020065630.GE8272@funkthat.com> <CF189122-7D85-4BF1-9172-75D3EE0E77FB@punkt.de> <3ed627e2-d99a-107e-4135-8aef1ad4ec71@druid.net> <30A67F82-312E-4651-A5E7-2E2AD926FF24@punkt.de> <973b1b56-817f-6976-e5d3-34cfbc373b13@druid.net> <A075C069-1F89-428C-BDB7-7A9F44A4E283@punkt.de> <723CA318-80E9-4A6B-91ED-E791A40CC2C0@punkt.de> <6267599d-bc0c-6d63-bb19-1fc695e53997@druid.net> <CACLnyCJmLcRe-19iy2eZY8gxF9PGbzvaudTGEFcAHaMidL8XAw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--FL3DnYvzZ43pBiL4XQdoqBeRISABlVMxZ
Content-Type: multipart/mixed; boundary="Iuj4QjErnR6RKdLFKD9UAonvqgIFjeGVy";
 protected-headers="v1"
From: D'Arcy Cain <darcy@druid.net>
To: Jason Tubnor <jason@tubnor.net>
Cc: "Patrick M. Hausen" <hausen@punkt.de>,
 "freebsd-virtualization@freebsd.org" <freebsd-virtualization@freebsd.org>
Message-ID: <b39bb54e-dd49-e7b6-5493-41f40a9ee74a@druid.net>
Subject: Re: When is a switch not a switch?
References: <57c32e6d-5572-3d3b-1a57-f3064bee7dc2@druid.net>
 <20201020065630.GE8272@funkthat.com>
 <CF189122-7D85-4BF1-9172-75D3EE0E77FB@punkt.de>
 <3ed627e2-d99a-107e-4135-8aef1ad4ec71@druid.net>
 <30A67F82-312E-4651-A5E7-2E2AD926FF24@punkt.de>
 <973b1b56-817f-6976-e5d3-34cfbc373b13@druid.net>
 <A075C069-1F89-428C-BDB7-7A9F44A4E283@punkt.de>
 <723CA318-80E9-4A6B-91ED-E791A40CC2C0@punkt.de>
 <6267599d-bc0c-6d63-bb19-1fc695e53997@druid.net>
 <CACLnyCJmLcRe-19iy2eZY8gxF9PGbzvaudTGEFcAHaMidL8XAw@mail.gmail.com>
In-Reply-To: <CACLnyCJmLcRe-19iy2eZY8gxF9PGbzvaudTGEFcAHaMidL8XAw@mail.gmail.com>

--Iuj4QjErnR6RKdLFKD9UAonvqgIFjeGVy
Content-Type: multipart/mixed;
 boundary="------------47019A699F3C4F200A021DDF"
Content-Language: en-US

This is a multi-part message in MIME format.
--------------47019A699F3C4F200A021DDF
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: quoted-printable

On 10/21/20 11:16 PM, Jason Tubnor wrote:
>     public: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric=
 0 mtu 1500
>      =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0ether 02:9d:b2:b8:78:00
>      =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0inet 98.158.139.65 netmask 0xfff=
fffe0 broadcast 98.158.139.95
>      =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0id 00:00:00:00:00:00 priority 32=
768 hellotime 2 fwddelay 15
>      =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0maxage 20 holdcnt 6 proto rstp m=
axaddr 2000 timeout 1200
>      =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0root id 00:00:00:00:00:00 priori=
ty 32768 ifcost 0 port 0
>      =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0member: eth0 flags=3D143<LEARNIN=
G,DISCOVER,AUTOEDGE,AUTOPTP>
>      =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0ifma=
xaddr 0 port 1 priority 128 path cost 55
>      =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0groups: bridge
>      =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0nd6 options=3D9<PERFORMNUD,IFDIS=
ABLED>
>     tap0: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0=
 mtu 1500
>      =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0description: vmnet-BASE-0-public=

>      =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0options=3D80000<LINKSTATE>
>      =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0ether 00:bd:5f:56:f8:00
>      =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0groups: tap vm-port
>      =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0media: Ethernet autoselect
>      =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0status: active
>      =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0nd6 options=3D29<PERFORMNUD,IFDI=
SABLED,AUTO_LINKLOCAL>
>      =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Opened by PID 3679
>=20
>=20
> tap0 is not a member of public so has no way to get to eth0 or public.

Odd.  I thought that vm-bhyve did that when the VM came up.

Hmm.  It looks like tap0 gets attached to vm-public if it is configured t=
o=20
attach to public.  Perhaps I just need to name the bridge that way.

> I'd avoid creating the 'public' bridge and let vm-bhyve create it. =20
> Something like:
>=20
> vm switch create public
> vm switch add public eth0

But then I can't create the IP on the host until too late in the boot.  I=
=20
assume that you mean to do that in rc.local.  Are you sure that the above=
 is=20
any different than what I did?

> Then for the guest:
>=20
> vm add -d network -s public <guestname>

Hard to automate when VM can migrate to another host.

--=20
D'Arcy J.M. Cain <darcy@druid.net>         |  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.

--------------47019A699F3C4F200A021DDF--

--Iuj4QjErnR6RKdLFKD9UAonvqgIFjeGVy--

--FL3DnYvzZ43pBiL4XQdoqBeRISABlVMxZ
Content-Type: application/pgp-signature; name="OpenPGP_signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="OpenPGP_signature"

-----BEGIN PGP SIGNATURE-----

wnsEABYIACMWIQSQJTNYM0vv3aTmBCs/5DDweYZnXQUCX5GRFgUDAAAAAAAKCRA/5DDweYZnXabT
AP47hAaylY2roGill+T1YL2IeZ/JM4EmTYaPxadW3aUwJwEArz75nXo5cKfrP1FgH/kKn263O7M+
pVSUf7EuHn2mZwU=
=JFds
-----END PGP SIGNATURE-----

--FL3DnYvzZ43pBiL4XQdoqBeRISABlVMxZ--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?b39bb54e-dd49-e7b6-5493-41f40a9ee74a>