Solved tap0 interface lost IP address after bhyve guest poweroff/reboot

Hello, I have centos7 under bhyve, created tap0 for it (+ NAT by pf).
tap0 on host has static IP (192.168.2.1), guest centos has also static IP (192.168.2.2) with default route to the tap0 (+ simple NAT by pf).

Everything works, but when I shutdown or restart bhyve guest (centos), my tap0 interface lost IP address - is it bug? Any ideas? Thanks!
 
Addresses on tap interfaces are deleted when the process that has opened the tap device exits. To keep the addresses around, use a 'vmnet' interface instead. This is basically the same as a tap device.
 
Back
Top