On Sun, May 01, 2016 at 12:00:30AM +0200, Jarek wrote: > Hello! > > I'd like to know, if it is possible to configure networking in Debian > headless box (no gui), so the USB 4G dongle will hijack default route > from ethernet interface after plug-in, and return default route after > disconnection. > Is it possible ?
In general, yes. If you are using plain /etc/network/interfaces, you have a "pre" and "post" command available for each interface. "ifplugd" automates that nicely. "ifscheme" is a package on top of interfaces which offers labelled configuration sets. "home" and "work", for instance. ifupdown-multi handles multiple default routes wicd can handle all sorts of interfaces, and does not require an X11 display. -dsr-