[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Seting a Gateway



Hi all,

I´m having a hard time trying to understand routing or buildind agate
between two networks

I need that a machine with two lan interfaces eth0 and eth1, each one
connected to a different net worked like a gateway, Conecting the nets.

At eth0 I have an ip from internet and at eth1 I have an ip from intranet
172.16.0.10.
>From the internet I can access the server at eth0, and from the internet I
can access the same server but now at eth1.
What must I do to have access to the internet from a host in the intranet?

The router table is as followed:

Destination               Router                     Genmask
Flags       MSS Windown  irtt Iface
200.255.205.138     *                               255.255.255.255 UH
0         0             0 eth0
172.16.0.10              *                               255.255.255.255 UH
0         0             0 eth1
200.255.205.128     200.255.205.138   255.255.255.192 UG           0
0             0 eth0
200.255.205.128     *                               255.255.255.192 U
0         0              0 eth0
172.16.0.0                172.16.0.10            255.255.255.192 UG
0         0              0 eth1
172.16.0.0                 *                               255.255.255.192 U
0         0             0 eth1
127.0.0.0                   *                               255.0.0.0
U              0         0             0 lo
default                         0.0.0.0
UG           0         0             0 eth0


thanx for any advice.


Reply to: