Re: Use aditional network card for vm
- In reply to: Nuno Teixeira : "Use aditional network card for vm"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 31 Mar 2024 19:07:14 UTC
(...) 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 à(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-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) > -- Nuno Teixeira FreeBSD Committer (ports)