Linux - NetworkingThis 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.
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.
Recently I had to put a new OS on my 2nd computer. Since then I have not been able to mount a file share from box 1 on box 2. My specs are this:
box 1
Compaq Presario SR1426NX
2.93Ghz Pentium 4
512MB PC2-3200 DDR2 SDRAM
160GB Serial ATA hard drive
dual booting win XP & FC4
box 2
HP Pavilion
500Mhz Celeron
256MB ram
80GB hard drive
running Ubuntu 5.10 "Breeze"
The file sharing I do, is linux to linux, and notwin to linux. I also print share, which really hasn't been near the problem. I have been able to mount files from box 2 on box 1 using:
mount -t nfs 192.168.2.6:/home/bill /mnt
But when I try the same thing on box 2 I get a "RPC error no route to host"
Here are my /etc/hosts & /etc/hosts.allow files. I think they are correct, but who knows at this point.
/etc/hosts =
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 Goliath.justbillsguitars.com localhost localhost.localdomain
192.168.2.0/24 Ulysses.justbillsguitars.com
/etc/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.
#
ALL: 192.168.2.0/24
The above files are off of box 1. I will go to box 2 and post the same files from there, and the error I get when I try to mount box 1.
root@Ulysses:/home/bill# mount -t nfs 192.168.2.2:/home/Bill /mnt
mount: RPC: Remote system error - No route to host
I really can't figure that one out! Here is my /etc/hosts file from box 2:
127.0.0.1 Ulysses.justbillsguitars.com localhost localhost.localdomain
192.168.2.2 Goliath.justbillsguitars.com
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
and here is my /etc/hosts.allow:
# /etc/hosts.allow: list of hosts that are allowed to access the system.
# See the manual pages hosts_access(5), hosts_options(5)
# and /usr/doc/netbase/portmapper.txt.gz
#
# Example: ALL: LOCAL @some_netgroup
# ALL: .foobar.edu EXCEPT terminalserver.foobar.edu
#
# If you're going to protect the portmapper use the name "portmap" for the
# daemon name. Remember that you can only use the keyword "ALL" and IP
# addresses (NOT host or domain names) for the portmapper, as well as for
# rpc.mountd (the NFS mount daemon). See portmap(8), rpc.mountd(8) and
# /usr/share/doc/portmap/portmapper.txt.gz for further information.
#
ALL: 192.168.2.0/24
So,as I said earlier, I really am at a loss on this, and have gotten no replies to my networking questions, over at the Ubuntu forums. This seems to be an issue with Ubuntu (on box 2), as I did not have this problem with CentOS (which unexpainably crashed beyond repair). So far I am happy with this distro, with the exception of this issue. Could someone please help!
1)Can we try this without hosts.allow entries? (no tcpwrappers)
2)Iptables running?
3)can we try smbfs or some other filesharing proto?
4)can you mount via loopback onto itself?
To be truthful, I don't understand what any of that means, but there it is. With /etc/hosts.allow I took out the entry and tried to mount again, and got the same error:
root@Ulysses:/var/log# mount -t nfs 192.168.2.2:/home/Bill /mnt
mount: RPC: Remote system error - No route to host
I really don't know how to tell if the IPTables are running or not, I will try to find out and get back to you on that.
I am willing to try any file and print sharing proto, is smbfs Samba? I will try and use whatever works, plus I am eager to learn this stuff anyway! And finally, I have no idea how or what you mean by mounting via "loopback". I would be glad to try, if you could give me a brief explanation.
bill@Ulysses:~$ su
Password:
root@Ulysses:/home/bill# /etc/init.d/iptables status
bash: /etc/init.d/iptables: No such file or directory
root@Ulysses:/home/bill# service iptables status
bash: service: command not found
Oops, doesn't look like its there. And then this:
root@Ulysses:/home/bill# mount -t nfs localhost:/home/bill /mnt
mount: localhost:/home/bill failed, reason given by server: Permission denied
root@Ulysses:/home/bill#
and then I tried it this way:
root@Ulysses:/home/bill# mount -t nfs 127.0.0.1:/home/bill /mnt
mount: 127.0.0.1:/home/bill failed, reason given by server: Permission denied
root@Ulysses:/home/bill#
So I couldn't get any output from IPTables on box 2. Do I need to start IPTables on box 2, and how would I do that?
I will do some reading on smbfs, later on today and see if I can get that going. Isn't Samba a Windows (client) to Linux (server) application? Will that work linux (Ubuntu) to linux (Fedora Core4) as well?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.