Networking Forums

Networking Forums > Computer Networking > Linux Networking > How to Connecting two different network in redhat linux 9

Reply
Thread Tools Display Modes

How to Connecting two different network in redhat linux 9

 
 
visu
Guest
Posts: n/a

 
      11-27-2004, 09:29 AM
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
 
Reply With Quote
 
 
 
 
Davide Bianchi
Guest
Posts: n/a

 
      11-27-2004, 09:38 AM
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
 
Clifford Kite
Guest
Posts: n/a

 
      11-27-2004, 05:33 PM
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
 
Moe Trin
Guest
Posts: n/a

 
      11-28-2004, 12:03 AM
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

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Redhat Linux Network Security troy.john78@gmail.com Wireless Internet 0 12-04-2007 12:48 AM
Redhat Linux 8 and Redhat Enterprise Linux 4 printer not configure Niraj Linux Networking 0 12-06-2006 04:51 AM
Help with connecting WinXP to RedHat Linux Menhir Linux Networking 2 03-11-2005 05:46 AM
Red Hot Linux v9.0 [2 DVDs]. Red Hot Linux v9.0 [3 CDs]. Redhat Enterprise Linux ES v3.0 REPACK [4 CDs]. Mandrake Linux 9.2 [3 CDs] -new ! TEL Linux Networking 0 12-01-2003 12:06 PM
Red Hot Linux v9.0 [2 DVDs]. Red Hot Linux v9.0 [3 CDs]. Redhat Enterprise Linux ES v3.0 REPACK [4 CDs]. Mandrake Linux 9.2 [3 CDs] - new ! TEL Linux Networking 0 11-29-2003 11:27 AM



1 2 3 4 5 6 7 8 9 10 11