Date: Sun, 31 Mar 2024 14:40:32 +0000 From: Nuno Teixeira <eduardo@freebsd.org> To: FreeBSD virtualization <freebsd-virtualization@freebsd.org> Subject: Use aditional network card for vm Message-ID: <CAFDf7ULUuwxN8nPRR6o4i5SPUZH2yWA8N67UFCL3oxo62n4h9g@mail.gmail.com>
index | next in thread | raw e-mail
[-- Attachment #1 --]
Hello all,
My laptop have re0 and iwlwifi0 network cards with only re0 at use.
vm-bhyve sets it to ifconfig bellow.
I suspect that re0 being in promiscous mode, it will originate some network
problems with backup programs like restic when reading too much files
(restic check --read-data) and to fix this issue I turn off vm-bhyve
network setting.
Is it possible to have a card just to be in use by bhyve, e.g. usb external
ethernet dongle or even laptop wifi card?
Thanks,
-----
re0: flags=1008943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST,LOWER_UP>
metric 0 mtu 1500
options=8209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,LINKSTATE>
ether 00:2b:67:df:c6:73
inet 192.168.1.67 netmask 0xffffff00 broadcast 192.168.1.255
media: Ethernet autoselect (1000baseT <full-duplex>)
status: active
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
lo0: flags=1008049<UP,LOOPBACK,RUNNING,MULTICAST,LOWER_UP> metric 0 mtu
16384
options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
inet 127.0.0.1 netmask 0xff000000
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
groups: lo
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
vm-public: flags=1008843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,LOWER_UP>
metric 0 mtu 1500
options=0
ether 02:f4:ac:f8:d6:be
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: re0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
ifmaxaddr 0 port 1 priority 128 path cost 20000
groups: bridge vm-switch viid-4c918@
nd6 options=9<PERFORMNUD,IFDISABLED>
-----
--
Nuno Teixeira
FreeBSD Committer (ports)
[-- Attachment #2 --]
<div dir="ltr"><div>Hello all,</div><div><br></div><div>My laptop have re0 and iwlwifi0 network cards with only re0 at use.</div><div>vm-bhyve sets it to ifconfig bellow.</div><div><br></div><div>I suspect that re0 being in promiscous mode, it will originate some network problems with backup programs like restic when reading too much files (restic check --read-data) and to fix this issue I turn off vm-bhyve network setting.<br><br></div><div>Is it possible to have a card just to be in use by bhyve, e.g. usb external ethernet dongle or even laptop wifi card?</div><div><br></div><div>Thanks,<br></div><div><br></div><div>-----<br></div><div>re0: flags=1008943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST,LOWER_UP> metric 0 mtu 1500<br> options=8209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,LINKSTATE><br> ether 00:2b:67:df:c6:73<br> inet 192.168.1.67 netmask 0xffffff00 broadcast 192.168.1.255<br> media: Ethernet autoselect (1000baseT <full-duplex>)<br> status: active<br> nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL><br>lo0: flags=1008049<UP,LOOPBACK,RUNNING,MULTICAST,LOWER_UP> metric 0 mtu 16384<br> options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6><br> inet 127.0.0.1 netmask 0xff000000<br> inet6 ::1 prefixlen 128<br> inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2<br> groups: lo<br> nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL><br>vm-public: flags=1008843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,LOWER_UP> metric 0 mtu 1500<br> options=0<br> ether 02:f4:ac:f8:d6:be<br> id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15<br> maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200<br> root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0<br> member: re0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP><br> ifmaxaddr 0 port 1 priority 128 path cost 20000<br> groups: bridge vm-switch viid-4c918@<br> nd6 options=9<PERFORMNUD,IFDISABLED></div><div>-----</div><br><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><span style="color:rgb(102,102,102)">Nuno Teixeira<br>FreeBSD Committer (ports)</span></div></div></div>
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFDf7ULUuwxN8nPRR6o4i5SPUZH2yWA8N67UFCL3oxo62n4h9g>
