Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 01 Feb 2001 14:58:41 -0800
From:      "Raymundo M. Vega" <RaymundoVega@home.com>
To:        so@server.i-clue.de
Cc:        questions@FreeBSD.ORG
Subject:   Re: How to configure static routes?
Message-ID:  <3A79EA21.72B20264@home.com>
References:  <3A79DCAB.F47DB7C5@i-clue.de>

next in thread | previous in thread | raw e-mail | index | archive | help
Christoph Sold wrote:
> 
> Hi Folks,
> 
> 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 has nothing to do with routes, all you have to do is declare
in /etc/hosts (both computers)

192.168.111.1	server-a
192.168.111.2	server-b

then in /etc/exports (server b) should be something like:

/path/to/export     -maproot=root -alldirs 192.168.111.1

and in /etc/exports (server a) should be something like:

/path/to/export     -maproot=root -alldirs 192.168.111.2

On both servers

Kill -HUP <PID of nfsd>

and finally mount the disks on server-b looks like

mount server-a:/usr /myusr

suerte

raymundo
> 
> Thanks for your assitance
> -Christoph Sold
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message


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?3A79EA21.72B20264>