Date: Thu, 22 Oct 2020 14:16:00 +1100 From: Jason Tubnor <jason@tubnor.net> To: "D'Arcy Cain" <darcy@druid.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: <CACLnyCJmLcRe-19iy2eZY8gxF9PGbzvaudTGEFcAHaMidL8XAw@mail.gmail.com> In-Reply-To: <6267599d-bc0c-6d63-bb19-1fc695e53997@druid.net> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 22 Oct 2020 at 13:47, D'Arcy Cain <darcy@druid.net> wrote: > > Here is what the interfaces look like: > > eth0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 > mtu 1500 > options=80088<VLAN_MTU,VLAN_HWCSUM,LINKSTATE> > ether 14:02:ec:31:60:d0 > media: Ethernet autoselect (1000baseT <full-duplex>) > status: active > nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL> > public: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu > 1500 > ether 02:9d:b2:b8:78:00 > inet 98.158.139.65 netmask 0xffffffe0 broadcast 98.158.139.95 > id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15 > maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200 > root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0 > member: eth0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP> > ifmaxaddr 0 port 1 priority 128 path cost 55 > groups: bridge > nd6 options=9<PERFORMNUD,IFDISABLED> > tap0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 > description: vmnet-BASE-0-public > options=80000<LINKSTATE> > ether 00:bd:5f:56:f8:00 > groups: tap vm-port > media: Ethernet autoselect > status: active > nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL> > Opened by PID 3679 > tap0 is not a member of public so has no way to get to eth0 or public. I'd avoid creating the 'public' bridge and let vm-bhyve create it. Something like: vm switch create public vm switch add public eth0 Then for the guest: vm add -d network -s public <guestname> If you have IPv4/v6 addresses on eth0, you will be able to ping those from the guest. Cheers, Jason. In the VM I set the IP to 71 on the same network. Here is what that looks > like: > > vtnet0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric > 0 > mtu 1500 > options=80028<VLAN_MTU,JUMBO_MTU,LINKSTATE> > ether 22:22:22:22:22:00 > inet 98.158.139.71 netmask 0xffffffe0 broadcast 98.158.139.95 > media: Ethernet 10Gbase-T <full-duplex> > status: active > nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL> > > Everything looks correct but I can't even ping between the host and the VM.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CACLnyCJmLcRe-19iy2eZY8gxF9PGbzvaudTGEFcAHaMidL8XAw>