Re: tap0 don't receive anything in a vm

2022-05-15 Thread Benoit Chesneau
> Does 10.2.0.1 have a route back to the guest? hrm no, 10.1.0.0 is only internal to the machine indeed... that's probably it :) I need to find a way to expose these ips indeed . Thanks for the hint. BenoƮt

Re: tap0 don't receive anything in a vm

2022-05-15 Thread Mike Karels
On 15 May 2022, at 10:53, Benoit Chesneau wrote: > Thanks but I have already set them to 1. This is kind of unexpected :/ > > ``` > # sysctl net.inet.ip.forwarding > net.inet.ip.forwarding: 1 > # sysctl net.link.tap.up_on_opennet.link.tap.up_on_open: 1 > ``` > > in the vm, pinging the IP hosts are

Re: tap0 don't receive anything in a vm

2022-05-15 Thread Benoit Chesneau
Thanks but I have already set them to 1. This is kind of unexpected :/ ``` # sysctl net.inet.ip.forwarding net.inet.ip.forwarding: 1 # sysctl net.link.tap.up_on_opennet.link.tap.up_on_open: 1 ``` in the vm, pinging the IP hosts are OK: ``` # ifconfig vtnet0 vtnet0: flags=8943 metric 0 mtu 1500 o

tap0 don't receive anything in a vm

2022-05-15 Thread Benoit Chesneau
My goal is to setup a p2p connection between the host and a guest vm and use the host as the nethop for the vm. I'm uskng bhyve for this setup: 1. on the host i create a tap tap0 interface and assign to it the IP 10.1.0,1 2. i create and start the vm using vm-bhyve. 3. in the vm I set the vtnet0