Here is some tcpdumps as well, for reference there is a client
connected to em1 which is sending the ARP and DHCP request packets.
dhcpd is listening on vether0.

switch0:

15:09:28.708823 arp who-has 8.8.8.8 tell 169.254.10.62
15:09:29.574297 0.0.0.0.68 > 255.255.255.255.67:  xid:0x1e787469 \
secs:46 [|bootp] [tos 0x10]
15:09:29.574536 0.0.0.0.68 > 255.255.255.255.67:  xid:0x1e787469 \
secs:46 [|bootp] [tos 0x10]
15:09:29.574557 0.0.0.0.68 > 255.255.255.255.67:  xid:0x1e787469 \
secs:46 [|bootp] [tos 0x10]
15:09:31.672393 arp who-has 8.8.4.4 tell 169.254.10.62

vether0:

15:09:28.708794 arp who-has 8.8.8.8 tell 169.254.10.62
15:09:29.574547 0.0.0.0.68 > 255.255.255.255.67:  xid:0x1e787469 \
secs:46 [|bootp] [tos 0x10]
15:09:29.574787 10.0.0.1.67 > 10.0.0.33.68:  xid:0x1e787469 \
secs:46 Y:10.0.0.33 S:10.0.0.1 [|bootp ] [tos 0x10]
15:09:31.672628 arp who-has 8.8.4.4 tell 169.254.10.62

em1:

15:09:12.676542 arp who-has 8.8.4.4 tell 169.254.10.62
15:09:13.467594 0.0.0.0.68 > 255.255.255.255.67:  xid:0x1e787469 \
secs:30 [|bootp] [tos 0x10]
15:09:13.700573 arp who-has 8.8.4.4 tell 169.254.10.62

I just realized I grabbed the wrong chunk of the em1 log (it has the
30 second poll instead of the 46) but otherwise it is identical.

The same packet appears 3 times on switch0 (which has vether0, em1
and em2 -- em2 doesn't have an active carrier and no tcpdump was
done but I suspect that packet would show up there). The response
from vether0 doesn't appear on switch0 or em1 however.

John

On Fri, Nov 6, 2020 at 3:21 PM John McGuigan <j...@upperbound.ca> wrote:
>
> After reading through the switch section of the ifconfig manpage I
> changed the line in /etc/hostname.switch0 from:
>
> add vether0
>
> to:
>
> addlocal vether0
>
> Unfortunately, I'm still having the same issue, I can see ARP and DHCP
> packets from the client computer on em1, vether0 and switch0, and can
> see the ARP-REPLY and DHCP-REPLY packets on vether0 but they
> never show up on vether0 or switch0. I also tried:
>
> sysctl net.inet.ip.forwarding=1
>
> In case there was an issue forwarding between interfaces but no luck.
>
> Also tested this on the Nov 3rd 6.8-current snapshot with the same
> results.
>
> Does anyone recognize this issue, packet replies not being forwarded
> from the vether0 to physical adapter on a switch(4)?
>
> For reference, this behavior doesn't happen if I use a bridge(4) with
> the same ports and hostname.if except for the addlocal vs add
> I mentioned earlier.
>
> If someone wouldn't mind replicating this on their hardware (I've
> tested this on two APU2s) it would definitely be appreciated.
>
> Thanks,
>
> John

Reply via email to