LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 04-18-2012, 03:38 PM   #1
hewittrj
Member
 
Registered: Mar 2007
Posts: 82

Rep: Reputation: 15
Ubuntu server 11.4 as a vlan router


Has anyone ever setup Ubuntu server or an cli interface Linux server as a vlan router with a catalist 2950 switch. I thinking of doing this for a project



Robert
 
Old 04-18-2012, 04:30 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,384

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
I'd suggest actually asking a specific question, rather than asking if someone has done it. it's certainly possible, you don't need a show of hands to prove that.
 
Old 04-18-2012, 07:40 PM   #3
hewittrj
Member
 
Registered: Mar 2007
Posts: 82

Original Poster
Rep: Reputation: 15
Sorry I was too vague did not realize

More to the point how difficult is it to do.

I need to make two separate networks share one broadband connection but not be able to see each other, and also be able to share a fax server as well.

I am trying to figure the best way to do this before I set down on what I want to do, the other way is to use iptables but I don't know if this is the right way to go or idf the vlan path is the better way.

Robert
 
Old 04-18-2012, 09:55 PM   #4
es0teric
Member
 
Registered: Apr 2007
Distribution: Ubuntu
Posts: 93

Rep: Reputation: 19
Generally, a switch will be fine if you want to do things within a single network or have multiple totally isolated networks. If you want to allow communication among networks though, then you'll need to do routing. iptables is a simple and well-documented way to accomplish that.
 
Old 04-19-2012, 01:48 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,384

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
vlans (layer 2) and iptables (layer 3 & 4) have nothing in common. One does not affect the need to use the other.

If you want two separate subnets behind your router machine then either vlans or multiple NIC's would be desirable, and given the 2950, vlans make perfect sense. You'll still be looking at iptables to block traffic between those two networks, and to effectively pass it on to the outside world.
 
  


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
switch-based VLAN to router access list shaklouf Linux - Networking 2 05-20-2011 03:51 AM
Layer 2 Switch - use linux as VLAN router to network towme Linux - Networking 11 09-16-2009 12:25 PM
DHCP Config for VLAN's using 1NIC and non VLAN router. scottgutman Linux - Networking 1 07-22-2009 01:41 AM
Ubuntu 6.10 Server With Router jtatarin Linux - Server 5 03-12-2007 01:22 PM
linux instead of router(VLAN ,IRB and etc) ye_adam Linux - Networking 0 01-26-2006 02:13 PM


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