From owner-freebsd-current@FreeBSD.ORG Fri May 9 22:35:30 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CF65537B401 for ; Fri, 9 May 2003 22:35:30 -0700 (PDT) Received: from pit.databus.com (p70-227.acedsl.com [66.114.70.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id D030D43FA3 for ; Fri, 9 May 2003 22:35:29 -0700 (PDT) (envelope-from barney@pit.databus.com) Received: from pit.databus.com (localhost [127.0.0.1]) by pit.databus.com (8.12.9/8.12.9) with ESMTP id h4A5ZTiK042242 for ; Sat, 10 May 2003 01:35:29 -0400 (EDT) (envelope-from barney@pit.databus.com) Received: (from barney@localhost) by pit.databus.com (8.12.9/8.12.9/Submit) id h4A5ZTub042241 for current@freebsd.org; Sat, 10 May 2003 01:35:29 -0400 (EDT) Date: Sat, 10 May 2003 01:35:29 -0400 From: Barney Wolff To: current@freebsd.org Message-ID: <20030510053529.GA42125@pit.databus.com> References: <20030510035315.GA1812@node1.cluster.srrc.usda.gov> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030510035315.GA1812@node1.cluster.srrc.usda.gov> User-Agent: Mutt/1.4.1i X-Scanned-By: MIMEDefang 2.32 (www . roaringpenguin . com / mimedefang) Subject: Re: strange network interface problem X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 May 2003 05:35:31 -0000 On Fri, May 09, 2003 at 10:53:15PM -0500, Glenn Johnson wrote: > This is a weird one but hopefully someone can help. I have two software > programs that I frequently use and they each use licensing software that > depends on the Ethernet interface. One uses FlexLM and the other a node > locked scheme. They are both Linux programs, which may be important. > The machine in question is a dual homed machine with one xl interface > and one fxp interface. The xl interface is on a 192.168.1.0 network and > the fxp is on the corporate LAN. The hostname points to the 192.168.1.1 > address. The license keys were generated from the MAC address of the xl > interface. This worked fine as of a couple of days ago but because of > the ffs bug I am not about to back my sources back in time. > > After updating to a recent -CURRENT, > > FreeBSD 5.1-BETA #0: Thu May 8 12:42:08 CDT 2003 root@node1.cluster.srrc.usda.gov:/usr/obj/usr/src/sys/CLUSTER-FW > > the programs in question are getting the interfaces mixed up. For the > program that uses the node locked scheme I was able to get another > license generated and so am okay for that one. However, the program > that uses FlexLM is locked to the 192.168.1.0 network. The problem is > the software is seeing the dual homed machine on the wrong interface and > so thinks it is not on the network. In what order does ifconfig print the interfaces? /var/run/dmesg.boot? It's possible you can control the ifconfig order by putting: network_interfaces="xl0 fxp0 lo0" in rc.conf. If that fails keep both devices out of the kernel & rc.conf & load them in the desired order either in loader.conf or a script in /usr/local/etc/rc.d. If all else fails, switch the nics around in their slots. Hard to do if either is on the motherboard, I know. In that case the real fbsd net internals folks may have an answer. -- Barney Wolff http://www.databus.com/bwresume.pdf I'm available by contract or FT, in the NYC metro area or via the 'Net.