Solved How to mount host to bridge device?

I currently have a computer connected by a single Ethernet cable to the modem.

If is possible to setup a bridge in the physical machine, so that the host (the FreeBSD that runs the bridge), so that both the bhyve, and jails guests can be visible in the router's network, as well the host device, without having to add a second cable?
 
Just add the external interface to the bridge(4).
I created a bridge with ifconfig bridge create, then added my physical network interface re0 to the bridge0, and got the bridge up with ifconfig bridge0 up.

After reading https://docs.freebsd.org/en/books/handbook/jails/#creating-vnet-jail to create a jail with a bridge and trying to follow the instructions with ifconfig bridge0 addm em0 but got the error ifconfig: BRDGADD em0: No such file or directory. Running ifconfig, I get only three interfaces: re0 my ethernet interface, lo0 the loopback device and bridge0, the bridge, which is connected with re0. And when I try to create the em0 interface with either ifconfig em create or ifconfig em0 create I get the error ifconfig: SIOCIFCREATE2 (em0): Invalid argument.

reading the [man(4)]em[/man(4)], says that probably the em device is just a intel modem driver, thus the solution is change the em0 from the instructions to my modem device re0, when reading instructions.
 
reading the [man(4)]em[/man(4)], says that probably the em device is just a intel modem driver, thus the solution is change the em0 from the instructions to my modem device re0, when reading instructions.
That's it. Except that the term isn't modem but network card (or device).
 
Back
Top