bhyve Move VMs from vmswitch to vether0?

Hi all, today I've learned and been reading about VETHER(4). Virtual ethernet interface on FreeBSD, wanted to try it for my VMs networking, activated it as such;

pkg install -y net/vether-kmod
kldload if_vether
ifconfig vether0 create
ifconfig vether0 10.0.0.1/24 up



My VMs currently are networking through vm-vmswitch with a set of private IP block; 192.168.2.1/29 (PF - NAT involved);

Code:
# vm switch list
NAME      TYPE      IFACE        ADDRESS         PRIVATE  MTU  VLAN  PORTS
vmswitch  standard  vm-vmswitch  192.168.2.1/29  no       -    -     -

My question is;
Is it possible to not use any virtual switch at all, but create a vether0 on the host, and assign it private IPs and aliases (thinking each alias IP would be for each VM of mine), and make VMs communicate with each other&host machine through vether0 and its IP aliases?

My vether is as follows;

Code:
vether0: flags=1008843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,LOWER_UP> metric 0 mtu 1500
        options=28<VLAN_MTU,JUMBO_MTU>
        ether 02:2f:d4:1a:0a:dd
        inet 10.0.0.1 netmask 0xffffff00 broadcast 10.0.0.255
        inet 10.0.0.2 netmask 0xffffff00 broadcast 10.0.0.255
        groups: vether
        media: Ethernet autoselect
        status: active
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>

In order to try these all above, on my OpenBSD VM, I;
Added in its conf file: network0_device="vether0"
Started it, defined it's static IP as; 10.0.0.2 (vether0 alias), and gateway as 10.0.0.1 (vether0 IP).

That didn't work. Any clue?

Regards.
 
Back
Top