/ BLOG / Roaming laptop? Server with an unreliable switch?
I have just the answer: ifplugd, a lightweight Linux daemon which configures the network automatically when a cable is plugged in and deconfigures it when the cable is pulled. Primarily intended for use on laptops. It relies on the underlying network configuration tools.
Bloodly fantastic. Don’t ask why I needed to know this.