LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-04-2020, 04:20 PM   #1
bellsal
Member
 
Registered: Aug 2007
Posts: 42

Rep: Reputation: 0
Question NFS No route to host


All,

I am stuck and need help troubleshooting my problem.

First of all, I disabled SELinux and stopped the firewalld.service on the server and client to eliminate their interference and make it easier for me to troubleshoot the problem.

On the server (LinuxSrv, 192.168.0.8), I made the following changes:

/etc/exports:
/home/data 192.168.0.78(rw,sync,no_root_squash)

/etc/hosts.allow:
portmap: 192.168.0.78
lockd: 192.168.0.78
rquotad: 192.168.0.78
mountd: 192.168.0.78
statd: 192.168.0.78

/etc/hosts.deny:
portmap:ALL
lockd:ALL
mountd:ALL
rquotad:ALL
statd:ALL

/etc/hosts:
192.168.0.78 LinuxClt
192.168.0.8 LinuxSrv

If I run exportfs -a -v, I get:
exporting 192.168.0.78:/home/data

On the server (LinuxClt, 192.168.0.78), I made the following changes:

/etc/nfsmount.conf (because my LinuxSrv is old and it has NFS 3):
Nsfvers=3

I ran the following command:
/usr/bin/mount -t nfs -o vers=3 LinuxSrv:/home/data /mnt/data

and got: mount.nfs: No route to host

What am I missing?


I appreciate any help.... Thanks.
 
Old 10-04-2020, 05:00 PM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Which distro and version is this?

Can the client connect to the servers in other ways, e.g. ping, ssh or ncat?

"no route to host" usually means that the connection request gets lost somewhere between client and server, or that the server doesn't respond (i.e. blocks it). Are you sure the firewall on the server is off? You can check with iptables-save.
 
Old 10-04-2020, 05:54 PM   #3
bellsal
Member
 
Registered: Aug 2007
Posts: 42

Original Poster
Rep: Reputation: 0
berndbausch,

Never mind! I thought I had turned off the firewall on the Server, but it was still on, and it was blocking the 2049 NFS ports.

Thanks
 
Old 10-04-2020, 11:47 PM   #4
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by bellsal View Post
berndbausch,

Never mind! I thought I had turned off the firewall on the Server, but it was still on, and it was blocking the 2049 NFS ports.

Thanks
After years of painful and embarrassing errors like this, I keep telling myself: Always double-, triple-, quadruple-check. And then I forget it and run into the same errors again. Such is life.
 
  


Reply

Tags
nfs exports, nfs mount network, nfsv4



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Packet going out of wrong interface due to OS adding cache route - OS trying to route through default route msr1981 Linux - Networking 2 10-11-2017 02:58 PM
Packet going out of wrong interface due to OS adding cache route - OS trying to route through default route msr1981 Red Hat 1 10-09-2017 05:45 AM
telnet works but 'telnet host 25' gives 'no route to host' karlmdv Linux - Networking 2 07-25-2006 06:28 AM
I am not able to add a new route to my route table using route command prashanth s j Linux - Networking 2 09-03-2005 04:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration