|
||||||||
|
|
|||||||
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|
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 |
|
#2
|
|||
|
|||
|
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 |
|
#3
|
|||
|
|||
|
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" |
|
#4
|
|||
|
|||
|
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 |
![]() |
| Tags |
| connecting, linux, network, redhat |
| Thread Tools | |
| Display Modes | |
|
|