LOL @Michel Kohanim I'm not a guru it just always works for me
@tazman and @rob7419
You don't really need to `dhclient` the `vm-public` nor `tap` devices, those don't need an IP address. Check your rc.conf, there should be no `ifconfig` entries besides these 2:
ifconfig_re0="DHCP"
ifconfig_re0_ipv6="accept_rtadv"
after reboot your `ifconfig -a` should look similar to this (no tap, but vm-bridge is UP):
re0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=8209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,LINKSTATE>
ether 00:21:b9:02:5d:7a
inet6 fe80::221:b9ff:fe02:5d7a%re0 prefixlen 64 scopeid 0x1
inet6 fd18:31e5:33f2:844e:221:b9ff:fe02:5d7a prefixlen 64 detached autoconf
inet 10.0.1.152 netmask 0xffffff00 broadcast 10.0.1.255
media: Ethernet autoselect (1000baseT <full-duplex>)
status: active
nd6 options=23<PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCAL>
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
inet 127.0.0.1 netmask 0xff000000
groups: lo
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
vm-public: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether 52:14:e6:86:b4:2f
id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15
maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200
root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0
member: re0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
ifmaxaddr 0 port 1 priority 128 path cost 20000
groups: bridge vm-switch viid-4c918@
nd6 options=9<PERFORMNUD,IFDISABLED>
Start the VM (`sudo vm start homeassistant`) your `ifconfig -a` output should become like this:
re0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=82099<RXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,LINKSTATE>
ether 00:21:b9:02:5d:7a
inet6 fe80::221:b9ff:fe02:5d7a%re0 prefixlen 64 scopeid 0x1
inet6 fd18:31e5:33f2:844e:221:b9ff:fe02:5d7a prefixlen 64 detached autoconf
inet 10.0.1.152 netmask 0xffffff00 broadcast 10.0.1.255
media: Ethernet autoselect (1000baseT <full-duplex>)
status: active
nd6 options=23<PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCAL>
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
inet 127.0.0.1 netmask 0xff000000
groups: lo
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
vm-public: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether 52:14:e6:86:b4:2f
id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15
maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200
root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0
member: tap0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
ifmaxaddr 0 port 4 priority 128 path cost 2000000
member: re0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
ifmaxaddr 0 port 1 priority 128 path cost 20000
groups: bridge vm-switch viid-4c918@
nd6 options=9<PERFORMNUD,IFDISABLED>
tap0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
description: vmnet/homeassistant/0/public
options=80000<LINKSTATE>
ether 58:9c:fc:10:f8:32
groups: tap vm-port
media: Ethernet autoselect
status: active
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
Opened by PID 5537
`vm-public` has 2 ports `re0` and `tap0` and all interfaces are `UP`
You should be able to see traffic on `tap0` interface, for example something like this:
# just dump on the screen
sudo tcpdump -i tap0 -s0 -vvv
# save a .pcap file
sudo tcpdump -i tap0 -s0 -w trace1.pcap
see if you can capture a minute or two of traffic and attach what you have (or PM me).
For the reference - I'm using pfSense 23.09.1-RELEASE as a router with KEA as DHCP server selected.