Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Nov 1997 23:06:43 +1100 (EST)
From:      "Daniel O'Callaghan" <danny@panda.hilink.com.au>
To:        Antal Rutz <rutz@dab.iit.uni-miskolc.hu>
Cc:        V Gatut Harijoso <gatut@student.unpar.ac.id>, freebsd-isp@FreeBSD.ORG
Subject:   Re: Gateway question
Message-ID:  <Pine.BSF.3.91.971111230030.253S-100000@panda.hilink.com.au>
In-Reply-To: <Pine.BSF.3.91.971111112025.1480A-100000@veltins.iit.uni-miskolc.hu>

next in thread | previous in thread | raw e-mail | index | archive | help


On Tue, 11 Nov 1997, Antal Rutz wrote:

> On Mon, 10 Nov 1997, V Gatut Harijoso wrote:
> 
> > Using gated or routed maybe solve the problem. Simple way is
> > a. at default router
> > 	route add -net <net-of-box1-box2> <193.6.9.box1-address>
> They all (router, box1, box2) are on the same 
> (193.6.4.9.0/255.255.255.0) net.


And there you have the cause of the problem.  A fundamental lack of 
understanding of IP routing.  The idea of a router is to route packets 
between two networks which are NUMBERED DIFFERENTLY.  You need to subnet 
your network and put one subnet on each side of the router.  Yes, you can 
fudge your way through with proxy arp, but it is not a good practice, and 
you should take the time to learn about subnetting now, while you have 
few machines.  See below for my suggested network config.

Danny

You wrote:

> > > I want to build a little network that way:
> > > 
> > >          Ethernet:193.6.9.0/255.255.255.0
> > >        <------------------------------------->
> > >            |                 |
> > >         ---------          -------  (193.6.9.7)
> > >         |default|          |FBSD |  'box1'
> > >         |router |          |Box  |  
> > >         ---------          -------  (193.6.9.8)
> > >         (193.6.9.254)        |
> > >                              | IP through lp0
> > >                              |
> > >                            -------  (193.6.9.9)
> > >                            |FBSD |  'box2'
> > >                            |Box  |
> > >                            -------


I suggest:

> > >          Ethernet:193.6.9.0/255.255.255.192
> > >        <------------------------------------->
> > >            |                 |
> > >         ---------          -------  (193.6.9.7)
> > >         |default|          |FBSD |  'box1'
> > >         |router |          |Box  |  
> > >         ---------          -------  (193.6.9.65)
> > >         (193.6.9.62)         |
> > >                              | IP through lp0 
                                   | 193.6.9.64/255.255.255.192
> > >                              |
> > >                            -------  (193.6.9.66)
> > >                            |FBSD |  'box2'
> > >                            |Box  |
> > >                            -------




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.91.971111230030.253S-100000>