From owner-freebsd-stable Tue Apr 25 10:47:38 2000 Delivered-To: freebsd-stable@freebsd.org Received: from frolkin.demon.co.uk (frolkin.demon.co.uk [194.222.100.41]) by hub.freebsd.org (Postfix) with ESMTP id 6F41737B737 for ; Tue, 25 Apr 2000 10:47:27 -0700 (PDT) (envelope-from sasha@frolkin.demon.co.uk) Received: from sasha by frolkin.demon.co.uk with local (Exim 3.12 #1) id 12k9Qt-0000IY-00; Tue, 25 Apr 2000 18:47:35 +0100 Date: Tue, 25 Apr 2000 18:47:35 +0100 From: Alexander Frolkin To: Brian Somers Cc: stable@freebsd.org Subject: Re: portmap strangeness Message-ID: <20000425184734.A940@gamma> Reply-To: Alexander Frolkin References: <200004232110.WAA00681@hak.lan.Awfulhak.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.5i In-Reply-To: <200004232110.WAA00681@hak.lan.Awfulhak.org>; from Brian Somers on Sun, Apr 23, 2000 at 10:10:22PM +0100 X-Operating-System: Linux 2.2.14 X-GPG-Key-Fingerprint: 6C84 3EB2 550E E581 62FA BB0C D510 B042 FD5C E7A7 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, Apr 23, 2000 at 10:10:22PM +0100, Brian Somers wrote: > > On Sat, Apr 22, 2000 at 10:06:21AM +0100, Brian Somers wrote: > > > In /usr/src/usr.sbin/portmap, can you > > > > > > cc -o from_local -DTEST from_local.c > > > ./from_local > > > > > > and see how this compares to the output of ifconfig -a ? If this > > > finds all the interface addresses after lp0, then there *should* be > > > no problems. > > > > I've done that, and I get the addresses of all the interfaces which are 'up' > > listed correctly, however portmap only works when lp0 is also up. (This is > > the first interface in ifconfig -a, if that makes a difference). from_local > > shows the address of lp0, when it is up, as 0.0.0.0, which is correct since > > the address isn't set because I'm not using the interface at the moment. > > Well, I think the next step(s) are to ensure that portmap is > LISTENing to *.111 and then to use tcpdump to see what address the > nfs stuff is coming from - without lp0 being IFF_UP. With lp0 down, netstat shows that portmap is listening on *.111, but there is no RPC traffic in tcpdump -ilo0 when I run mountd and nfsd. With lp0 up, netstat shows the same, but there is some sunrpc traffic on lo0, when the services register. Also, I've noticed that if the system boots with lp0 down I can bring lp0 up and then down again, and the services will register (this is without restarting portmap). Thanks, Alexander > It sounds like portmap is failing to identify the address as being > local.... > > > Thanks, > > > > Alexander. > > Cheers. > > -- > Brian > > Don't _EVER_ lose your sense of humour ! > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message