LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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-08-2006, 12:07 PM   #1
GavSim
LQ Newbie
 
Registered: Sep 2005
Posts: 5

Rep: Reputation: 0
Smile Linux Routing and Gateway


Hi,


I am having a little bit of fun at home, I have got myself a layer2 switch and created some VLans on the switch, I have some machines on 1 vlan and some machines on another VLan, whats I would like to do is by using a machine that has two networks enabling routing between the two Vlans, I would like the machine with two network cards to act as a gateway - no tagging of packets is setup, so no need for a kernal that support vconfig.


Vlan 1 is a 192.168.3.x network
Vlan 2 is a 192.168.4.x network

Routing machine has two network cards one with the i.p 192.168.3.1 and the other is 192.168.4.1 - how do I set up so the linux box can perform the routing?

I am using ubuntu - I have been looking into the route command but not getting very far, any help greatly appreciated.


Regards,


Gavin
 
Old 02-08-2006, 02:08 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
it's just a case of enabling ip forwarding as standard (echo 1 > /proc/sys/net/ipv4/ip_forward). this will then use any known routes on the linux box to route to destinations. I hope you are aware that your use of vlans in a switch is totally irrelevant here? it's just one network to another. The linux box doesn't have any idea where those two cables go to.
 
  


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
Firewall Security / Gateway Routing colabus Linux - Networking 1 09-13-2005 11:15 PM
Firewall Security / Gateway Routing colabus Linux - Security 3 09-09-2005 06:40 PM
routing/gateway/masquerade help wanted -=dionis=- Linux - Networking 4 06-25-2005 07:17 AM
Default Gateway Not Listed In Routing Table krazyace78 Linux - Networking 0 10-05-2004 12:09 PM
pppoe gateway routing problems jvannucci Linux - Networking 2 06-26-2003 06:40 PM


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