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>
next in thread | raw e-mail | index | archive | help
--0000000000008c10400614f5db5f
Content-Type: text/plain; charset="UTF-8"
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)
--0000000000008c10400614f5db5f
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr"><div>Hello all,</div><div><br></div><div>My laptop have re=
0 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 progr=
ams 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 e=
thernet dongle or even laptop wifi card?</div><div><br></div><div>Thanks,<b=
r></div><div><br></div><div>-----<br></div><div>re0: flags=3D1008943<UP,=
BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST,LOWER_UP> metric 0 mtu 1500<=
br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 options=3D8209b<RXCSUM,TXCSUM,VLAN_MTU,VL=
AN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,LINKSTATE><br>=C2=A0 =C2=A0 =C2=A0 =
=C2=A0 ether 00:2b:67:df:c6:73<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 inet 192.168.=
1.67 netmask 0xffffff00 broadcast 192.168.1.255<br>=C2=A0 =C2=A0 =C2=A0 =C2=
=A0 media: Ethernet autoselect (1000baseT <full-duplex>)<br>=C2=A0 =
=C2=A0 =C2=A0 =C2=A0 status: active<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 nd6 opti=
ons=3D29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL><br>lo0: flags=3D100804=
9<UP,LOOPBACK,RUNNING,MULTICAST,LOWER_UP> metric 0 mtu 16384<br>=C2=
=A0 =C2=A0 =C2=A0 =C2=A0 options=3D680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM=
_IPV6,TXCSUM_IPV6><br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 inet 127.0.0.1 netmask=
0xff000000<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 inet6 ::1 prefixlen 128<br>=C2=
=A0 =C2=A0 =C2=A0 =C2=A0 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2<br>=C2=
=A0 =C2=A0 =C2=A0 =C2=A0 groups: lo<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 nd6 opti=
ons=3D21<PERFORMNUD,AUTO_LINKLOCAL><br>vm-public: flags=3D1008843<=
UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,LOWER_UP> metric 0 mtu 1500<br>=
=C2=A0 =C2=A0 =C2=A0 =C2=A0 options=3D0<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 ethe=
r 02:f4:ac:f8:d6:be<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 id 00:00:00:00:00:00 pri=
ority 32768 hellotime 2 fwddelay 15<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 maxage 2=
0 holdcnt 6 proto rstp maxaddr 2000 timeout 1200<br>=C2=A0 =C2=A0 =C2=A0 =
=C2=A0 root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0<br>=C2=A0 =
=C2=A0 =C2=A0 =C2=A0 member: re0 flags=3D143<LEARNING,DISCOVER,AUTOEDGE,=
AUTOPTP><br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ifma=
xaddr 0 port 1 priority 128 path cost 20000<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =
groups: bridge vm-switch viid-4c918@<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 nd6 opt=
ions=3D9<PERFORMNUD,IFDISABLED></div><div>-----</div><br><span class=
=3D"gmail_signature_prefix">-- </span><br><div dir=3D"ltr" class=3D"gmail_s=
ignature" data-smartmail=3D"gmail_signature"><div dir=3D"ltr"><span style=
=3D"color:rgb(102,102,102)">Nuno Teixeira<br>FreeBSD Committer (ports)</spa=
n></div></div></div>
--0000000000008c10400614f5db5f--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFDf7ULUuwxN8nPRR6o4i5SPUZH2yWA8N67UFCL3oxo62n4h9g>
