From owner-freebsd-questions Thu Feb 1 15: 3:27 2001 Delivered-To: freebsd-questions@freebsd.org Received: from gekko.i-clue.de (server.ms-agentur.de [62.153.134.194]) by hub.freebsd.org (Postfix) with ESMTP id 891DE37B4EC for ; Thu, 1 Feb 2001 15:03:08 -0800 (PST) Received: from i-clue.de (automatix.i-clue.de [192.168.0.112]) by gekko.i-clue.de (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) with ESMTP id BAA22436; Fri, 2 Feb 2001 01:10:43 +0100 Message-ID: <3A79EB78.98CD5F8D@i-clue.de> Date: Fri, 02 Feb 2001 00:04:24 +0100 From: Christoph Sold Reply-To: so@server.i-clue.de X-Mailer: Mozilla 4.75 [de] (WinNT; U) X-Accept-Language: de MIME-Version: 1.0 To: Tony Landells Cc: questions@freebsd.org Subject: Re: How to configure static routes? References: <200102012250.JAA00735@tungsten.austclear.com.au> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Tony, thanks for the fast answer. Pointy hat to me, I forgot different interfaces get different names. Sometimes the obvious eludes me. Well, since it's near midnight here, I'll call it a day. Have fun -Christoph Sold Tony Landells schrieb: > > Hi Christopher, > > > I want to setup a small server network like this: > > Server Net +----------+ Client Net > > 192.168.111.1 .--+ ed0 ed1 +--- 192.168.222.1 > > | | Server A | > > | +----------+ > > | > > | +----------+ > > 192.168.111.2 ^--+ ed0 ed1 +--- 192.168.222.2 > > | Server B | > > +----------+ > > > > Server A mounts B via NFS and vice versa. Traffic between these two > > machines should be routed through the 192.168.111.0/24 net, all other > > traffic should be routed into the .222. How to make these two machines > > talk to each other on their separate net? > > It will be done for you automatically. > > FreeBSD will automatically create routes to any directly connected > networks. The only time you need to add routes is to tell it how > to get to networks it isn't connected to, such as your "all other > traffic should be routed into the .222". For that, assuming you > don't want to run routed or gated to get dynamic routing updates, > you'll need to add something like: > > defaultrouter="192.168.222.254" > > in /etc/rc.conf, where you replace 192.168.222.254 with the address > of the router in the 192.168.222.0/24 network that knows how to go > elsewhere. > > But if the only two networks you're ever going to send stuff to are > 192.168.111.0/24 and 192.168.222.0/24, then you don't have to do anything > except assign addresses to the interfaces. > > And I'm assuming, of course, that when you do your NFS stuff you use > the IP addresses or hostnames of Server A and Server B that are on > 192.168.111.0/24 network. If they refer to each other using names > that map to the 192.168.222.0/24 addresses, then that's where the > traffic goes. > > Cheers, > Tony > -- > Tony Landells > Senior Network Engineer Ph: +61 3 9677 9319 > Australian Clearing Services Pty Ltd Fax: +61 3 9677 9355 > Level 4, Rialto North Tower > 525 Collins Street > Melbourne VIC 3000 > Australia Freundliche Grüße aus Waiblingen Christoph Sold -- Systemadministrator, i-clue GmbH, Endersbacher Str. 57, 71334 Waiblingen Fon: (0 71 51) 9 59 01-12, Fax: (0 71 51) 9 59 01-55, Mail: so@i-clue.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message