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 06-11-2015, 10:50 AM   #1
baronobeefdip
Senior Member
 
Registered: Jul 2009
Distribution: Debian Squeeze
Posts: 1,267

Rep: Reputation: 32
Can I use a desktop as a networking switch


I have a desktop that runs Debian, and I have just added two extra interfaces in order to try to make it function as a switch. I figured that this was cheaper than going out and buying a switch (managed preferrable, I'll try to make VLANS later for now I just want a working networking switch. I also want this machine to have a single IP address so I can access like a regular computer. The multiple interfaces will be used to make the switch while at the same time I want the computer to have only one IP address, I don't want things to get confusing with the different IP addresses for different interfaces, these interfaces will strictly stay at the 2nd level and only function off MAC addresses.

Last edited by baronobeefdip; 06-11-2015 at 10:54 AM.
 
Old 06-11-2015, 12:15 PM   #2
ff80
LQ Newbie
 
Registered: May 2015
Posts: 12

Rep: Reputation: 0
Well, I am sure something like that could be possible, but typically NIC's are either completely separate or teamed together, which could be interesting. Also desktops do not have the ability to recognize VLAN's, unless there is some program you can install that will interpret them, but I am not aware of one.
 
Old 06-11-2015, 02:52 PM   #3
baronobeefdip
Senior Member
 
Registered: Jul 2009
Distribution: Debian Squeeze
Posts: 1,267

Original Poster
Rep: Reputation: 32
Quote:
Originally Posted by ff80 View Post
Well, I am sure something like that could be possible, but typically NIC's are either completely separate or teamed together, which could be interesting. Also desktops do not have the ability to recognize VLAN's, unless there is some program you can install that will interpret them, but I am not aware of one.
Just figured it out, I created a bridge and included them all together as specified in the /etc/network/interfaces file. it forwards to other computers and everything. Figuring out which NIC is which is the challenge.
 
Old 06-11-2015, 02:55 PM   #4
ff80
LQ Newbie
 
Registered: May 2015
Posts: 12

Rep: Reputation: 0
Interesting. Well once you have figured it out, assuming it stays consistent, then at least you could label them. Also, if you do stumble upon a way to specify VLAN's let me know! I am curious now.
 
Old 06-11-2015, 04:22 PM   #5
baronobeefdip
Senior Member
 
Registered: Jul 2009
Distribution: Debian Squeeze
Posts: 1,267

Original Poster
Rep: Reputation: 32
Quote:
Originally Posted by ff80 View Post
Interesting. Well once you have figured it out, assuming it stays consistent, then at least you could label them. Also, if you do stumble upon a way to specify VLAN's let me know! I am curious now.
I think you're going to have to use ebtables
http://ebtables.netfilter.org/misc/e...-man.html#lbAV
 
Old 06-11-2015, 05:14 PM   #6
jefro
Moderator
 
Registered: Mar 2008
Posts: 18,565

Rep: Reputation: 2780Reputation: 2780Reputation: 2780Reputation: 2780Reputation: 2780Reputation: 2780Reputation: 2780Reputation: 2780Reputation: 2780Reputation: 2780Reputation: 2780
Could go wild and run a virtual machine that uses a distro like a router or firewall appliance too. Then route everything through it.
 
  


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
Help! Networking Problem with Linux and Unix over a Network Switch Dodosaur Linux - Networking 2 06-10-2013 12:30 AM
How to turn off Wireless Networking Kill Switch? drmjh Linux - Wireless Networking 8 10-03-2008 09:30 AM
Networking with a switch Wynd Linux - Networking 5 12-18-2003 04:26 PM

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

All times are GMT -5. The time now is 04:57 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration