Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Nov 2024 08:34:53 -0800
From:      Gary Aitken <freebsd@dreamchaser.org>
To:        questions@freebsd.org
Subject:   Re: missing ARP reply
Message-ID:  <76101826-4507-4db4-b7dc-4abb90641713@dreamchaser.org>
In-Reply-To: <0f00ea1a-8b62-4c0d-80ee-08721794483b@dreamchaser.org>
References:  <0f00ea1a-8b62-4c0d-80ee-08721794483b@dreamchaser.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 11/11/24 21:36, Gary Aitken wrote:
> I'm having trouble with my solar inverter connecting to its home
> base somewhere in Germany and am suspecting a problem with a missing
> ARP reply.
...
> xxx.yyy is the inverter on the local network xxx.zzz is the fbsd
> gateway/router on the local network
> 
> #tcpdump -flnt -i fxp0 | grep 192.168.xxx.yyy ARP, Request who-has
> 192.168.xxx.zzz (aa:bb:cc:dd:ee:ff) tell 192.168.xxx.yyy, length 46 
> IP 192.168.xxx.yyy.3337 > 147.185.237.1.22222: Flags [.], seq
> 26043:26065, ack 708198036, win 2144, length 22 IP
> 147.185.237.1.22222 > 192.168.xxx.yyy.3337: Flags [P.], seq 1:23, ack
> 22, win 18410, length 22 IP 192.168.xxx.yyy.3337 >
> 147.185.237.1.22222: Flags [.], ack 23, win 2144, length 0
> 
> I'm guessing the 3 packets exchanged are a power optimizer reporting
> in, but may be the inverter doing something.
> 
> The arp table on xxx.zzz has a permanent entry for itself on the
> interface, picked up from /etc/hosts:
> 
> # arp -a ns.dreamchaser.org (192.168.xxx.zzz) at aa:bb:cc:dd:ee:ff on
> fxp0 permanent [ethernet]
> 
> Thoughts on why I am not seeing a reply to the ARP request?

My error; tcpdump does not print the destination host address in the ARP
reply, so grep didn't catch it.  duh.  Should have been

   tcpdump -flnt -i fxp0 | grep ARP
or
   tcpdump -flnt -i fxp0 | grep aa:bb:cc:dd:ee:ff

Gary




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?76101826-4507-4db4-b7dc-4abb90641713>