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 02-10-2008, 09:17 AM   #1
PrivateSniper
LQ Newbie
 
Registered: Mar 2006
Posts: 5

Rep: Reputation: 0
Post Using Linux as a server - to replace switches


Hi, first of all sorry if this has been asked before etc, I did search but nothing came to mind as being what I was looking for.


I know you can build computers for the custom purpose of being a dedicated server etc

my real question is : is it viable to create a host pc using some form of linux as a (slightly expensive version i agree) switch.

(multiple network cards to act as switch ports all full duplex /100's of course - minimal hd - standard cpu should do the job?)

I am a very active gamer, and my 2 housemates are also gamers. we share the same connection, and most switches you find these days are frankly rubbish
(unless of course you have the money to buy the hardcore stuff like cisco's etc)

sorry if my questions a little fragmented
I look forward to recieving the communities thoughts on the subject.
 
Old 02-10-2008, 10:27 AM   #2
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
Well..I'm no gamer, but I understand that with the money you would put to a computer and it's components, including the time you spend tweaking and configuring it, makes that approach more expensive and time-taking than going to the store and buying the real thing, which probably also takes less space than a pc yelling under the table. Or if you're so short on money you can't buy the device which is designed for the job, you probably don't have the money to build a pc to do the job well, and even less to legally buy all the games you are supposed to play

Others probably have different opinions, and I appreciate them - especially when they have strong roots - but I tend to think with common sense, and in this case it wants to say that building a pc to do the job of a switch is rather a hobby than a real solution to a problem that should be solved as quickly and easily as possible.
 
Old 02-10-2008, 10:54 AM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
it's viable, but really not common. the only point in doing it is to used advanced features that you would be paying cisco $1000 for. to head down that path you don't need much cpu, but it *generally* figures that you'd need a lot of special hardware in order to get the connectivitiy you want. that means a card like this http://www.amazon.com/Intel-PWLA8494.../dp/B00008PX2M which is certified by vyatta with their open source routing software (which is worth a look in terms of background knowledge.) I don't know how vyatta would handle a switch-like implementation, very little baout it in the documentation. i'd like to think that if you just put two port on the same vlan then they'd implictly bridge - vyatta appears to be quite implicit, rather than using explicit declarations of how you want it to work. I was quite bizarrely looking for open source switch architectures just this morning for the first time and found nothing. it's one this for some vendors to product appliance hardware for open source (or other) routers, network appliances, security appliances, but swiching is about port density and very unusal hardware compared to an x86 box with a pair of gig nics in the back, and so the costs involved in producing the hardware for such a specialised audience would make them (well - *does* make them) generally too expensive to use at this level. $100 will get you an old cisco switch on ebay...

If you don't want to do clever stuff and it's only for a few people then sure, put two nics in a machine and use the bridge module to link the two. that's 5 minutes work to get that done and dusted. I doubt you'll really see much of a difference
 
Old 02-10-2008, 11:24 AM   #4
PrivateSniper
LQ Newbie
 
Registered: Mar 2006
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Well..I'm no gamer, but I understand that with the money you would put to a computer and it's components, including the time you spend tweaking and configuring it, makes that approach more expensive and time-taking than going to the store and buying the real thing, which probably also takes less space than a pc yelling under the table.
not really i was thinking of using old server machines, which you could pickup for around the same price as a router.. space is not an issue.

like i said, it's for gaming... at the end of the day the only factors i care about are reliability, and latency/ping so if i can get the latter lowered and keep the same or better reliability, then that's what i'd like to have.


@ acid_kewpie : i dont trust buying hardware off ebay to be honest, never have and never will
 
Old 02-10-2008, 12:57 PM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
nice to see that's all you took from my discussion...
 
Old 02-10-2008, 04:05 PM   #6
PrivateSniper
LQ Newbie
 
Registered: Mar 2006
Posts: 5

Original Poster
Rep: Reputation: 0
i did read it all, but i already mentioned the hardware side of things, i dont think a purpose built card would be necessary, just a board with a couple of pci slots [of course i could be wrong]

to be honest i have no clue who vyetta are so that whole paragraph was more or less wasted on me i like to deal in simple yes/no terms then figure the complications out by breaking things and googling a way of making them all better
 
Old 02-10-2008, 04:37 PM   #7
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
How many ports/PCI cards would you connect (you can buy NICs with multiple ports). One thing I'd worry about would be saturating the PCI bus as its bandwidth is rather limited (about 125 megabytes/sec IIRC). Going with PCI-X or better PCI express will help with this, but in general even PC servers don't have the "back end" badwidth of gigabit switches. If you only want to connect a couple of machines, you're OK, but if you want to host LAN parties with it then maybe not so much. You can get a cheap non-blocking 24 port gigabit switch for ~ $400 retail (not Cisco class, but still fairly good). This might be the better solution inthe long run.
 
Old 02-10-2008, 05:17 PM   #8
rupertwh
Member
 
Registered: Sep 2006
Location: Munich, Germany
Distribution: Debian / Ubuntu
Posts: 297

Rep: Reputation: 49
Quote:
Originally Posted by PrivateSniper View Post
and most switches you find these days are frankly rubbish
(unless of course you have the money to buy the hardcore stuff like cisco's etc)
Well, they're also cheap as hell and most do their job just fine.

But your PC-switch is really going to suck big-time. As btmiller indicated, you'll have a bandwitdh problem. The PCI bus is a joke compared to what you'd need for a switch. Do the math and you'll be a little more impressed by dedicated switches.
I don't know about latency, but I wouldn't put my money on a PC either.
 
Old 02-10-2008, 06:13 PM   #9
PrivateSniper
LQ Newbie
 
Registered: Mar 2006
Posts: 5

Original Poster
Rep: Reputation: 0
never thought about the bandwidth issue tbh.
 
Old 02-10-2008, 07:35 PM   #10
rupertwh
Member
 
Registered: Sep 2006
Location: Munich, Germany
Distribution: Debian / Ubuntu
Posts: 297

Rep: Reputation: 49
Quote:
Originally Posted by PrivateSniper View Post
never thought about the bandwidth issue tbh.
Yes, it's easy to ignore. I was actually in your exact same situation a couple of years ago. Had all these NICs lying around and thought I'd build the ultimate switch...

Well, after stumbling over the bandwidth requirement I've been more forgiving towards loud fans in switches. ;o)
 
  


Reply

Tags
linux, networking, server, switch



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
Want to replace M$ server with Linux HawkLawin Linux - Server 7 11-24-2007 12:55 AM
can i replace a linksys router with linux server? espo111 Linux - Server 4 10-11-2007 08:24 PM
NEED to replace an NT4 server with Linux... mike160 Linux - Networking 6 06-10-2006 03:43 PM
Linux replace Windows Server?? LinuxHawk Linux - Networking 2 11-17-2005 11:14 PM
replace exchange server with Linux? browny_amiga Linux - Software 1 08-09-2002 12:44 PM

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

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