Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
01-19-2004, 08:34 AM
|
#1
|
Member
Registered: Nov 2003
Distribution: Arch
Posts: 136
Rep:
|
NFS server - client cannot mount remote file system
Hi. I'm pretty new to this linux stuff and am having problems sharing files between 2 systems. I have configured NFS Server on one PC and each time I try to mount the exported directory from the client, I get the message:
mount: RPC: Remote system error - No route to host
The 2 systems can ping each other quite happily, but that's about as far as I have got!
My configuration is as follows:
The server is running Red Hat Fedora and has the host name fedora and the IP address 192.168.1.1
The client is running Red Hat 9 and has the IP address 192.168.1.2
From the graphical NFS Server utility on the server, I have exported the following:
/root, to host 192.168.1.2/24, permissions Read/Write
The /etc/exports file has the following entry: /root 192.168.1.2/24(rw,sync,no_root_squash)
There is nothing concerning the new exported dir in /etc/fstab or /etc/mtab
On the client, I have created /mnt/fedora
The commands I have issued at the client to try to mount the remote filesystem are:
mount fedora:/root /mnt/fedora
mount 192.168.1.1:/root /mnt/fedora
mount -t nfs 192.168.1.1:/root /mnt/fedora
The error message is the same:
mount: RPC: Remote system error - No route to host
Accoding to the NFS server help file, the required services should start automatically,but I have tried stopping and re-starting them manually anyway, using the commands:
/etc/init.d/nfs start
/etc/init.d/nfslock start
ps ax gives processes for:
portmap
rpc.statd
rpc.rquotad
[nfsd] (8 of these)
lockd
rpciod
rpc.mountd
Please help!!!
Mike.
|
|
|
01-19-2004, 05:33 PM
|
#2
|
Member
Registered: Dec 2003
Location: Long Island, NY USA
Distribution: RedHat, SUSE
Posts: 336
Rep:
|
Change the .2 to .0 in
192.168.1.2/24
and check that you are not filewalling
iptables -L -n;
|
|
|
01-20-2004, 01:17 PM
|
#3
|
Member
Registered: Nov 2003
Distribution: Arch
Posts: 136
Original Poster
Rep:
|
Yep! Disabled the firewalls and it worked straight away.
Thanks very much - I'd forgotten all about the firewall......
|
|
|
02-04-2006, 10:31 AM
|
#4
|
Member
Registered: Mar 2004
Location: India
Distribution: MDK, Fedora, Debian Unstable (current)
Posts: 80
Rep:
|
Quote:
Originally Posted by g-rod
Change the .2 to .0 in
192.168.1.2/24
and check that you are not filewalling
iptables -L -n;
|
im having the same problem
i dunno anyhtign about iptables...so what should i be trying to find or fix?
|
|
|
02-05-2006, 10:06 AM
|
#5
|
Member
Registered: Dec 2003
Location: Mississippi, USA
Distribution: Fedora
Posts: 435
Rep:
|
First, you need to configure mountd and rquotad to use static ports; they don't by default. I bind them to ports 922 and 923, but you can use any unused ports you wish. In Red Hat distros, the relevant file is /etc/sysconfig/nfs.
Code:
[root@petrel ~]# cat /etc/sysconfig/nfs
export MOUNTD_PORT=922
export RQUOTAD_PORT=923
Next, restart your nfs server. (Again, using Red Hat techniques.)
Code:
/sbin/service nfs restart
Finally, modify your software firewall to allow clients to connect to your nfs server. By using the "-s 192.168.1.0/24" option, I allow only internal clients to connect. Modify or leave it out altogether if you wish.
Code:
/sbin/iptables -A INPUT -s 192.168.1.0/24 -p tcp --dport 922 -j ACCEPT
/sbin/iptables -A INPUT -s 192.168.1.0/24 -p udp --dport 922 -j ACCEPT
/sbin/iptables -A INPUT -s 192.168.1.0/24 -p tcp --dport 923 -j ACCEPT
/sbin/iptables -A INPUT -s 192.168.1.0/24 -p udp --dport 923 -j ACCEPT
/sbin/iptables -A INPUT -s 192.168.1.0/24 -p tcp --dport 111 -j ACCEPT
/sbin/iptables -A INPUT -s 192.168.1.0/24 -p udp --dport 111 -j ACCEPT
/sbin/iptables -A INPUT -s 192.168.1.0/24 -p tcp --dport 2049 -j ACCEPT
|
|
|
10-12-2006, 11:05 PM
|
#6
|
LQ Newbie
Registered: Oct 2006
Posts: 2
Rep:
|
SUSE 10.1 NFS problems
i use command "service nfs start " but if promote :
Net File System UNUSED
why ???
my development board can not mount NFS server .help !
|
|
|
10-12-2006, 11:05 PM
|
#7
|
LQ Newbie
Registered: Oct 2006
Posts: 2
Rep:
|
help to check how to use nfs service on suse10.1
|
|
|
All times are GMT -5. The time now is 01:44 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|