The post shows how to quickly setup a Virtual MX under bhyve, using netmap to interconnect the virtual routers. Control and data-plane VM are connected using in-kernel FreeBSD bridge. In this case the release is : 20.4R3-S1.3
For the control plane VM:
loader="uefi-csm"
cpu=2
memory=4G
wired_memory="yes"
virt_random="1"
graphics="yes"
network0_type="virtio-net"
network0_switch="BR_DCN_VF"
network1_type="virtio-net"
network1_switch="VMX01_INT"
disk0_type="virtio-blk"
disk0_name="vmx-re-image.img"
disk1_type="virtio-blk"
disk1_name="vmx-re-hdd.img"
disk2_type="virtio-blk"
disk2_name="vmx-re-usb.img"
uuid="75b768f5-7398-11ec-b978-3cecef32c22c"
network0_mac="58:9c:fc:05:c3:54"
network1_mac="58:9c:fc:0f:bd:71"
For the Virtual forwarding plane image, the config looks like:
HYPER01-B2B {
interface et-0/1/11.0;
interface et-0/1/5.0;
}
et-0/1/5 {
encapsulation ethernet-bridge;
unit 0;
}
et-0/1/11 {
encapsulation ethernet-bridge;
unit 0;
}