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

Re: routing problem i think



Patrick Lavallee wrote:
> 
>hello. I have a RH 7.1 server use for gateway between my private lan and
>the internet. On that server i have 2 interface called eth0 wich is connect
>to the private lan (private ip adress) and eth1 wich is connect to the
>router (public ip adress, set as default gateway).

The machines on your LAN should have their default gateway as the IP address
of eth0. They cannot route to eth1 because it is on a different network. If
the client are running an OS that allows a static route, you could do it
that way, but it's a kludge. Just use the IP address for eth0.

On the server, the default gateway is eth1 and there should be a specific
route for the network associated with eth0.

Here is a sample routing table. Line 1 is my internal LAN interface (eth1).
Line 2 is the route to my internal LAN. Line 3 is my Internet interface
(eth0). Line 4 is loopback. Line 5 is the default gateway. The client
machines on my LAN have their default gateway set as 192.168.10.1.

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface
192.168.10.1    0.0.0.0         255.255.255.255 UH    0      0        0 eth1
192.168.10.0    0.0.0.0         255.255.255.0   U     0      0        0 eth1
66.66.7.180     0.0.0.0         255.255.254.0   U     0      0        0 eth0
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
0.0.0.0         66.66.7.1       0.0.0.0         UG    0      0        0 eth0


>in my private lan i have 3 other server with each a public adress.

You can't put public addresses on your LAN if you are using IP Masquerading.
All machines with public addresses must be connected to the external network
(optionally through a firewall, but no masquerading).

Tony
-- 
Anthony E. Greene <agreene pobox com> <http://www.pobox.com/~agreene/>
PGP Key: 0x6C94239D/7B3D BD7D 7D91 1B44 BA26  C484 A42A 60DD 6C94 239D
Chat:  AOL/Yahoo: TonyG05    ICQ: 91183266
Linux. The choice of a GNU Generation. <http://www.linux.org/>





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