How to Connecting two different network in redhat linux 9

How to Connecting two different network in redhat linux 9

Post by vis » Sun, 28 Nov 2004 19:29:52



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

 
 
 

How to Connecting two different network in redhat linux 9

Post by Davide Bianch » Sun, 28 Nov 2004 19:38:42



Quote:> 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

 
 
 

How to Connecting two different network in redhat linux 9

Post by Clifford Kit » Mon, 29 Nov 2004 03:33:38



> 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

--

 
 
 

How to Connecting two different network in redhat linux 9

Post by Moe Tr » Mon, 29 Nov 2004 10:03:49



>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).

Quote:>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.

Quote:>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

 
 
 

1. How to connect three different network using redhat linux 9 - clients are window 2000

hello friends.

The present situation is,

we have one linux server, that server has two ethernet cards. one act
as gateway  to connect internet, another card is sharing internet to
LAN.

Now i need to separate single LAN into two different networks. And i
have to share internet to these  two networks.

if there is any possible to access within these two networks throu
redhat Linux 9. The clinet are windows 2000.

every hits are appreciated.

thank you

pvn

2. webmin

3. Using DHCP to connect to two different networks

4. monitoring traffic on a port?

5. Having two separate networks connect using two Linux routers and ISDN

6. How to print postscript FAQ

7. Connecting two networks with two linux boxes.

8. Dailin & Dailout?

9. A Linux in Two Networks Throug the same Network Card?, HOW TO CONNECT

10. iptable rules for two networks connected with two firewalls

11. two computer connected by two network cards

12. How to connect two networks to a third network?

13. connecting two linux boxes without network card?