Date: Fri, 02 Feb 2001 00:04:24 +0100 From: Christoph Sold <so@server.i-clue.de> To: Tony Landells <ahl@austclear.com.au> Cc: questions@freebsd.org Subject: Re: How to configure static routes? Message-ID: <3A79EB78.98CD5F8D@i-clue.de> References: <200102012250.JAA00735@tungsten.austclear.com.au>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <ahl@austclear.com.au> > 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3A79EB78.98CD5F8D>