LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 08-08-2022, 07:22 PM   #1
shanebagel
Member
 
Registered: Apr 2022
Posts: 52

Rep: Reputation: 2
Question No route to host?


I have two servers
A and B
I've installed nfs on A, exported a directory, and added nfs/rpcbind/mountd to my firewall

From server B, I get "no route to host" when I run mount


Has anyone seen this before?



















Additional information:
I CAN ping and SSH from B to A
DNS set correctly, I can ping A from B and B from A by name and IP
TCP port 111 allowed, nfs, mountd, rpc-bind allowed on Server A
I tried disabling firewalld on server A but still get the error
Permissions are set to 777 on server A share
I've restarted the nfs-server service after configuring everything
/etc/exports is /common serverB(rw) on server A - so it's not the culprit

Last edited by shanebagel; 08-08-2022 at 07:25 PM.
 
Old 08-08-2022, 08:21 PM   #2
uteck
Senior Member
 
Registered: Oct 2003
Location: Elgin,IL,USA
Distribution: Ubuntu based stuff for the most part
Posts: 1,174

Rep: Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501
From the client what does
Code:
showmount -e servername or ip
say?
 
Old 08-08-2022, 08:56 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,749

Rep: Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928
What distribution / version is A and B running?

Did you install the nfs client software on B? Depending on distribution that is usually the nfs-common package which includes rpcbind. Is rpcbind running on the server?

nfs uses both tcp/udp on port 2049 as well as rpcbind on port 111 (I believe).
 
Old 08-08-2022, 09:41 PM   #4
shanebagel
Member
 
Registered: Apr 2022
Posts: 52

Original Poster
Rep: Reputation: 2
I get RPC: Program not registered when I run showmount on that server
 
Old 08-08-2022, 09:45 PM   #5
shanebagel
Member
 
Registered: Apr 2022
Posts: 52

Original Poster
Rep: Reputation: 2
Both A and B are running RHEL 9.0 with a GUI
I installed the software for NFS on B
RPC bind is running on the server
I added TCP and UDP ports 111 and 2049 to the firewall and issued the reload command
 
Old 08-08-2022, 09:53 PM   #6
uteck
Senior Member
 
Registered: Oct 2003
Location: Elgin,IL,USA
Distribution: Ubuntu based stuff for the most part
Posts: 1,174

Rep: Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501
This link goes over a lot of the steps for troubleshooting the RPC error: https://unix.stackexchange.com/quest...not-registered
 
Old 08-09-2022, 12:49 PM   #7
shanebagel
Member
 
Registered: Apr 2022
Posts: 52

Original Poster
Rep: Reputation: 2
Talking

Thank you sooo much for the help, I ended up reverting to a snapshot, redoing the whole configuration and doing this:

Add rpc-bind to firewall
Add nfs to firewall
Reload firewall
Restart rpcbind.service
Restart nfs-server.service
Update permissions to 777 on server directory i was sharing
Mounted NFS share on client
 
  


Reply



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 - Newbie

All times are GMT -5. The time now is 11:51 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