LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   NFS doesn't work with wireless (https://www.linuxquestions.org/questions/linux-networking-3/nfs-doesnt-work-with-wireless-774645/)

londy 12-10-2009 12:33 AM

NFS doesn't work with wireless
 
I set up a NFS server on my laptop running Arch Linux. My client is my desktop running Kubuntu 9.10.

If I have my laptop connect to the router via cable, I can mount the NFS through the terminal. However, when my laptop connects wirelessly, I can no longer mount the NFS. When I enter the mount command in the terminal it just stalls with no error messages. I enter "Ctl + c" to exit. I've tried connecting with Dolphin/Konqueror but that didn't work, either wired or wireless.

I can connect to the internet wirelessly with my laptop and pinging works from desktop to laptop.

I also have a samba server on my desktop and I have no problems connecting to it wirelessly from the laptop.

What's the problem?

I would appreciate anyone's help.

Linux.tar.gz 12-10-2009 03:45 AM

On many routers wireless and plugged parts are generally on a different subnet.
You may have to edit /etc/exports to allow more subnets.

Can you post ip's, etc/exports, /etc/hosts.allow ?

londy 12-10-2009 06:19 AM

Here is the info for the laptop (server):

/etc/hosts
Code:

# /etc/hosts: static lookup table for host names                       
#                                                                     

#<ip-address>  <hostname.domain.org>  <hostname>
127.0.0.1              localhost.localdomain  londy-laptop
192.168.0.130          londy-desktop       
# End of file

/etc/exports
Code:

# List of directories exported to NFS clients.  See exports(5).
# Use exportfs -arv to reread.                               
#                                                             
# Example for NFSv2 and NFSv3:                               
#  /srv/home      hostname1(rw,sync) hostname2(ro,sync)     
#                                                             
# Example for NFSv4:                                         
#  /srv/nfs4      hostname1(rw,sync,fsid=0)                 
#  /srv/nfs4/home  hostname1(rw,sync,nohide)                 
# Using Kerberos and integrity checking:                     
#  /srv/nfs4        gss/krb5i(rw,sync,fsid=0,crossmnt)       
#  /srv/nfs4/home  gss/krb5i(rw,sync,nohide)

/home/londy 192.168.0.130(rw,fsid=0,no_subtree_check,async,no_root_squash)

I have no rules in hosts.allow or hosts.deny. Also, the firewall is disabled.

Static IP addresses:
Router: 192.168.0.1
Laptop: 192.168.0.131
Desktop: 192.168.0.130

Linux.tar.gz 01-07-2010 08:31 AM

Still no idea, as it seems laptop and desktop are on same subnet (assuming netmask is identical on both, which seems obvious).

Some thoughs :

use "nmap 192.168.0.131" from the desktop to see open ports. Try wireless and plugged to see any difference.

type "route" on the laptop wirelessly and plugged, in order to see some eventual difference.

forubu 01-07-2010 09:05 AM

Quote:

Originally Posted by londy (Post 3786552)
Code:

/home/londy 192.168.0.130(rw,fsid=0,no_subtree_check,async,no_root_squash)
I have no rules in hosts.allow or hosts.deny. Also, the firewall is disabled.

Static IP addresses:
Router: 192.168.0.1
Laptop: 192.168.0.131
Desktop: 192.168.0.130

According to this you are only allowing Desktop computer (192.168.0.130) to access the NFS share.
Change to:
Code:

/home/londy 192.168.0.0/24(rw,fsid=0,no_subtree_check,async,no_root_squash)
This will allow the whole subnet on 192.168.0.0 to access the share.
Alternatively you could add: 192.168.0.131(rw,fsid=0,no_subtree_check,async,no_root_squash) for only allowing the laptop access to your share.

londy 01-07-2010 06:48 PM

I never figured out what was wrong. I installed opensuse since I last posted here and everything works fine now.


All times are GMT -5. The time now is 06:46 AM.