Networking Forums  

Go Back   Networking Forums > Networking Newsgroups > Linux Networking

How to Connecting two different network in redhat linux 9

Reply
 
Thread Tools Display Modes
  #1  
Old 11-27-2004, 10:29 AM
Default How to Connecting two different network in redhat linux 9



hello friends,

I have linux server with three ethernet cards.

eth0 : 202.66.55.100 --> gw 202.66.55.97
eth1 : 192.168.0.1 --> gw 202.66.55.100
eth2 : 192.168.1.1 --> gw 202.66.55.100
default gateway : 202.66.55.97

eth0 act as gateway to share internet to two networks throu eth1 and
eth2.

how to access from client eth1 network to client eth2 network throu
redhat linux 9 server.

Every hint is appreciated.

with regards

pvn


visu
Reply With Quote
  #2  
Old 11-27-2004, 10:38 AM
Davide Bianchi
Guest
 
Posts: n/a
Default Re: How to Connecting two different network in redhat linux 9

On 2004-11-27, visu <(E-Mail Removed)> wrote:
> I have linux server with three ethernet cards.
> eth0 : 202.66.55.100 --> gw 202.66.55.97
> eth1 : 192.168.0.1 --> gw 202.66.55.100
> eth2 : 192.168.1.1 --> gw 202.66.55.100
> default gateway : 202.66.55.97
> how to access from client eth1 network to client eth2 network throu
> redhat linux 9 server.


Set the default gateway for the machine on network eth2 to 192.168.1.1
for eth1 to 192.168.0.1, enable ip forwarding and masquerading and
you're set.

See the firewall-howto about how to setup the firewall.

Davide

--
Windows hasn't increased computer literacy. It's just lowered the standard.
-- From a Slashdot.org post
Reply With Quote
  #3  
Old 11-27-2004, 06:33 PM
Clifford Kite
Guest
 
Posts: n/a
Default Re: How to Connecting two different network in redhat linux 9

visu <(E-Mail Removed)> wrote:
> hello friends,


> I have linux server with three ethernet cards.


> eth0 : 202.66.55.100 --> gw 202.66.55.97
> eth1 : 192.168.0.1 --> gw 202.66.55.100
> eth2 : 192.168.1.1 --> gw 202.66.55.100
> default gateway : 202.66.55.97


> eth0 act as gateway to share internet to two networks throu eth1 and
> eth2.


> how to access from client eth1 network to client eth2 network throu
> redhat linux 9 server.


I think you need the following.

On the eth1 clients:

route add -net 192.168.1.0/24 gw 192.168.0.1 eth0

On the eth2 clients:

route add -net 192.168.0.0/24 gw 192.168.1.1 eth0

--
Clifford Kite Email: "echo xvgr_yvahk-(E-Mail Removed)|rot13"
Reply With Quote
  #4  
Old 11-28-2004, 01:03 AM
Moe Trin
Guest
 
Posts: n/a
Default Re: How to Connecting two different network in redhat linux 9

In article <(E-Mail Removed) >, visu wrote:

>I have linux server with three ethernet cards.
>
>eth0 : 202.66.55.100 --> gw 202.66.55.97
>eth1 : 192.168.0.1 --> gw 202.66.55.100
>eth2 : 192.168.1.1 --> gw 202.66.55.100


Might be interesting to see the output of /sbin/route -n You can not
use 202.66.55.100 as a gateway on either 192.168.0.x or 192.168.1.x
because it's not on the same wire. A gateway is the IP address of the
host ON YOUR WIRE that you send packets to for onward transmission to
some other network (or more commonly, the world).

>eth0 act as gateway to share internet to two networks throu eth1 and
>eth2.


eth0 is just an interface. The thing that is doing the sharing (forwarding)
is the computer - specifically, the kernel.

>how to access from client eth1 network to client eth2 network throu
>redhat linux 9 server.


684614 Nov 9 2003 IP-Masquerade-HOWTO
17605 Jul 21 22:32 Masquerading-Simple-HOWTO
287057 Jul 23 2002 Security-Quickstart-Redhat-HOWTO

45620 Jul 10 2000 Networking-Overview-HOWTO
71626 Apr 4 2004 Unix-and-Internet-Fundamentals-HOWTO

Old guy

Reply With Quote
Reply

Tags
connecting, linux, network, redhat

Thread Tools
Display Modes

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 On
HTML code is Off
Forum Jump


All times are GMT. The time now is 01:09 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.