Hey guys, well, here is the whole tale:
And here is the tl;dr:
Solved - vm-bhyve: No network connection from guest
I have two servers, both with identical hardware and software setup (FreeBSD 11, newest patches, used Synth to install vm-bhyve. On both machines I have followed the installation instructions to the letter. On both machines I have one external interface, thus using NAT for bhyve IP addresses. On...
forums.FreeBSD.org
And here is the tl;dr:
- Got into freebsd these days, freshinstall
- I dont know much about networking
- No firewall (pf) and anything
- No nat
- Followed up the vm-bhyve guide to run my vm in addition of other tutorials
- Looks like the public network is getting in and out:
-
Code:
local: _netgraph,: bad variable name ------------------------ Virtual Switch: public ------------------------ type: standard ident: vm-public vlan: - physical-ports: wlan0 bytes-in: 201656 (196.929K) bytes-out: 5270992 (5.026M) virtual-port device: tap0 vm: arch
- But ping to external urls or pacman install dosent work
- ping localhost inside guest works
- but if I ping the inet address of my host inside guest it says
ping: Connect: Network is unreachable
- Some can-be relevant output:
-
Code:
~ > ifconfig vm-public: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 ether 36:ae:c9:d3:39:68 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: tap0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP> ifmaxaddr 0 port 5 priority 128 path cost 2000000 member: wlan0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP> ifmaxaddr 0 port 2 priority 128 path cost 138888 groups: bridge vm-switch viid-4c918@ nd6 options=9<PERFORMNUD,IFDISABLED> tap0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500 description: vmnet/arch/0/public options=80000<LINKSTATE> ether 58:9c:fc:10:e5:0c groups: tap vm-port media: Ethernet autoselect status: active nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL> Opened by PID 42985