From owner-freebsd-current Sun Feb 25 15:25:37 2001 Delivered-To: freebsd-current@freebsd.org Received: from earth.backplane.com (earth-nat-cw.backplane.com [208.161.114.67]) by hub.freebsd.org (Postfix) with ESMTP id A2DD037B503; Sun, 25 Feb 2001 15:25:32 -0800 (PST) (envelope-from dillon@earth.backplane.com) Received: (from dillon@localhost) by earth.backplane.com (8.11.2/8.9.3) id f1PNPBs18762; Sun, 25 Feb 2001 15:25:11 -0800 (PST) (envelope-from dillon) Date: Sun, 25 Feb 2001 15:25:11 -0800 (PST) From: Matt Dillon Message-Id: <200102252325.f1PNPBs18762@earth.backplane.com> To: Martin Blapp Cc: alfred@freebsd.org, current@freebsd.org Subject: Re: some proposals about nfsd(8) References: Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG :ok, added a comment about this. : :> nfsd -r is used if you already have nfsd's :> running but somehow unregistered the nfs service :> from the portmapper. For example, if you killed :> the portmapper and restarted it. nfsd -r simply :> reregisters the service that is already running :> and then exits. : :that's clear. but why I get such output ? : :# nfsd -h localhost (and output from rpcinfo(8)) : 100003 2 udp 127.0.0.1.8.1 nfs superuser : 100003 3 udp 127.0.0.1.8.1 nfs superuser : 100003 2 udp6 ::1.8.1 nfs superuser : 100003 3 udp6 ::1.8.1 nfs superuser : :and if it's just started normal: : :# nfsd(8) and (and output from rpcinfo(8)) : 100003 2 udp 0.0.0.0.8.1 nfs superuser : 100003 3 udp 0.0.0.0.8.1 nfs superuser : 100003 2 udp6 ::.8.1 nfs superuser : 100003 3 udp6 ::.8.1 nfs superuser : :Martin : :... If you run nfsd without a -h argument, it binds to INADDR_ANY which means that it can accept packets from any interface. However, if you have more then one interface this will break UDP mounts because the reply packet may not be returned from the same IP address that it was sent to. What argument are you passing to rpcinfo? All I get is: earth:/home/dillon> rpcinfo -p program vers proto port 100000 2 tcp 111 portmapper 100000 2 udp 111 portmapper 100005 3 udp 1023 mountd 100005 3 tcp 1023 mountd 100005 1 udp 1023 mountd 100005 1 tcp 1023 mountd 100003 2 udp 2049 nfs 100003 3 udp 2049 nfs 100024 1 udp 1011 status 100024 1 tcp 1022 status 100003 2 tcp 2049 nfs 100003 3 tcp 2049 nfs The portmapper has no concept of IP address bindings, only port bindings. It understands program, version, protocol, and port, and that's it. -Matt To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message