LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 07-02-2003, 06:37 AM   #1
andrewlkho
Member
 
Registered: Jul 2003
Location: London
Posts: 548

Rep: Reputation: 31
subnetting: pros and cons, and an explanation please :)


Hi,
At the moment, I have a LAN set up at home. All of the computers on it are of the ip address class 192.168.1.*. What I want to do is to have a switch coming off that, and off of the switch put several computers of the ip class 172.16.*.*. Is this possible? What are the pros and cons of doing so? I'm thinking of doing it to regulate traffic in and out of the segregated network / between the two.
Could anyone either explain how to do this, or the pros and cons of doing so. I'm thinking that what I have to do is to use a linux box as a router, with two network cards in it. One has an address of 192.168.1.x, and the other has an ip address of 172.16.x.x. But then, how do I let the computers in one talk to another? I would have to set up the computer as a gateway somehow...
Many thanks in advance,
Andy
 
Old 07-02-2003, 08:55 AM   #2
KrYpToN
Member
 
Registered: Aug 2002
Location: England
Distribution: Gentoo
Posts: 38

Rep: Reputation: 15
Here is what I think needs to be done:

You are right about the Linux box acting as a gateway/router, I suppose it would be something like this:

Router IP: 192.168.1.1
I
I
\
\___ Subnet : 255.255.255.0 IP's: 192.168.1.*
|
|
\___ Switch
/
|
|
\___ Linux Box (NIC1: 192.168.1.10 (for example)
| NIC2 : 172.16.1.1 (another example)
|
|
\___ Subnet 255.255.0.0 IP's: 172.16.*.*

I think that may be it

On the Linux box you would have to have IP Masquerading setup on it:
http://www.tldp.org/HOWTO/IP-Masquerade-HOWTO/

As for pros and cons:

Pros:
- Better handling of network traffic – as you said

Cons:
- May be a bit tricky to setup

If all else fails, just experiment.

Hope this helps
 
Old 07-02-2003, 10:52 AM   #3
andrewlkho
Member
 
Registered: Jul 2003
Location: London
Posts: 548

Original Poster
Rep: Reputation: 31
Okay,
I think I've almost got it. So far, this is my setup:

internet
|
|
|
|__router [192.168.1.1]
|
|
|__switch
|
|__various computers [192.168.1.*]
|
|
|__a linux gateway [192.168.1.x; 172.16.x.x]
|
|
|__switch
|
|
|___various computers [172.16.*.*]



is this right? I think it should work. The questions is, how do I set up the linux gateway? With iptables, I presume - can anyone confirm that this is possible just by using iptables.
Many thanks in advance,
Andy
 
Old 07-02-2003, 10:53 AM   #4
andrewlkho
Member
 
Registered: Jul 2003
Location: London
Posts: 548

Original Poster
Rep: Reputation: 31
Wahay,
I've got it set up now))
andy
 
Old 07-02-2003, 01:52 PM   #5
KrYpToN
Member
 
Registered: Aug 2002
Location: England
Distribution: Gentoo
Posts: 38

Rep: Reputation: 15
Nice one
 
  


Reply



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
pros/cons of getting a G5 Tomasfuego Linux - Hardware 4 06-07-2005 04:53 AM
Gnome 2.8 Pros and Cons maelstrom209 Linux - Software 0 01-27-2005 02:36 AM
pros/cons of Distributions Surfmonkey Linux - Newbie 1 11-26-2003 01:46 AM
Slackware pros and cons DesertWolf0132 Linux - Newbie 4 10-14-2003 10:14 PM
Gentoo: Pros and Cons AgtSkippy Linux - Distributions 5 07-12-2003 10:15 AM

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

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