From owner-freebsd-questions Tue Sep 4 20: 6:10 2001 Delivered-To: freebsd-questions@freebsd.org Received: from cody.jharris.com (cody.jharris.com [205.238.128.83]) by hub.freebsd.org (Postfix) with ESMTP id 0603037B408 for ; Tue, 4 Sep 2001 20:06:05 -0700 (PDT) Received: from localhost (nick@localhost) by cody.jharris.com (8.11.1/8.9.3) with ESMTP id f8535sd33085; Tue, 4 Sep 2001 22:05:54 -0500 (CDT) (envelope-from nick@rogness.net) Date: Tue, 4 Sep 2001 22:05:54 -0500 (CDT) From: Nick Rogness X-Sender: nick@cody.jharris.com To: MurrayTaylor Cc: freebsd-questions@FreeBSD.ORG Subject: Re: WAN routing choices ... In-Reply-To: <017a01c1359e$4c60c600$2a7627cb@bytecraft.au.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, 5 Sep 2001, MurrayTaylor wrote: > I am extending our company network and invite comment as to the 'most > useful' / 'least hassle' addressing schema > > > > +------------+ > | routing |ng0 > LAN a --+ host +---------------- internet > | A | > | +-------+ > | |ng1 | > +------------+ | > -/- > WAN link > -/- > +------------+ | > | routing |ng0 | > LAN b --+ host +-------+ > | B | > | | > +------------+ > > > FWIW the internet link and the WAN link are via a frame relay > setup with netgraph, and nat -u is running on host A(ng0). > > LAN a has a legal range 203... > Host A(ng0) has a legal ip 139... > > LAN b is a RFC1918 net 192.168.1.0 > > I can setup the WAN link on a different RFC1918 net 192.168.2.0 > and route accordingly > > on A > ifconfig ng1 192.168.2.1 -netmask 255.255.255.0 > route add -net 192.168.1.0 192.168.2.2 Looks ok. don't forget the default route out to the internet pipe. > on B > ifconfig ng0 192.168.2.2 -netmask 255.255.255.0 > route add default 192.168.2.1 Yep. Nice and simple...keep it that way ;-) > > _or_ > > I can just setup the routing tables with the interface names only > > on A > route add -net 192.168.1.0 -interface ng1 > on B > route add default -interface ng0 > > The Exam Questions ;-) > [1] If you were doing this WAN net, which method would you choose? > > [2] Explain your choice? > Use IP's, not interface names. It's easier to troubleshoot problems (IMHO). What you have above looks fine to me. Nick Rogness - Keep on Routing in a Free World... "FreeBSD: The Power to Serve!" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message