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

Re: Routing



On Tue, 10 Jul 2001, Debian GNU wrote:

> Hi all,
>
> I have a network with the following configuration.
>
> ---------------------------------------------
> 192.168.1.0/24      |                      |
>                 192.168.1.1            192.168.1.2
>                Linux Gateway             Router
>                    /                       |
>                inet address
> 192.168.100.0/24
>                    |
>                Router to internet
>
> The machines in 192.168.1.0/24 network has put their
> gateway as the linux machine and are accessing the
> internet using proxy/masq. The default gateway of
> Linux is set to the address of the router to internet.
>
>
> How can I access the machines in 192.168.100.0/24
> network ?

I think the diagram got a little garbled in my mail reader, but if the
192.168.100.0 network is on the other network interface of 'Router'
(192.168.1.2) then the following applies.

The default route in a machine is the route that is used after all other
routes have been checked. For machines in the 192.168.1.0 network to have
connectivity to the 192.168.100.0 network, add a network route to
192.168.100.0 with the next hop gateway as 192.168.1.2.  For machines on
the 192.168.100.0 network, because (if I understand your network's
topology correctly) connectivity to all other networks is through
'Router', a default route with the next hop gateway being the
192.168.100.x network interface on 'Router' will suffice for them.

Hope this helps...




Reply to: