T
T
the_bizzon2016-06-20 14:52:07
linux
the_bizzon, 2016-06-20 14:52:07

How to mount an NFS share located on a different subnet?

There is a server with an NFS resource 192.168.1.10:/nfs/
it is connected to a server with 2 network interfaces: 192.168.1.1 and 192.168.0.1 (NFS is connected to 192.168.1.1 naturally)
There is a client with the address 192.168.0.10 which is connected to the server (192.168 .0.1).
Question: how can I access 192.168.1.10/nfs/ on the client ?
Now it is implemented as follows:
192.168.1.10:/nfs/ is mounted on the server at 192.168.1.1:/mnt/ via NFS,
then on the client: sshfs [email protected]:/mnt /mnt
But somehow this is not camelfo.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nikita Pavlov, 2016-06-22
@the_bizzon

On a server with 2 interfaces, configure routing between 192.168.1.10 and 192.168.0.10 (and write the appropriate route on them) and mount it directly.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question