Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Nov 2001 00:50:31 -0500
From:      "Dan Langille" <dan@langille.org>
To:        questions@freebsd.org
Subject:   nfs fails to mount on one subnet
Message-ID:  <3C06D7D7.13806.1FA41FE1@localhost>

next in thread | raw e-mail | index | archive | help
I have an NFS server with two nics (192.168.0.18 and 10.0.0.1).  I can 
mount it from one subnet, but not from another. I have no idea why.  
Mounts from client 192.168.0.16 succeed.  Mounts from client 10.0.0.10 
fail.

On the server (192.168.0.18)

 # more /etc/exports
/usr/ports      -maproot=0 192.168.0.16
#/usr/ports       -maproot=0 10.0.0.10

# showmount -e xeon
Exports list on xeon:
/usr/ports                         192.168.0.16


# ps auwx | grep portmap
daemon       226  0.0  0.3   948  532  ??  Ss   30Oct01   0:00.09 
/usr/sbin/portmap
root       65034  0.0  0.4  1048  720  p3  R+   12:10AM   0:00.00 grep 
portmap (bash)

# grep portmap /etc/hosts.allow
# name) *MUST* be specified for portmap(8).
portmap : 192.168.0.0/255.255.255.0  : allow
portmap : 10.0.0.0/255.255.255.0     : allow
portmap : 192.0.2.32/255.255.255.224 : allow
portmap : 192.0.2.96/255.255.255.224 : allow
portmap : ALL : deny

on the cllient 192.168.0.16:

# showmount -e xeon
Exports list on xeon:
/usr/ports                         192.168.0.16

# mount -v xeon:/usr/ports /mnt
xeon:/usr/ports on /mnt (nfs)
#

SUCCESS!

So then I reconfigure the server to export to the other subnet:

# more /etc/exports
#/usr/ports      -maproot=0 192.168.0.16
/usr/ports       -maproot=0 10.0.0.10

# killall -HUP mountd
# showmount -e xeon
Exports list on xeon:
/usr/ports                         10.0.0.10

from the Client 10.0.0.10:

# showmount -e xeon
Exports list on xeon:
/usr/ports                         10.0.0.10

[root@laptop:~] # mount -v xeon:/usr/ports /mnt
[and it never comes back]

but I see this on the client:

# ps auwx | grep nfs
root     199  0.0  0.2   208   80  ??  I    12:38AM   0:00.00 nfsiod -n 4
root     200  0.0  0.2   208   80  ??  I    12:38AM   0:00.00 nfsiod -n 4
root     201  0.0  0.2   208   80  ??  I    12:38AM   0:00.00 nfsiod -n 4
root     202  0.0  0.2   208   80  ??  I    12:38AM   0:00.00 nfsiod -n 4
root     306  0.0  0.6   388  244  p0  D+   12:43AM   0:00.01 nfs 
xeon:/usr/ports /mnt (mount_nfs)

# ps auwx | grep portmap
daemon   193  0.0  1.2   924  504  ??  Is   12:38AM   0:00.00 
/usr/sbin/portmap


SERVER DETAILS:

$ ifconfig -a
lp0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> mtu 1500
faith0: flags=8000<MULTICAST> mtu 1500
gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
gif1: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
gif2: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
gif3: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x7
        inet6 ::1 prefixlen 128
        inet 127.0.0.1 netmask 0xff000000
ppp0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
sl0: flags=c010<POINTOPOINT,LINK2,MULTICAST> mtu 552
wi0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet 10.0.0.10 netmask 0xffffff00 broadcast 10.0.0.255
        inet6 fe80::202:2dff:fe0e:66bd%wi0 prefixlen 64 scopeid 0xa
        ether 00:02:2d:0e:66:bd

Clues please?  thanks.
-- 
Dan Langille
The FreeBSD Diary - http://freebsddiary.org/ - practical examples


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3C06D7D7.13806.1FA41FE1>