I've got a Mac mini M1 connected to the LAN through a switch. I've got also a Windows PC on that switch and the network works fine, but the Mac's Ethernet connection goes on and off constantly.
I've tried to apply the solution published on AskDifferent, but it doesn't work for me. The problem persists even if I change IPv6 settings or create different locations. I can connect to the WiFi and work, but I'd like to be able to enjoy my ethernet network as well. I've created a video with the connection going on and off on the settings window on macOS.