LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 03-03-2006, 09:14 PM   #1
Justbill
Member
 
Registered: Aug 2005
Location: House Springs, Mo. USA
Distribution: Fedora Core 5 & Ubuntu 5.10
Posts: 53

Rep: Reputation: 15
Home Network Problem


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.

Thanks
Justbill
 
Old 03-03-2006, 09:29 PM   #2
Justbill
Member
 
Registered: Aug 2005
Location: House Springs, Mo. USA
Distribution: Fedora Core 5 & Ubuntu 5.10
Posts: 53

Original Poster
Rep: Reputation: 15
O.K. here is the error from box 2:

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!

Thanks much
Justbill
 
Old 03-03-2006, 09:35 PM   #3
sipsipi
Member
 
Registered: Dec 2005
Location: Chicago
Distribution: Fedora and Redhat
Posts: 86

Rep: Reputation: 15
Ideas:

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?

What do your /var/log/messages say?
 
Old 03-03-2006, 10:33 PM   #4
Justbill
Member
 
Registered: Aug 2005
Location: House Springs, Mo. USA
Distribution: Fedora Core 5 & Ubuntu 5.10
Posts: 53

Original Poster
Rep: Reputation: 15
This is what I found in /var/log/messages (just the last few lines):

Mar 3 22:12:32 Ulysses kernel: [4312947.221000] DROPPED IN=eth0 OUT= MAC=ff:ff:ff:ff:ff:ff:00:11:d8:b7:b0:47:08:00 SRC=192.168.2.2 DST=255.255.255.255 LEN=146 TOS=0x00 PREC=0x00 TTL=64 ID=3648 DF PROTO=UDP SPT=631 DPT=631 LEN=126
Mar 3 22:12:33 Ulysses kernel: [4312948.222000] DROPPED IN=eth0 OUT= MAC=ff:ff:ff:ff:ff:ff:00:11:d8:b7:b0:47:08:00 SRC=192.168.2.2 DST=255.255.255.255 LEN=171 TOS=0x00 PREC=0x00 TTL=64 ID=3649 DF PROTO=UDP SPT=631 DPT=631 LEN=151
Mar 3 22:13:03 Ulysses kernel: [4312978.225000] DROPPED IN=eth0 OUT= MAC=ff:ff:ff:ff:ff:ff:00:11:d8:b7:b0:47:08:00 SRC=192.168.2.2 DST=255.255.255.255 LEN=146 TOS=0x00 PREC=0x00 TTL=64 ID=3650 DF PROTO=UDP SPT=631 DPT=631 LEN=126
Mar 3 22:13:04 Ulysses kernel: [4312979.225000] DROPPED IN=eth0 OUT= MAC=ff:ff:ff:ff:ff:ff:00:11:d8:b7:b0:47:08:00 SRC=192.168.2.2 DST=255.255.255.255 LEN=171 TOS=0x00 PREC=0x00 TTL=64 ID=3651 DF PROTO=UDP SPT=631 DPT=631 LEN=151

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.

Thank Much
Justbill
 
Old 03-03-2006, 11:22 PM   #5
sipsipi
Member
 
Registered: Dec 2005
Location: Chicago
Distribution: Fedora and Redhat
Posts: 86

Rep: Reputation: 15
smbfs is samba, and you can check iptables by doing something like

service iptables status
or
/etc/init.d/iptables status

mounting over loopback == localhost, basically replace machine2 with localhost

see what happens, report back my friend. You can IM me or email me if you like too...
 
Old 03-04-2006, 07:27 AM   #6
Justbill
Member
 
Registered: Aug 2005
Location: House Springs, Mo. USA
Distribution: Fedora Core 5 & Ubuntu 5.10
Posts: 53

Original Poster
Rep: Reputation: 15
OK Here it is

from box 1 (Goliath):

[root@Goliath Bill]# /etc/init.d/iptables status
Table: filter
Chain FORWARD (policy ACCEPT)
target prot opt source destination
RH-Firewall-1-INPUT all -- 0.0.0.0/0 0.0.0.0/0

Chain INPUT (policy ACCEPT)
target prot opt source destination
RH-Firewall-1-INPUT all -- 0.0.0.0/0 0.0.0.0/0

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

Chain RH-Firewall-1-INPUT (2 references)
target prot opt source destination
ACCEPT all -- 0.0.0.0/0 0.0.0.0/0
ACCEPT icmp -- 0.0.0.0/0 0.0.0.0/0 icmp type 255
ACCEPT esp -- 0.0.0.0/0 0.0.0.0/0
ACCEPT ah -- 0.0.0.0/0 0.0.0.0/0
ACCEPT udp -- 0.0.0.0/0 224.0.0.251 udp dpt:5353
ACCEPT udp -- 0.0.0.0/0 0.0.0.0/0 udp dpt:631
ACCEPT all -- 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED
REJECT all -- 0.0.0.0/0 0.0.0.0/0 reject-with icmp-host-prohibited

and then:

[root@Goliath Bill]# mount -t nfs localhost:/home/Bill /mnt
mount: localhost:/home/Bill failed, reason given by server: Permission denied
[root@Goliath Bill]#

This was from box 1 (Goliath). I had been using DNS, but quit doing that when this problem began. The computers are:

box 1=Goliath.justbillsguitars.com
box 2=Ulysses.justbillsguitars.com

however, DNS is really not that big of a deal to me, as long as I can get my file sharing going again.

I will go back and post the same stuff from box 2 now.

Justbill
 
Old 03-04-2006, 07:52 AM   #7
Justbill
Member
 
Registered: Aug 2005
Location: House Springs, Mo. USA
Distribution: Fedora Core 5 & Ubuntu 5.10
Posts: 53

Original Poster
Rep: Reputation: 15
O.K. box 2

here is the output from iptables status:

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?

Thanks
Justbill
 
  


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
Home network problem tuananhbirm Linux - Networking 4 12-18-2004 08:01 PM
home network router problem sprachy Linux - Networking 4 04-21-2004 11:38 AM
problem with home network (samba) wza Linux - Networking 3 04-15-2004 09:47 PM
home network - all set up!!! but there is still one problem ._. priest_judas Linux - Networking 8 12-17-2003 02:32 PM
Problem setting up home network bcarl314 Linux - Networking 2 12-04-2003 07:38 AM

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

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