LinuxQuestions.org
Visit Jeremy's Blog.
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 01-25-2016, 04:33 PM   #1
fledra
LQ Newbie
 
Registered: Jan 2016
Posts: 4

Rep: Reputation: Disabled
Choosing which connection to share


Hi everyone. Before I start, I want to say that I'm a newbie about all this (both networking and linux). I mean I can understand and do a lot of stuff but still... Alright, here is my question:

I want to use one of my old computers as a network switcher kinda thingy. I know it sounds a bit weird but I couldn't think about another name for it. So this "switcher" will have 3 interfaces, first one has internet connection and comes from a router (eth0), second one is a 3g modem (ppp0 i believe) so it has internet connection too and the final one will be the lan side (eth1). As you see I'll have internet conneciton on two interfaces but I want my lan side to use one of them at a time. Well, actually what I want is being able to choose which connection goes through the lan interface. Like, I should be able to switch which one of the two goes through.
  • eth0 has a static private IP from the router.
  • LAN side will get their IPs from a DHCP Server.
  • I used Ubuntu Server 14.04 on a VM for testing purposes and I think I'll stick with it.

I hope all that makes sense and is all the info you need. My question would be, is this possible? And uh, if it is, how? Also if you think there's a better way of doing this please let me know. I want to control this "switcher" over the internet so bear that in mind.

Thanks in advance.

p.s No, I'm not trying to setup failover. I want to choose what goes through, not like if one of them goes down other one comes to the rescue.

Last edited by fledra; 01-27-2016 at 11:36 PM. Reason: did a little bit of a tidy up
 
Old 01-26-2016, 09:35 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,411
Blog Entries: 28

Rep: Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166
This might help: https://wiki.archlinux.org/index.php/router
 
Old 01-27-2016, 04:04 PM   #3
fledra
LQ Newbie
 
Registered: Jan 2016
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thank you for the link. I've been trying to figure a way out with the information there but I couldn't really do a thing because of the number of connections I have (or maybe because I'm dumb). You see, searching about this is a bit hard too since making a simple router with a linux box is fairly easy and the internet is flooding with tutorials for it. I actually did that and then tried adding the second internet facing interface too but it just messed everything up for me, including my brain. And I'm for some reason quite sure that I'm missing something really obvious but just cannot figure out what.
 
Old 01-27-2016, 09:36 PM   #4
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,411
Blog Entries: 28

Rep: Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166
Perhaps I didn't fully understand what you are trying to do. In normal network parlance, a "switch" is sort of an intelligent hub. Looking at it again, I gather you want to be able to toggle between connections.

Am I getting closer to what you want to do?
 
Old 01-27-2016, 11:35 PM   #5
fledra
LQ Newbie
 
Registered: Jan 2016
Posts: 4

Original Poster
Rep: Reputation: Disabled
Yes, actually you're right there. I used the term "switcher" because well, it switches which connection is shared in my scenario. Sorry about the inconvenient naming I did.

Last edited by fledra; 01-27-2016 at 11:44 PM. Reason: i make mistakes. a lot.
 
  


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
multiple gateways - choosing connection dlugasx Linux - Networking 3 07-01-2009 06:27 AM
Can't share internet connection Quads Linux - Networking 3 09-14-2008 08:03 PM
searching samba share breaks connection to share Elomis Linux - Server 1 05-11-2007 12:28 AM
how do I share a connection cmanns Linux - Networking 4 03-27-2006 09:53 AM
Help! Cannot share my Internet connection... Domiriel Linux - Networking 2 11-25-2003 01:27 PM

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

All times are GMT -5. The time now is 10:15 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