Weird networking problem: mounting disk
Consider two machines running Red Hat 5 connected in a local network.
There is a directory on machine2 called m2d. I want to mount this across to machine1, so I made a directory on machine1 called /temp-m2d
mount machine2:/m2d /temp-m2d
And I get a message
mount: mount to NFS server 'machine2' failed: System Error: No route to host.
So you'd think there must be a networking problem...
But I am able to ssh to machine2 from machine1, I am able to scp files from machine1 to machine2. ie in all other aspects there doesn't seem to be a networking problem.
I am able to mount disks the other way: ie I can do things like mount machine1:/m1d /temp-m1d when logged on to machine2.
I have tried using the local IP address 192.168.6.102 instead of the alias machine2, but that had the same result.
I tried adding m2d to the /etc/exports file and running exportfs -ra. Also tried using an automount (adding machine2:/m2d to an /etc/auto.data file for machine1).
What could be causing this? It really seems to be networked except when I try to mount.