I am new to bhyve, and am trying to set it up. My end goal is to stand up an OPNsense VM, so I can use it to convert the configs from my pfSense box before migrating the physical box.
So I have looked at several sources, from the handbook, to Vermaden's blog, to a Klara article on the subject, as well as a few others, including the one . The problem I am having is with setting up the networking. Some of the sources use
while others use the
I have been trying to grok the difference between these two setups, but have not found anything that discusses which is better, or whether one is older and the other newer, and what the preferred method of the two would be to use.
Can someone provide me some insight?
Thanks.
So I have looked at several sources, from the handbook, to Vermaden's blog, to a Klara article on the subject, as well as a few others, including the one . The problem I am having is with setting up the networking. Some of the sources use
ifconfig to set up the tap devices and the network, like
Code:
# ifconfig tap0 create
# sysctl net.link.tap.up_on_open=1
net.link.tap.up_on_open: 0 -> 1
# ifconfig bridge0 create
# ifconfig bridge0 addm igb0 addm tap0
# ifconfig bridge0 up
while others use the
vm switch commands:
Code:
# vm init
# vm switch create public
# vm switch add public em0
I have been trying to grok the difference between these two setups, but have not found anything that discusses which is better, or whether one is older and the other newer, and what the preferred method of the two would be to use.
Can someone provide me some insight?
Thanks.