From owner-freebsd-questions Thu Nov 29 21:50:43 2001 Delivered-To: freebsd-questions@freebsd.org Received: from lists.unixathome.org (lists.unixathome.org [210.48.103.158]) by hub.freebsd.org (Postfix) with ESMTP id 9E6C037B405 for ; Thu, 29 Nov 2001 21:50:36 -0800 (PST) Received: from wocker (lists.unixathome.org [210.48.103.158]) by lists.unixathome.org (8.11.6/8.11.6) with ESMTP id fAU5oX555661 for ; Fri, 30 Nov 2001 18:50:34 +1300 (NZDT) (envelope-from dan@langille.org) From: "Dan Langille" Organization: novice in training To: questions@freebsd.org Date: Fri, 30 Nov 2001 00:50:31 -0500 MIME-Version: 1.0 Subject: nfs fails to mount on one subnet Reply-To: dan@langille.org Message-ID: <3C06D7D7.13806.1FA41FE1@localhost> X-mailer: Pegasus Mail for Windows (v4.01) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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 mtu 1500 faith0: flags=8000 mtu 1500 gif0: flags=8010 mtu 1280 gif1: flags=8010 mtu 1280 gif2: flags=8010 mtu 1280 gif3: flags=8010 mtu 1280 lo0: flags=8049 mtu 16384 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x7 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 ppp0: flags=8010 mtu 1500 sl0: flags=c010 mtu 552 wi0: flags=8843 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