LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-16-2016, 02:23 AM   #1
SophiaL
LQ Newbie
 
Registered: Oct 2016
Posts: 5

Rep: Reputation: Disabled
Linux Debian setting network interface priority


I have a Linux Debain embedded computer with 3 network interface adapters. Wifi (wlan0), LAN1 (eth0) and LAN2 (eth1).

I am using Wifi for my primary interface to connect to the internet and I have LAN1 connected to a cellular modem as a backup. How do I control my traffic to use wifi first and if I loss wifi, automatically switch to LAN1 to use my celluar network. Has anyone programmatically managed network interfaces based on setting priorities?
 
Old 11-17-2016, 10:07 AM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 355Reputation: 355Reputation: 355Reputation: 355
What you want to do is called bonding, in which you can specify the priority of use of network interfaces, and the conditions in which the switch takes place.
Read more about it at http://https://www.kernel.org/doc/Do...ng/bonding.txt
Linux Ethernet Bonding Driver HOWTO
 
Old 11-17-2016, 10:11 AM   #3
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,237

Rep: Reputation: 1656Reputation: 1656Reputation: 1656Reputation: 1656Reputation: 1656Reputation: 1656Reputation: 1656Reputation: 1656Reputation: 1656Reputation: 1656Reputation: 1656
That link seems broken, here it is: https://www.kernel.org/doc/Documenta...ng/bonding.txt

Centos goodness: https://wiki.centos.org/TipsAndTricks/BondingInterfaces
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Setting Priority on Two Network Cards Debian 6 Squeeze poseidonsurf Linux - Networking 2 09-22-2014 07:35 AM
Network Route - setting routing priority john_tobias Linux - Networking 3 01-21-2012 01:07 PM
[SOLVED] Network interface priority SqdnGuns Slackware 4 05-11-2011 09:12 AM
Wired interface priority over wireless in Debian Debian_Poland Linux - Wireless Networking 5 02-03-2006 11:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:09 AM.

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