Hi there,

I've been struggling with this one for a while, so figured it was time to ask. 
After searching around a lot, I did find this very similar thread a few years 
back: https://marc.info/?t=148164912800052&r=1&w=2 but no fixes that address my 
issue.

Some background.

I have a dedicated server at OVH running FreeBSD 12.1 with bhyve. I'm trying to 
get an OpenBSD VM on the network, and so far failing.

OVH gave me a set of IPs to use for my VMs, but the default gateway is on a 
different subnet, so I need to tell the VMs what interface the default gateway 
is directly attached to. I'm bridging the VMs to the physical network.

The routing table on the OpenBSD 6.7 VM looks like this:

Internet:
Destination Gateway Flags Refs Use Mtu Prio Iface
default 198.27.74.254 UGS 0 14 - 8 vio0
224/4 127.0.0.1 URS 0 15890 32768 8 lo0
127/8 127.0.0.1 UGRS 0 0 32768 8 lo0
127.0.0.1 127.0.0.1 UHhl 1 12 32768 1 lo0
158.69.128.109 02:00:00:4a:78:a8 UHLl 0 59138 - 1 vio0
158.69.128.109/32 158.69.128.109 UCn 0 0 - 4 vio0
198.27.74.254 158.69.128.109 UHSh 1 1848 - 8 vio0

And if I ping the gateway:
two$ ping 198.27.74.254
PING 198.27.74.254 (198.27.74.254): 56 data bytes
ping: sendmsg: Invalid argument
ping: wrote 198.27.74.254 64 chars, ret=-1
ping: sendmsg: Invalid argument
ping: wrote 198.27.74.254 64 chars, ret=-1
ping: sendmsg: Invalid argument
ping: wrote 198.27.74.254 64 chars, ret=-1
ping: sendmsg: Invalid argument
ping: wrote 198.27.74.254 64 chars, ret=-1
^C
--- 198.27.74.254 ping statistics ---
4 packets transmitted, 0 packets received, 100.0% packet loss

Arp shows nothing:
$ arp -an
Host Ethernet Address Netif Expire Flags
158.69.128.109 02:00:00:4a:78:a8 vio0 permanent l


I have a Linux vm on the same host and it works fine.

It's routing table looks like this:
$ ip route
default via 198.27.74.254 dev enp0s5
198.27.74.254 dev enp0s5 scope link


Ping and arp on the Linux vm also show what I'd expect:

$ ping 198.27.74.254
PING 198.27.74.254 (198.27.74.254) 56(84) bytes of data.
64 bytes from 198.27.74.254: icmp_seq=1 ttl=255 time=39.1 ms
64 bytes from 198.27.74.254: icmp_seq=2 ttl=255 time=0.593 ms
^C
--- 198.27.74.254 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 4ms
rtt min/avg/max/mdev = 0.593/19.852/39.112/19.260 ms
$ arp -an
? (198.27.74.254) at 00:07:b4:00:01:01 [ether] on enp0s5

Am I missing something obvious?

Reply via email to