Dear @ll,
I'm experimanting with byhve and vale, so far I got the following working:
vmTest0 and vmTest1 can ping each other, piece of cake.
Now I wanted to attach the hypervisor to vale1 switch as well.
I have tried tap and netgraph, but in both cases I'm unable to connect the device to the vale switch, ifconfig always shows no carrier and I'm unable to ping either vmTest0 or vmTest1 from the hypervisor, although ping works between vmTest0 and vmTest1.
Any help or pointing in the right direction would be highly appreciated!
I'm experimanting with byhve and vale, so far I got the following working:
Code:
$ vm switch create -t vale vale1
$ vm info vmTest0 | grep switch
virtual-switch: vale1
$ vm info vmTest1 | grep switch
virtual-switch: vale1
$ vm start vmTest0
$ vm start vmTest1
$ valectl
valed75cf:887df bridge_idx 0 port_idx 0
valed75cf:7df6d bridge_idx 0 port_idx 1
vmTest0 and vmTest1 can ping each other, piece of cake.
Now I wanted to attach the hypervisor to vale1 switch as well.
I have tried tap and netgraph, but in both cases I'm unable to connect the device to the vale switch, ifconfig always shows no carrier and I'm unable to ping either vmTest0 or vmTest1 from the hypervisor, although ping works between vmTest0 and vmTest1.
Any help or pointing in the right direction would be highly appreciated!

tap device | comments | |
---|---|---|
$ ifconfig tap create | # create tap interface | |
$ valectl -a valed75cf:tap0 |
| |
$ ifconfig tap0 inet 172.16.254.1/24 | # assign IP addr | |
$ ifconfig tap0 up | # activate tap0 | |
$ ifconfig tap0 tap0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=180000<LINKSTATE,NETMAP> ether 58:9c:fc:10:ff:8a inet 172.16.254.1 netmask 0xffffff00 broadcast 172.16.254.255 groups: tap media: Ethernet 1000baseT <full-duplex> status: no carrier nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL> | # print tap0 information | |
$ valectl valed75cf:887df bridge_idx 0 port_idx 0 valed75cf:7df6d bridge_idx 0 port_idx 1 valed75cf:tap0 bridge_idx 0 port_idx 2 | # print vale1 switch information | |
netgraph device | comments | |
$ ngctl mkpeer . eiface hook ether | # create ngeth0 device | |
$ valectl -a valed75cf:ngeth0 | # attach ngeth0 to vale1 switch (valed75cf) | |
$ ifconfig ngeth0 inet 172.16.254.1/24 | # assign IP addr | |
$ ifconfig ngeth0 up | # activate ngeth0 | |
$ ifconfig ngeth0 ngeth0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=100028<VLAN_MTU,JUMBO_MTU,NETMAP> ether 58:9c:fc:10:ff:d5 inet 172.16.254.1 netmask 0xffffff00 broadcast 172.16.254.255 media: Ethernet autoselect status: no carrier nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL> | # print ngeth0 information | |
$ valectl valed75cf:887df bridge_idx 0 port_idx 0 valed75cf:7df6d bridge_idx 0 port_idx 1 valed75cf:ngeth0 bridge_idx 0 port_idx 2 | # print vale1 switch information |