public inbox for linux-newbie@vger.kernel.org
 help / color / mirror / Atom feed
* how to route
@ 2004-12-24  3:59 Nicolas Patik
  2004-12-24  8:02 ` Greg Olszewski
  0 siblings, 1 reply; 3+ messages in thread
From: Nicolas Patik @ 2004-12-24  3:59 UTC (permalink / raw)
  To: linux-newbie

I have 2 linux boxes connected to a switch:

box1: 
eth0 192.168.0.200/255.255.255.0
eth1 public address from ISP dhcp

box2: 
eth0 192.168.0.35/255.255.255.0

box3:
eth0 192.168.1.3/255.255.255.0

I want box1 to act as a gateway to the internet 
(it is doing this now for box2), 
but also want to communicate from box2 to box3 through box1, 
and that box3 can use the internet through box1.

how can I do this?


TIA,

--Nicolas
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 3+ messages in thread
* RE: how to route
@ 2004-12-24  4:43 Rajat  Jain, Noida
  0 siblings, 0 replies; 3+ messages in thread
From: Rajat  Jain, Noida @ 2004-12-24  4:43 UTC (permalink / raw)
  To: Nicolas Patik, linux-newbie


Hi,

I don't think box3 would be able to box1 or box2 currently. This is because
the IP address you've assigned to box3 is not on the same subnet as that of
box1 & box2. Box1 and box2 are right now on subnet 192.168.0.0. Where as
box3 is is not subnet 192.168.1.0. To connect PCs on different subnets you
need to have a router in between. 

The options you have:

1) Make the IP addresses of all three boxes on the same subnet by changing
box3's IP to 192.168.0.*, OR box1 & box2's IP to 192.168.1.*

2) Make subnet larget by making subnet mask = 255.255.0.0 or some thing.

-Rajat

-----Original Message-----
From: linux-newbie-owner@vger.kernel.org
[mailto:linux-newbie-owner@vger.kernel.org] On Behalf Of Nicolas Patik
Sent: Friday, December 24, 2004 9:30 AM
To: linux-newbie@vger.kernel.org
Subject: how to route

I have 2 linux boxes connected to a switch:

box1: 
eth0 192.168.0.200/255.255.255.0
eth1 public address from ISP dhcp

box2: 
eth0 192.168.0.35/255.255.255.0

box3:
eth0 192.168.1.3/255.255.255.0

I want box1 to act as a gateway to the internet (it is doing this now for
box2), but also want to communicate from box2 to box3 through box1, and that
box3 can use the internet through box1.

how can I do this?


TIA,

--Nicolas
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-12-24  8:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-12-24  3:59 how to route Nicolas Patik
2004-12-24  8:02 ` Greg Olszewski
  -- strict thread matches above, loose matches on Subject: below --
2004-12-24  4:43 Rajat  Jain, Noida

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox