Date: Sun, 31 Mar 2024 20:07:14 +0100 From: Nuno Teixeira <eduardo@freebsd.org> To: FreeBSD virtualization <freebsd-virtualization@freebsd.org> Subject: Re: Use aditional network card for vm Message-ID: <CAFDf7UL7bB_9UuGkSf2iJ3ikZdBzuT8-Y7g0uYn9PryMU3_Zqw@mail.gmail.com> In-Reply-To: <CAFDf7ULUuwxN8nPRR6o4i5SPUZH2yWA8N67UFCL3oxo62n4h9g@mail.gmail.com> References: <CAFDf7ULUuwxN8nPRR6o4i5SPUZH2yWA8N67UFCL3oxo62n4h9g@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--0000000000005727400614f995c5 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable (...) Ok I think I get it: - Use wifi card for laptop internet connection. - passtrhu re0 - edit vm/.config/system.info and remove bridge to re0. Nice manual about it: http://empt1e.blogspot.com/2016/10/bhyve-networking-options.html Nuno Teixeira <eduardo@freebsd.org> escreveu (domingo, 31/03/2024 =C3=A0(s) 15:40): > 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-bhyv= e > 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=3D1008943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST,LOWER_UP> > metric 0 mtu 1500 > > options=3D8209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAG= IC,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=3D29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL> > lo0: flags=3D1008049<UP,LOOPBACK,RUNNING,MULTICAST,LOWER_UP> metric 0 mtu > 16384 > options=3D680003<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=3D21<PERFORMNUD,AUTO_LINKLOCAL> > vm-public: flags=3D1008843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,LOWER_U= P> > metric 0 mtu 1500 > options=3D0 > 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=3D143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP> > ifmaxaddr 0 port 1 priority 128 path cost 20000 > groups: bridge vm-switch viid-4c918@ > nd6 options=3D9<PERFORMNUD,IFDISABLED> > ----- > > -- > Nuno Teixeira > FreeBSD Committer (ports) > --=20 Nuno Teixeira FreeBSD Committer (ports) --0000000000005727400614f995c5 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div>(...)<br><br></div><div>Ok I think I get it:</div><di= v><br></div><div>- Use wifi card for laptop internet connection.</div><div>= - passtrhu re0<br></div><div>- edit vm/.config/<a href=3D"http://system.inf= o">system.info</a> and remove bridge to re0.<br><br></div><div>Nice manual = about it:<br><a href=3D"http://empt1e.blogspot.com/2016/10/bhyve-networking= -options.html">http://empt1e.blogspot.com/2016/10/bhyve-networking-options.= html</a></div></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class= =3D"gmail_attr">Nuno Teixeira <<a href=3D"mailto:eduardo@freebsd.org">ed= uardo@freebsd.org</a>> escreveu (domingo, 31/03/2024 =C3=A0(s) 15:40):<b= r></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex= ;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir=3D"ltr">= <div>Hello all,</div><div><br></div><div>My laptop have re0 and iwlwifi0 ne= twork cards with only re0 at use.</div><div>vm-bhyve sets it to ifconfig be= llow.</div><div><br></div><div>I suspect that re0 being in promiscous mode,= it will originate some network problems with backup programs like restic w= hen 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 h= ave 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=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,VLAN_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 0xffff= ff00 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 options=3D29<PERFORMNU= D,IFDISABLED,AUTO_LINKLOCAL><br>lo0: flags=3D1008049<UP,LOOPBACK,RUNN= ING,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 options=3D21<PERFORMNU= D,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 ether 02:f4:ac:f8:d6:be<b= r>=C2=A0 =C2=A0 =C2=A0 =C2=A0 id 00:00:00:00:00:00 priority 32768 hellotime= 2 fwddelay 15<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 maxage 20 holdcnt 6 proto rst= p 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 mem= ber: re0 flags=3D143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP><br>=C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ifmaxaddr 0 port 1 priorit= y 128 path cost 20000<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 groups: bridge vm-swit= ch viid-4c918@<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 nd6 options=3D9<PERFORMNUD= ,IFDISABLED></div><div>-----</div><br><span class=3D"gmail_signature_pre= fix">-- </span><br><div dir=3D"ltr" class=3D"gmail_signature"><div dir=3D"l= tr"><span style=3D"color:rgb(102,102,102)">Nuno Teixeira<br>FreeBSD Committ= er (ports)</span></div></div></div> </blockquote></div><br clear=3D"all"><br><span class=3D"gmail_signature_pre= fix">-- </span><br><div dir=3D"ltr" class=3D"gmail_signature"><div dir=3D"l= tr"><span style=3D"color:rgb(102,102,102)">Nuno Teixeira<br>FreeBSD Committ= er (ports)</span></div></div> --0000000000005727400614f995c5--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFDf7UL7bB_9UuGkSf2iJ3ikZdBzuT8-Y7g0uYn9PryMU3_Zqw>