The Problem
I just wanted to quickly share a potential fix for an OPNsense error, in case someone else is searching for a solution. The Error in question is following:
/usr/local/etc/rc.linkup: DEVD: Ethernet detached event for dynamic lan(igc0)
From the error message it is clear that the system thinks a connection got disconnected. Shortly afterwards the connection got reestablished. This happend once or twice daily without making too much problems. Mostly, you wouldn’t even really notice, that something happened. Only for latency sensitive things, like gaming, you would get a notable disconnect for a few seconds. But this error also triggered a lot of different following errors. For me it looked like this:
2022-12-07T13:15:48 Error opnsense /usr/local/etc/rc.newwanipv6: On (IP address: 2003:f6:e7ff:339:----:----:----:----) (interface: WAN[wan]) (real interface: pppoe0).
2022-12-07T13:15:48 Error opnsense /usr/local/etc/rc.newwanipv6: IPv6 renewal is starting on 'pppoe0'
2022-12-07T13:15:46 Error opnsense /usr/local/etc/rc.linkup: Removing static route for monitor 192.5.5.241 via ---.---.---.---
2022-12-07T13:15:46 Error opnsense /usr/local/etc/rc.linkup: Chose to bind WAN_PPPOE on 84.170.28.113 since we could not find a proper match.
2022-12-07T13:15:46 Error opnsense /usr/local/etc/rc.linkup: Removing static route for monitor 2001:500:2f::f via fe80::----:----:----:----%pppoe0
2022-12-07T13:15:46 Error opnsense /usr/local/etc/rc.linkup: ROUTING: skipping IPv6 default route
2022-12-07T13:15:46 Error opnsense /usr/local/etc/rc.linkup: ROUTING: IPv6 default gateway set to wan
2022-12-07T13:15:46 Error opnsense /usr/local/etc/rc.linkup: ROUTING: skipping IPv4 default route
2022-12-07T13:15:46 Error opnsense /usr/local/etc/rc.linkup: ROUTING: IPv4 default gateway set to wan
2022-12-07T13:15:46 Error opnsense /usr/local/etc/rc.linkup: ROUTING: entering configure using 'lan'
2022-12-07T13:15:46 Error opnsense /usr/local/etc/rc.linkup: DEVD: Ethernet attached event for dynamic lan(igc0)
2022-12-07T13:15:14 Error opnsense /usr/local/etc/rc.linkup: DEVD: Ethernet detached event for dynamic lan(igc0)
(note: I removed static parts of IPs. Just in case.)
The Solution
Well, the solution was rather simple. It was just a faulty cable. After changing the ethernet cable
connected to igc0
, the detached event didn’t come up anymore. The following errors also vanished.
Just a reminder to maybe also check and swap potential hardware components.