LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-10-2016, 07:34 PM   #1
Nightfox
Member
 
Registered: Jun 2004
Location: Hillsboro, Oregon, USA
Distribution: Mint
Posts: 41

Rep: Reputation: 15
Automatically choosing a network interface


I have a machine with Mint Linux 17.3. The machine has both ethernet and wifi, both connected to my router. In case the wifi or ethernet gets disconnected for whatever reason, I'd like it to automatically use the other connection. I run a couple servers on the machine (one being Plex media server), and I'd like them to be accessible even if one network connection gets disconnected. Is that possible?

I'm asking because I'm using powerline ethernet adapters to connect rhis machine to my router via ethernet. I also put a wifi adapter in it as an alternate way to connect to my router. Sometimes the powerline ethernet adapters have a hard time talking to each other. Hence, I'd like the machine to automatically switch which connection it uses if, for example, it can't connect to the internet with one of the connections.

The wifi adapter is connected to my router, but when the ethernet connection is having trouble, I can't connect anywhere on the internet. I'd think it would be able to see that it has a connection via wifi and use that automatically?

Alternately, I suppose I could just use wifi. I'm curious how to configure Plex to bind to the wifi connection rather than ethernet, or if it should be able to automatically use either one.
 
Old 12-10-2016, 08:00 PM   #2
c0wb0y
Member
 
Registered: Jan 2012
Location: Inside the oven
Distribution: Windows
Posts: 421

Rep: Reputation: 74
NetworkManager?
 
Old 12-13-2016, 02:47 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,003

Rep: Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629
It might be possible to router or fallback or assign nic's directly but a few programs.

I'd assume that the lan is selected over the wan always based on it's default metric value. You could either set the lan slower than the wan and it might adjust the metric value or you can re-assign the wan to a faster or lower number metric. Some of the metric tables have been off over the years.
 
  


Reply

Tags
ethernet, wifi



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
network interface not coming up automatically at boot Kropotkin Linux - Networking 11 02-16-2010 05:15 PM
[SOLVED] how to stop automatically bringing up a network interface at boot danielldaniell Slackware 17 07-15-2009 01:25 PM
How NET_TX_SOFTIRQ select network interface when multiple interface exits Mr.J Linux - Kernel 0 06-02-2009 11:17 AM
choosing web interface in slack10 ner0 Linux - Networking 7 11-21-2004 10:08 PM
why is network interface activating automatically? ashlock Linux - Networking 4 04-29-2004 12:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration