Solved igb0: link state changed to DOWN

Hi mates!
Until recently, the automatic speed detection of the NIC was correct - 1000Mbit. I have been observing the following behavior for several days:
Code:
Oct 27 14:30:00 tank kernel: igb0: link state changed to DOWN
Oct 27 14:30:03 tank kernel: igb0: link state changed to UP
Oct 27 14:30:47 tank kernel: igb0: link state changed to DOWN
Oct 27 14:30:51 tank kernel: igb0: link state changed to UP
Oct 27 14:30:59 tank kernel: igb0: link state changed to DOWN
Oct 27 14:31:07 tank kernel: igb0: link state changed to UP
Oct 27 14:47:49 tank kernel: igb0: link state changed to DOWN
Oct 27 14:48:01 tank kernel: igb0: link state changed to UP
Oct 27 14:48:01 tank kernel: igb0: link state changed to DOWN
Oct 27 14:48:05 tank kernel: igb0: link state changed to UP
Oct 27 14:48:06 tank kernel: igb0: link state changed to DOWN
Oct 27 14:48:09 tank kernel: igb0: link state changed to UP
Oct 27 14:48:10 tank kernel: igb0: link state changed to DOWN
Oct 27 14:48:22 tank kernel: igb0: link state changed to UP
Oct 27 14:48:23 tank kernel: igb0: link state changed to DOWN
Oct 27 14:48:46 tank kernel: igb0: link state changed to UP
After a few hours it stops and I see this:
Code:
$ ifconfig igb0
igb0: flags=8863<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=4e527bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,TSO6,LRO,WOL_MAGIC,VLAN_HWFILTER,VLAN_HWTSO,RXCSUM_IPV6,TXCSUM_IPV6,NOMAP>
        ether b4:7a:f1:36:54:28
        inet 192.168.0.2 netmask 0xffffff00 broadcast 192.168.0.255
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
My box has FreeBSD 13.2-RELEASE-p4.
I have 1Gbit switch and same router. Lan cable 6th category.
Is there a way to debug interface to find the reason?
After reboot an igb0 autodetect 1Gbit speed and same situation does repeat again.
 
Not sure about better debug messages, but I would first suspect a bad ethernet cable, then check that the nic/switch hardware is good (changing switch ports or switch, changing nic card or port if possible)
 
Back
Top