LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 11-28-2007, 10:10 AM   #1
shawniecas
LQ Newbie
 
Registered: May 2007
Posts: 24

Rep: Reputation: 15
No Route To Host +NFS


Ok, I've been trying to set up NFS for a week now, and according to everything I've followed it should be working. When I boot up, it says

"Portmap: Unrecognized Service"
and something like "NFS failed: No route to host"

I can ping and ssh back and forth, so I don't understand the no route part, and I have portmap running when I type rpcinfo -p. It is running several versions on tcp and udp on port 111 on both machines. Any ideas on how to fix this problem??
 
Old 11-28-2007, 10:31 AM   #2
camorri
Senior Member
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1
Posts: 4,873

Rep: Reputation: 434Reputation: 434Reputation: 434Reputation: 434Reputation: 434
The thought I have is what have you got in your /etc/hosts.deny and /etc/hosts.allow files? These can block NFS hosts connecting.

For completeness, here is what I see on my systems for rpcinfo.

Code:
/usr/sbin/rpcinfo -p
   program vers proto   port
    100000    2   tcp    111  portmapper
    100000    2   udp    111  portmapper
    100024    1   udp   1027  status
    100024    1   tcp   3329  status
    100005    1   udp    654  mountd
    100005    1   tcp    657  mountd
    100005    2   udp    654  mountd
    100005    2   tcp    657  mountd
    100005    3   udp    654  mountd
    100005    3   tcp    657  mountd
    100003    2   udp   2049  nfs
    100003    3   udp   2049  nfs
    100003    4   udp   2049  nfs
    100003    2   tcp   2049  nfs
    100003    3   tcp   2049  nfs
    100003    4   tcp   2049  nfs
    100021    1   udp   1028  nlockmgr
    100021    3   udp   1028  nlockmgr
    100021    4   udp   1028  nlockmgr
    100021    1   tcp   3923  nlockmgr
    100021    3   tcp   3923  nlockmgr
    100021    4   tcp   3923  nlockmgr
Make sure you have all the services running.

Here is what I have in /etc/hosts.deny file.

Code:
cat hosts.deny
#
# hosts.deny    This file describes the names of the hosts which are
#               *not* allowed to use the local INET services, as decided
#               by the '/usr/sbin/tcpd' server.
#
# The portmap line is redundant, but it is left to remind you that
# the new secure portmap uses hosts.deny and hosts.allow.  In particular
# you should know that NFS uses portmap!
# Copied exports, hosts.allow and hosts.deny from 9.2 March 19/06
portmap:ALL
lockd:ALL
mountd:ALL
rquotad:ALL
statd:ALL
ALL:ALL
and /etc/hosts.allow file

Code:
cat hosts.allow
#
# hosts.allow   This file describes the names of the hosts which are
#               allowed to use the local INET services, as decided
#               by the '/usr/sbin/tcpd' server.
#
portmap: 192.168.1.20 , 192.168.1.21 , 192.168.1.22 , 192.168.1.23 , 192.168.1.13 , 192.168.1.12 , 192.168.1.15

lockd: 192.168.1.20 , 192.168.1.21 , 192.168.1.22 , 192.168.1.23 , 192.168.1.13 , 192.168.1.12 , 192.168.1.15
rquotad: 192.168.1.20 , 192.168.1.21 , 192.168.1.22 , 192.168.1.23 , 192.168.1.13 , 192.168.1.12 , 192.168.1.15
mountd: 192.168.1.20 , 192.168.1.21 , 192.168.1.22 , 192.168.1.23 , 192.168.1.13 , 192.168.1.12 , 192.168.1.15
statd: 192.168.1.20 , 192.168.1.21 , 192.168.1.22 , 192.168.1.23 , 192.168.1.13 , 192.168.1.12 , 192.168.1.15
sshd sshd1 sshd2 : 192.168.1.20 , 192.168.1.21 , 192.168.1.22 , 192.168.1.23 , 192.168.1.13 , 192.168.1.12 , 192.168.1.15
xinetd: 192.168.1.21
Note, the IP addresses are unique to my home network. Just make sure you are allowing all clients you want to allow.

Hope this helps.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Help: NFS error (No route to host) systemhackerz Linux - Networking 33 09-13-2012 01:54 PM
NFS: System Error: No route to host (retrying) lnthai2002 Linux - Networking 3 09-08-2006 12:45 PM
telnet works but 'telnet host 25' gives 'no route to host' karlmdv Linux - Networking 2 07-25-2006 07:28 AM
No route to host Airwaves Linux - Networking 2 11-04-2005 08:15 AM
nfs setup on slack 9.1 - no route to host daceo Slackware 2 02-19-2004 06:04 PM


All times are GMT -5. The time now is 05:23 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration