From jin@ncs.lbl.gov  Tue Aug 27 13:09:11 2002
Return-Path: <jin@ncs.lbl.gov>
Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id E421837B401
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 27 Aug 2002 13:09:11 -0700 (PDT)
Received: from ncs.lbl.gov (ncs.lbl.gov [131.243.2.30])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 1961543E42
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 27 Aug 2002 13:09:11 -0700 (PDT)
	(envelope-from jin@ncs.lbl.gov)
Received: from ncs.lbl.gov (localhost [127.0.0.1])
	by ncs.lbl.gov (8.12.3/8.12.3) with ESMTP id g7RK9Am2000804
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 27 Aug 2002 13:09:10 -0700 (PDT)
	(envelope-from jin@ncs.lbl.gov)
Received: (from jin@localhost)
	by ncs.lbl.gov (8.12.3/8.12.3/Submit) id g7RK9AX7000803;
	Tue, 27 Aug 2002 13:09:10 -0700 (PDT)
Message-Id: <200208272009.g7RK9AX7000803@ncs.lbl.gov>
Date: Tue, 27 Aug 2002 13:09:10 -0700 (PDT)
From: Jin Guojun (DSD staff) <jin@ncs.lbl.gov>
Reply-To: j_guojun@lbl.gov
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: ypbind hangs on NIC with the lowest scopeid
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         42093
>Category:       bin
>Synopsis:       [nis] ypbind(8) hangs on NIC with the lowest scopeid
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Aug 27 13:10:06 PDT 2002
>Closed-Date:    
>Last-Modified:  Mon Dec 29 17:00:35 UTC 2008
>Originator:     Jin Guojun (DSD staff)
>Release:        FreeBSD 4.6.2-RELEASE i386
>Organization:
>Environment:


	FreeBSD 4.x

>Description:

	If NICs present in following order, then, ypbind does not bind on
	fxp0, which has a default router associated. Ypbind always try to
	bind on a NIC up with lowest scopeid, but not the NIC had address
	associated with the default router.
	All other network services, such NFS, nslookup, work well, except
	ypbind.

sk0: flags=c843<UP,BROADCAST,RUNNING,SIMPLEX,LINK2,MULTICAST> mtu 1500
        inet6 fe80::200:5aff:fe98:ea24%sk0 prefixlen 64 scopeid 0x1 
        inet 10.0.0.1 netmask 0xffffff00 broadcast 10.0.0.255
        ether 00:00:5a:98:ea:24
        media: Ethernet 1000baseSX <full-duplex>
        status: active
sk1: flags=c843<UP,BROADCAST,RUNNING,SIMPLEX,LINK2,MULTICAST> mtu 1500
        inet6 fe80::200:5aff:fe98:ea25%sk1 prefixlen 64 scopeid 0x2 
        inet 10.0.1.1 netmask 0xffffff00 broadcast 10.0.1.255
        ether 00:00:5a:98:ea:25
        media: Ethernet 1000baseSX <full-duplex>
        status: active
fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet 131.234.123.10 netmask 0xffffff00 broadcast 131.234.123.255
        inet6 fe80::230:48ff:fe23:6124%fxp0 prefixlen 64 scopeid 0x3 
        ether 00:30:48:23:61:24
        media: Ethernet 100baseTX <full-duplex>
        status: active

>How-To-Repeat:
	Install at least two NICs, and user the second one as
	primary interface, and configure the system to use NIS.
	After system boot, issue command rcpinfo -p and/or ypwhich
	if you have a ypserv running.

	rcpinfo -p will hang forever.
	ifconfig the first NIC (sk0 and sk1 in this case) down and
	restart ypbind, then ypbind will work.

>Fix:

	Work around:

		Configure non primary NIC(s )(sk0 and sk1 in this case) in
	/usr/local/etc/rc.d/01.if-sk.sh if they come up at front of the primary
	NIC.



>Release-Note:
>Audit-Trail:
>Unformatted:
