LinuxQuestions.org
Review your favorite Linux distribution.
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 06-03-2010, 01:57 PM   #1
druonysus
LQ Newbie
 
Registered: Mar 2010
Location: Newport Beach CA
Distribution: openSUSE
Posts: 23
Blog Entries: 1

Rep: Reputation: 1
How to set up Linux as a router?


Okay, so, I want to set a Linux box as a router for two Internet connections. I want Linux to be able to have to two connections as a redundant connection so that if one connection goes down it will use the other.

I want to have these two connections routing through the Linux box out to a wireless switch.

I want to know how to set this up? I am unsure but it doesn't sound too hard.

I am assuming I will need 3 NIC's (2 for external routing and one for internal routing)

I am unsure how extensive this is going to be so I am turning to the community for advice/help/guidance with this project.

one more thing: I am using openSUSE and I would like to use it for this as it is what I know best.

so... what do I do? what packages will I need? what configuration files will I need to modify? can I do this in YaST? If SUSE isn't right for the job then what is? is there specific NIC's I will need?

PLEASE HELP!

Thanks
 
Old 06-03-2010, 01:59 PM   #2
EricTRA
Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 18 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290
Hello,

Have a look at the following links, the might be helpful:
Load Balance Failover MultiWAN
Linux Failover Router

Hope it helps.

Kind regards,

Eric
 
Old 06-03-2010, 03:29 PM   #3
CoderMan
Member
 
Registered: Jan 2009
Location: Gemini Capsule 25164
Distribution: Gentoo
Posts: 375
Blog Entries: 24

Rep: Reputation: 43
Quote:
Originally Posted by druonysus View Post
Okay, so, I want to set a Linux box as a router for two Internet connections. I want Linux to be able to have to two connections as a redundant connection so that if one connection goes down it will use the other.

I want to have these two connections routing through the Linux box out to a wireless switch.

I want to know how to set this up? I am unsure but it doesn't sound too hard.

I am assuming I will need 3 NIC's (2 for external routing and one for internal routing)

I am unsure how extensive this is going to be so I am turning to the community for advice/help/guidance with this project.

one more thing: I am using openSUSE and I would like to use it for this as it is what I know best.

so... what do I do? what packages will I need? what configuration files will I need to modify? can I do this in YaST? If SUSE isn't right for the job then what is? is there specific NIC's I will need?

PLEASE HELP!

Thanks
I don't know where a SUSE guide is, but this Gentoo guide might help if you can translate the Gentoo installation commands into SUSE commands:

http://www.gentoo.org/doc/en/home-router-howto.xml

I have set up a triple-interface home router with DHCP, NAT, firewall, etc., though I've never tried to set up redundancy.
 
Old 06-03-2010, 09:02 PM   #4
LVsFINEST
Member
 
Registered: Aug 2006
Posts: 94

Rep: Reputation: 21
Is there a reason you want to set it all up manually? Why not use a distro designed for this purpose?

http://en.wikipedia.org/wiki/List_of..._distributions
 
Old 06-04-2010, 05:13 AM   #5
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 3,887

Rep: Reputation: 774Reputation: 774Reputation: 774Reputation: 774Reputation: 774Reputation: 774Reputation: 774
Quote:
Originally Posted by druonysus View Post

one more thing: I am using openSUSE and I would like to use it for this as it is what I know best....If SUSE isn't right for the job then what is?
One issue with using OpenSUSE is that support doesn't last a massive amount of time. When there is no support, you get no more bug fixes.

This isn't a problem if you are prepared to rebuild with a more up-to-date version, when support runs out. If you don't like this idea, you might be better off with something for which the availability of bug fixes lasts for a longer period (Debian, a Ubuntu LTS, SLES, Centos...).

Quote:
...a Linux box...
The default assumption seems to have been that you mean a conventional, probably x86, computer, and not something like a box intended as a router with a specialist router distro such as DD-WRT, Tomato, etc. Is a conventional PC what you had in mind?
 
Old 06-04-2010, 02:12 PM   #6
druonysus
LQ Newbie
 
Registered: Mar 2010
Location: Newport Beach CA
Distribution: openSUSE
Posts: 23
Blog Entries: 1

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by salasi View Post
One issue with using OpenSUSE is that support doesn't last a massive amount of time. When there is no support, you get no more bug fixes.
well I figure once I have it working i don't care about updates or anything like that so long as it just continues to keep working. If there are bugs that I keep running into with doing this then I will care to get them fixed but other than that I don't care.

Quote:
Originally Posted by salasi View Post
The default assumption seems to have been that you mean a conventional, probably x86, computer, and not something like a box intended as a router with a specialist router distro such as DD-WRT, Tomato, etc. Is a conventional PC what you had in mind?
Well really as I imagine it... it will be easiest to use just a regular old computer that we have sitting about to get this job done. I don't really want to set this up on some router and flash the router with a distro designed for that. However, with that said, I am not completely against that idea... provided I already have the hardware that I can use with that.
 
  


Reply

Tags
cisco, ip, iptables, networking, nic, opensuse, router, routing, selinux


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
How do I set up a laptop as a router to connect wirelessly to my ADSL router hairysocks Linux - Networking 12 12-20-2009 06:51 AM
Please help me set up a linux router Armghan Linux - Networking 2 12-25-2005 12:52 PM
How to set up a router Sushy Slackware 1 10-13-2005 06:53 AM
Trying to set linux box as router firewall that'll boot from floppy only dbiswaswb Linux - Newbie 7 05-09-2004 08:26 AM


All times are GMT -5. The time now is 12:30 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration