Hello, I'm trying to setup vms using the wonderful vmd and private addresses on 10.0.0.0 range. Following the various entries in the FAQ (faq16) and the examples using bridge/vether I just wanted to adapt to using veb/vport instead since it's designed as a newer and more performant replacement.
I've also seen someone who managed to get it working https://misc.openbsd.narkive.com/nAdmGfbQ/i-can-t-get-veb-vport-to-work-with-vmd So first, I setup the interfaces: # cat /etc/hostname.veb0 add vport0 up # cat /etc/hostname.vport0 inet 10.0.0.1 255.255.255.0 I enable NAT as specified in the FAQ and numerous examples. # cat /etc/pf.conf set skip on lo0 match in all scrub (no-df random-id max-mss 1440) match out on egress inet from vport0:network to any nat-to (egress) block log pass out quick inet pass in on vport0 inet Then, setting up vmd to boot an install71.iso with the appropriate tap interfaces: # cat /etc/vm.conf switch "switch0" { interface veb0 } vm "vm1" { disk "/vm/vm1.qcow2" boot device cdrom cdrom "/vm/install71.iso" interface tap { switch "switch0" } } Finally, once the install is boot, I've tried adding 10.0.0.10 netmask 255.255.255.0 and 10.0.0.1 as gateway with no luck. The nameserver is copied from /etc/resolv.conf but I can't get any packet to the internet. (vm) # ping 8.8.8.8 PING 8.8.8.8 (8.8.8.8): 56 data bytes ping: sendmsg: Can't assign requested address ping: wrote 8.8.8.8 64 chars, ret=-1 (vm) # # ftp http://5.135.187.121/index.html Trying 5.135.187.121... ftp: connect: Can't assign requested address I'm sure I miss almost nothing but I can't find what. Here's the host full ifconfig lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 32768 index 4 priority 0 llprio 3 groups: lo inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 inet 127.0.0.1 netmask 0xff000000 iwx0: flags=808843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,AUTOCONF4> mtu 1500 lladdr e0:d4:64:3c:31:9c index 1 priority 4 llprio 3 groups: wlan egress media: IEEE802.11 autoselect (VHT-MCS9 mode 11ac) status: active ieee80211: join "abc" chan 149 bssid aa:37:d8:93:98:57 82% wpakey wpaprotos wpa2 wpaakms psk wpaciphers ccmp wpagroupcipher ccmp inet 172.20.10.3 netmask 0xfffffff0 broadcast 172.20.10.15 em0: flags=808843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,AUTOCONF4> mtu 1500 lladdr 8c:8c:aa:01:7d:1f index 2 priority 0 llprio 3 media: Ethernet autoselect (none) status: no carrier enc0: flags=0<> index 3 priority 0 llprio 3 groups: enc status: active veb0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> description: switch1-switch0 index 5 llprio 3 groups: veb vport0 flags=3<LEARNING,DISCOVER> port 7 ifpriority 0 ifcost 0 tap0 flags=3<LEARNING,DISCOVER> port 8 ifpriority 0 ifcost 0 vlan0: flags=8002<BROADCAST,MULTICAST> mtu 1500 lladdr e0:d4:64:3c:31:9c index 6 priority 0 llprio 3 encap: vnetid none parent iwx0 txprio packet rxprio outer groups: vlan media: IEEE802.11 autoselect (VHT-MCS9 mode 11ac) status: active vport0: flags=8902<BROADCAST,PROMISC,SIMPLEX,MULTICAST> mtu 1500 lladdr fe:e1:ba:d0:32:b5 index 7 priority 0 llprio 3 groups: vport inet 10.0.0.1 netmask 0xffffff00 broadcast 10.0.0.255 tap0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500 lladdr fe:e1:ba:d1:f2:03 description: vm1-if0-vm1 index 8 priority 0 llprio 3 groups: tap status: active Any help is appreciated. Regards, -- David