LinuxQuestions.org
Register a domain and help support LQ
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 08-20-2009, 07:24 PM   #1
emmett.culley
LQ Newbie
 
Registered: Nov 2008
Location: Paradise California
Distribution: CentOS and Fedora
Posts: 2

Rep: Reputation: 0
CentOS 5.3: How to route VLANs through gateway


I have designed/built/deployed several capture portal/gateway/content servers that can accept multiple SSID/VLAN traffic and diffenciate SSIDs in order apply different connection/shaping rules based on the SSID/VLAN.

I now have a new requirement. I need to be able to connect SSID/VLANs to different outgoing VLANs. For example, I need to "route" eth1.100 through to eth0.101, and do that for each SSID/VLAN I am manageing.

I believe I have all the iptables rules correct, but I cannot figure out how to force traffic entering on eth1.100 to go out on eth0.101.

It may be that I'll have to use separate NICs, but I am hoping someone has the answer that will allow the gateway to route VLANs.

I suppose I could do it if I could use different subnets for each outgoing VLAN, as I do for incoming VLANs, but unfortunately I normally do not have control of the outgoing IP scheme and can allocate only a single IP address to the outgoing NIC.

Hmm, if I can have multiple outfacing NICs, why can't I have multiple outgoing subnets? Well that'll be the direction of my "investigations" until somebody smarter than me posts the answer here

Emmett
 
Old 08-21-2009, 07:00 AM   #2
TimothyEBaldwin
Member
 
Registered: Mar 2009
Posts: 249

Rep: Reputation: 27
Routing to multiple VLANs is just routing to multiple physical interfaces, and having conflicting subnet addresses is not standard practice.
  1. Use ibtables to mark packets based on incoming interface.
  2. Use "ip rule" to select different routing tables based the mark.
  3. Use "ip route" to add entries to the routing tables explicitly stating the outgoing logical interface.
 
  


Reply

Tags
routing, vlan


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
different VLANs in one route ashan Linux - Networking 2 08-13-2009 05:23 PM
Gateway and route configuration veeruk101 Linux - Networking 1 07-25-2007 07:30 AM
My gateway can't route michaelsanford Linux - Networking 0 04-20-2005 05:05 PM
default route without a gateway scylla Linux - Networking 1 10-21-2004 01:40 AM
Ip Route Voice Gateway digicom Linux - Networking 1 08-22-2001 10:43 AM


All times are GMT -5. The time now is 07:37 AM.

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