Bug 42093 - [nis] ypbind(8) hangs on NIC with the lowest scopeid
Summary: [nis] ypbind(8) hangs on NIC with the lowest scopeid
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 4.6.2-RELEASE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-08-27 21:10 UTC by Jin Guojun
Modified: 2018-01-03 05:16 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jin Guojun 2002-08-27 21:10:06 UTC
	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

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.
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.
Comment 1 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 08:01:44 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped