When is a switch not a switch?
D'Arcy Cain
darcy at druid.net
Thu Oct 22 14:03:06 UTC 2020
On 10/21/20 11:16 PM, Jason Tubnor wrote:
> 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.
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 to
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.
> Something like:
>
> 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
assume that you mean to do that in rc.local. Are you sure that the above is
any different than what I did?
> Then for the guest:
>
> vm add -d network -s public <guestname>
Hard to automate when VM can migrate to another host.
--
D'Arcy J.M. Cain <darcy at 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 at VybeNetworks.com, VoIP: sip:darcy at 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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 236 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-virtualization/attachments/20201022/e2cfe366/attachment.sig>
More information about the freebsd-virtualization
mailing list