Re: FreeBSD keep loosing ethernet connection

From: David Christensen <dpchrist_at_holgerdanske.com>
Date: Thu, 08 Dec 2022 01:03:24 UTC
On 12/7/22 16:21, iio7@tutanota.com wrote:
> I have recently changed one of my long running boxes from Arch Linux
> to FreeBSD 13.1, after which I see this in the log during file transfers:
> 
> <snip>
> Dec  8 01:01:41 foo kernel: re0: watchdog timeout
> Dec  8 01:01:41 foo kernel: re0: link state changed to DOWN
> Dec  8 01:01:45 foo kernel: re0: link state changed to UP
> Dec  8 01:01:51 foo kernel: re0: watchdog timeout
> Dec  8 01:01:51 foo kernel: re0: link state changed to DOWN
> Dec  8 01:01:55 foo kernel: re0: link state changed to UP
> Dec  8 01:02:02 foo kernel: re0: watchdog timeout
> Dec  8 01:02:02 foo kernel: re0: link state changed to DOWN
> Dec  8 01:02:06 foo kernel: re0: link state changed to UP
> Dec  8 01:02:18 foo kernel: re0: watchdog timeout
> Dec  8 01:02:18 foo kernel: re0: link state changed to DOWN
> Dec  8 01:02:22 foo kernel: re0: link state changed to UP
> Dec  8 01:02:30 foo kernel: re0: watchdog timeout
> Dec  8 01:02:30 foo kernel: re0: link state changed to DOWN
> Dec  8 01:02:34 foo kernel: re0: link state changed to UP
> Dec  8 01:02:45 foo kernel: re0: watchdog timeout
> Dec  8 01:02:45 foo kernel: re0: link state changed to DOWN
> Dec  8 01:02:49 foo kernel: re0: link state changed to UP
> Dec  8 01:03:01 foo kernel: re0: watchdog timeout
> Dec  8 01:03:01 foo kernel: re0: link state changed to DOWN
> Dec  8 01:03:05 foo kernel: re0: link state changed to UP
> Dec  8 01:03:14 foo kernel: re0: watchdog timeout
> Dec  8 01:03:14 foo kernel: re0: link state changed to DOWN
> Dec  8 01:03:18 foo kernel: re0: link state changed to UP
> Dec  8 01:03:26 foo kernel: re0: watchdog timeout
> Dec  8 01:03:26 foo kernel: re0: link state changed to DOWN
> Dec  8 01:03:30 foo kernel: re0: link state changed to UP
> Dec  8 01:03:47 foo kernel: re0: watchdog timeout
> Dec  8 01:03:47 foo kernel: re0: link state changed to DOWN
> Dec  8 01:03:51 foo kernel: re0: link state changed to UP
> Dec  8 01:03:57 foo kernel: re0: watchdog timeout
> Dec  8 01:03:57 foo kernel: re0: link state changed to DOWN
> Dec  8 01:04:01 foo kernel: re0: link state changed to UP
> Dec  8 01:04:31 foo kernel: re0: watchdog timeout
> Dec  8 01:04:31 foo kernel: re0: link state changed to DOWN
> Dec  8 01:04:35 foo kernel: re0: link state changed to UP
> Dec  8 01:05:09 foo kernel: re0: watchdog timeout
> Dec  8 01:05:09 foo kernel: re0: link state changed to DOWN
> Dec  8 01:05:13 foo kernel: re0: link state changed to UP
> Dec  8 01:13:39 foo kernel: re0: watchdog timeout
> Dec  8 01:13:39 foo kernel: re0: link state changed to DOWN
> Dec  8 01:13:41 foo kernel: .
> Dec  8 01:13:42 foo kernel: , 52791.
> Dec  8 01:13:43 foo kernel:
> Dec  8 01:13:43 foo kernel: re0: link state changed to UP
> Dec  8 01:13:44 foo kernel: .
> </snip>
> 
> During which I eventually loose connection completely and have to
>   manually reboot the box.
> 
> When I run Linux on the box all runs well, so I don't suspect the
> ethernet card.
> 
> The card is setup with a static IP address:
> 
> ifconfig_re0="inet 192.168.1.3/24"
> 
> So it really should NOT change the state like this.
> 
> Any advice?
> 
> Kind regards.


My SOHO server has a static IP and works reliably:

2022-12-07 16:59:38 toor@f3 ~
# freebsd-version ; uname -a
12.3-RELEASE-p9
FreeBSD f3.tracy.holgerdanske.com 12.3-RELEASE-p6 FreeBSD 
12.3-RELEASE-p6 GENERIC  amd64

2022-12-07 17:00:43 toor@f3 ~
# grep 192.168.5 /etc/rc.conf | grep -v alias
defaultrouter="192.168.5.1"
ifconfig_em0="inet 192.168.5.13 netmask 255.255.255.0"


I do not see a 'defaultroute' in your post.


I do not see a 'netmask' in your post.


I would try adding them and rebooting.


David