Jim.

Thanks for your help.

All this is to try another thing.

I'm beginning with this and I don´t know how get help.

My true problem is the next :

I've got 3 lans:

Lan A: 192.168.200.0 = all my clients computers are coneccted.
Lan B: 192.168.2.0   = there are 3 hosts where the clients A must be
access.
Lan C: 192.168.3.0   = where is connected the router

Linux:
Eth0: 192.168.200.100
Eth1: 192.168.2.100
Eth2: 192.168.3.100

Router : 192.168.3.17

LINUX has 3 ethernets so I can separate traffic and after set filters.

-------Lan A -- LINUX  -- Lan C ==Internet
|                       |
|                   Lan B
All                |     |
Hosts           hostCA  hostCB
                

I want to use the linux red hat 7.3 to access internet lan C and access
another lanB from LAN A.

How Could mount this strategy ?

Is It must be very complicated ?

-----Mensaje original-----
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
En nombre de Jim Cunning
Enviado el: miércoles, 10 de julio de 2002 19:03
Para: [EMAIL PROTECTED]
Asunto: Re: RV: Routing

On Wed, 10 Jul 2002, Ximo Llacer wrote:

> I have 2 if :
>
>  eth0=192.168.200.11
>  eth1=192.168.2.189
>
> I have ip_forward = yes in /etc/networks.
>
> My route table is:
>
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags Metric Ref
Use Iface
> Lan A
> 192.168.2.0     192.168.2.189   255.255.255.0   UG    0      0
0 eth1
> 192.168.2.0     0.0.0.0         255.255.255.0   U     0      0
0 eth1
> Lan B
> 192.168.200.0   192.168.200.11  255.255.255.0   UG    0      0
0 eth0
> 192.168.200.0   0.0.0.0         255.255.255.0   U     0      0
0 eth0
>
> 127.0.0.0       0.0.0.0         255.0.0.0       U     0      0
0 lo
> Router
> 0.0.0.0         192.168.200.17  0.0.0.0         UG    0      0
0 eth0
>
>
> Host A = 192.168.2.100    GW=192.168.2.189
> Host B = 192.168.200.100  GW=192.168.200.11
>
> I can't to access to internet from Host A but Host B yes.
>
> Is correct this route table ?
>
> Can be that the linux 7.3 is protected anyway ?
>
> When I filter with iptraf it shows unreachable port.

When you say "I have 2 if" and list the addresses eth0=192.168.200.11
and
eth1=192.168.2.189, this must be another host (C?) that you are
intending
to use as an internal router to the internet router at 192.168.200.17.
Right?

I see two problems with the information you supplied.  1) Delete the
following lines from your route table--they are unnecessary, and might
actually be your main problem:

192.168.2.0     192.168.2.189   255.255.255.0   UG    0      0        0
eth1
192.168.200.0   192.168.200.11  255.255.255.0   UG    0      0        0
eth0

2) The (apparently default) gateway of 192.168.200.11 for host B means
that B must send to router C, which then must resend _on the same LAN_
to
192.168.200.17.  This makes C a one-armed router, unnecessarily routing
packets that could go directly to the correct router. The default
gateway
for host B should be 192.168.200.17.

A more consistent configuration for hosts A and B, would be something
like
this:

Host A (192.168.2.100):
192.168.200.0 gw 192.168.2.189 (network route through host C)
0.0.0.0       gw 192.168.200.17 (default route to internet router)

Host B (192.168.200.100):
192.168.2.0   gw 192.168.200.11 (network route through host C)
0.0.0.0       gw 192.168.200.17 (default route to internet router)

For the return path, the internet router must have a network route:
192.168.2.0   gw 192.168.200.11 (through host C)


Jim Cunning



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to