Date: Mon, 19 Oct 2020 22:02:17 -0400 From: D'Arcy Cain <darcy@druid.net> To: freebsd-virtualization@freebsd.org Subject: When is a switch not a switch? Message-ID: <57c32e6d-5572-3d3b-1a57-f3064bee7dc2@druid.net>
next in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --jVzU7RkHyoBriBy8iuFhRVZkXbfYyLhb4 Content-Type: multipart/mixed; boundary="vjirb1z0fgPSLvGiZf0mNmArUiUwxwQNj"; protected-headers="v1" From: D'Arcy Cain <darcy@druid.net> To: freebsd-virtualization@freebsd.org Message-ID: <57c32e6d-5572-3d3b-1a57-f3064bee7dc2@druid.net> Subject: When is a switch not a switch? --vjirb1z0fgPSLvGiZf0mNmArUiUwxwQNj Content-Type: multipart/mixed; boundary="------------5AA5242C1A18EB13CC2E233C" Content-Language: en-US This is a multi-part message in MIME format. --------------5AA5242C1A18EB13CC2E233C Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable I am using bhyve with vm-bhyve, I am trying to set up a virtual network = with multiple hosts. The idea is that a VM would be on the same virtual = network no matter which actual host it is on. Say I have a public network a.b.c.0/24. I thought I could create a switc= h=20 on a host. The host would be a.b.c.1 and the VMs would be a.b.c.100 and = a.b.c.101. The idea would be that the VMs would appear on the real netwo= rk.=20 Then the 101 VM could migrate to a.b.c.2 and still be accessible. I=20 envisioned some sort of proxy arp would happen so that every VM would sim= ply=20 announce itself wherever it was. This did seem to work in that I could ping from the VM: # ping 8.8.8.8 PING 8.8.8.8 (8.8.8.8): 56 data bytes 64 bytes from 8.8.8.8: icmp_seq=3D0 ttl=3D114 time=3D1.734 ms Even IPV6: # ping6 2605:2600:1001::4b PING6(56=3D40+8+8 bytes) 2605:2600:1001::4 --> 2605:2600:1001::4b 16 bytes from 2605:2600:1001::4b, icmp_seq=3D0 hlim=3D64 time=3D0.960 ms 16 bytes from 2605:2600:1001::4b, icmp_seq=3D1 hlim=3D64 time=3D0.415 ms However TCP doesn't work. In fact, I could only ping by IP because the=20 system couldn't connect to the DNS server, to get an address even though = it=20 could ping it. I guess my first question is does this seem doable? If so, what am I=20 missing? Is it possible that a bhyve switch is more like a router? Thanks. --=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. --------------5AA5242C1A18EB13CC2E233C-- --vjirb1z0fgPSLvGiZf0mNmArUiUwxwQNj-- --jVzU7RkHyoBriBy8iuFhRVZkXbfYyLhb4 Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- wnsEABYIACMWIQSQJTNYM0vv3aTmBCs/5DDweYZnXQUCX45FKQUDAAAAAAAKCRA/5DDweYZnXZXp AP4lCdN3GC8dXFhmD6sxAqlzbNK1WG3R9xskwBduSZh66wD/Vb+p6N7tgOMaTueIYXDA1dSgI71r hxnO2UeGIdBvXQw= =dLiE -----END PGP SIGNATURE----- --jVzU7RkHyoBriBy8iuFhRVZkXbfYyLhb4--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?57c32e6d-5572-3d3b-1a57-f3064bee7dc2>