PDA

View Full Version : NFS,cross-over network, not working


leandro555
8th April 2008, 01:33 AM
Hi,

I am trying to connect two computers.
In the frist one (running the services nfs and nfslock) there's the /etc/exports:

/files 192.168.1.2(rw,sync)

In the other one, when I try:
mount -t nfs 192.168.1.1:/files /mnt/files
it shows:
mount to NFS server '192.168.1.1' failed: server is down.

I checked the connection (ping) and it's alright.

I heard something about the service 'portmap' but coudn't find it.

Thanks a lot.

stevea
8th April 2008, 02:07 AM
run rpcbind service on the server
make sure port 111 & 2049 aren't firewalled.

leandro555
8th April 2008, 01:41 PM

oh, god! didn't thought connect two computers could be so hard....


well, I was already running the service, so I set the ports and when I try it now shows:

mount: RPC: Unable to receive; errno = No route to host


But when I disable the hole firewall, it works in parts:
I don't have writing permitions, not even as root.
Sometimes when I umount the folder, it fails, showing:
device is busy.

my /etc/exports now:

/files 192.168.1.2(rw,async,all_squash)

Thanks.