How can the following be done without using network-manager or another GUI-tool (for example by configuring /etc/networking/interfaces etc):

Automatically (and without delay) switch to LAN if available and back to WLAN if not LAN is available anymore.

If possible each time the same IP should be used (may be static, but it doesn't need to be).

My system is ubuntu 16.04.1.

  • 1
    It does this automatically: NetworkManager – Paul Nordin Aug 25 '16 at 0:15
  • 1
    Do you want to avoid the whole network-manager system entirely, not just its GUI frontend? – Christian Ternus Aug 25 '16 at 0:26
  • @ChristianTernus: Yes for this question I want to avoid the network-manager system entirely. – gnub Aug 25 '16 at 9:10

You can do it without Network manager using bonding WiFi and Ethernet interfaces in active-backup mode . Do it as described in this article: Network bonding (wlan & eth) on linux ubuntu

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.