Re: 2 Routers



On Mon, 4 Sep 2006, in the Usenet newsgroup alt.os.linux.suse, in article
<TLSdnfxsJZx3w2HZRVnyrw@xxxxxxxx>, miguel-lopes wrote:

Hello I have a linux Suse 9.3 installed and it is working fine but I
have a problem is how cam I serve 2 diferente networks.

Yes - that is exactly what you posted here last week.

A small Drawing

|-------router (192.168.1.252)------ internet
box1----+
|----router (192.168.1.254)------intranet---+----IP
192.168.2.*

|-----IP 192.168.3.*

|-----IP 192.168.4.*

I'm sure that looked fine when you posted it - but it's pretty meaningless
when it gets to the news server. I'm _GUESSING_ the "box 1" is the one
you are worried about. The routing table should look something like this:

[example ~]$ /sbin/route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 89948 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 388 lo
192.168.2.0 192.168.1.254 255.255.255.0 UG 0 0 23 eth0
192.168.3.0 192.168.1.254 255.255.255.0 UG 0 0 23 eth0
192.168.4.0 192.168.1.254 255.255.255.0 UG 0 0 23 eth0
0.0.0.0 192.168.1.252 0.0.0.0 UG 0 0 2673 eth0

and so on. The hosts on those other networks need to know to use the IP
address of the router on their wire (perhaps 192.168.2.254) to reach back
to any non-local network. Perhaps it would look like this:

Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 89948 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 388 lo
0.0.0.0 192.168.2.254 0.0.0.0 UG 0 0 2673 eth0

How can I do this??

The same way you were told to do so last week. Yast will do this for you.

Old guy
.