FreeBSD Bhyve Network Static spoofed MAC address

Posted on Posted in Bhyve, FreeBSD, Networking

Recently I’ve had a few cases whereby I needed a particular physical MAC address presented to the Bhyve guest Virtual Machine Network Interface. Having originally tried accomplishing this within the guest operating system with various degrees of success, I search around and stumbled on a thread on the iohyve github issues page.

To set a static, or to spoof a particular MAC address in Bhyve VMs, use the following virtio property when specifying the tap interface.

 -s 2:0,virtio-net,tap1,mac=XX:XX:XX:XX:XX:XX 

Leave a Reply

Your email address will not be published. Required fields are marked *