Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Oct 1997 22:41:30 +1000 (EST)
From:      "Daniel O'Callaghan" <danny@panda.hilink.com.au>
To:        chrw <shredder@hack.babel.dk>
Cc:        freebsd-isp@FreeBSD.ORG
Subject:   Re: routing between networks
Message-ID:  <Pine.BSF.3.91.971006223743.262e-100000@panda.hilink.com.au>
In-Reply-To: <Pine.BSF.3.91.971006134355.13842A-100000@hack.babel.dk>

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

On Mon, 6 Oct 1997, chrw wrote:

> Hello, I have a small question to ask. I do not fully understand how
> routing between 2 logical networks works. Lets say I got net 194.19.1, with
> default gateway and router to the internet at 194.19.1.1. Now, I want to
> add another C net, 194.19.2 with the same gateway as net .1. This new net
> cannot see the other net, so I need to setup a box to route between these
> 2 nets.. right? 

Yes.

> Do I need to setup a box with 2 NICS, one for each net? The

Yes.

> way I prefer it, is to route between the nets, but stay with a single NIC.

You may *think* you prefer it, but if you do it that way you'll find that 
1 NIC per network is best.
 
> Is it enough to simply bind an IP address of the old net to the routing 
> box's NIC, and it will then automatically forward packets? I know this may
> be a silly question, but I am little confused about it. I hope someone may
> give me a hint or two :)

You can put IP addresses 194.19.1.1 and 194.19.2.1 onto a single NIC and 
have two logical networks on the one cable, but it would be better to 
have 194.19.1 machines on one physical network and 194.19.2 machines on 
another.

Don't forget to enable gateway="YES" in rc.conf.

Dnny



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