From owner-freebsd-questions@FreeBSD.ORG Fri Jun 3 18:29:40 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A61D016A41C for ; Fri, 3 Jun 2005 18:29:40 +0000 (GMT) (envelope-from chad@shire.net) Received: from hobbiton.shire.net (hobbiton.shire.net [166.70.252.250]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5F9A743D1D for ; Fri, 3 Jun 2005 18:29:38 +0000 (GMT) (envelope-from chad@shire.net) Received: from [67.161.222.227] (helo=[192.168.99.68]) by hobbiton.shire.net with esmtpa (Exim 4.51) id 1DeGvI-0008Pk-Tn for freebsd-questions@freebsd.org; Fri, 03 Jun 2005 12:29:37 -0600 Mime-Version: 1.0 (Apple Message framework v730) Content-Transfer-Encoding: 7bit Message-Id: <1DA01A76-C3B4-4BC4-A518-B52F979B8E28@shire.net> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed To: FreeBSD Mailing List From: "Chad Leigh -- Shire.Net LLC" Date: Fri, 3 Jun 2005 12:29:36 -0600 X-Mailer: Apple Mail (2.730) X-SA-Exim-Connect-IP: 67.161.222.227 X-SA-Exim-Mail-From: chad@shire.net X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on hobbiton.shire.net X-Spam-Level: X-Spam-Status: No, score=-0.1 required=5.0 tests=AWL,BAYES_50 autolearn=disabled version=3.0.3 X-SA-Exim-Version: 4.2 (built Mon May 30 00:43:02 MDT 2005) X-SA-Exim-Scanned: Yes (on hobbiton.shire.net) Subject: order of IP addresses on an interface? (5.3) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Jun 2005 18:29:40 -0000 I have a FreeBSD 5.3 system running and several jails running on it. I have a piece of software licensed to the base system IP since the software's IP detector, in past tests, would pick up the base and the jail IPs as valid. This would allow me to run the software in any jail on that licensed server. (The license is to the HW server -- not a particular jail since all jails run on the same system using the same kernel etc). Anyway, I rebooted the machine the other day and now the software won't run in the jails. The reason is that its IP detection for the license (license is geared to the IP) now picks up the jail IP, another of the alias jail IPs for another jail, and "localhost" and it does not pick up the base system IP any more. So I went to the base system outside of the jails and did an ifconfig -a . It shows all the IPs (some 40) assigned to the interface and the other jail IP that the software's license piece found was listed first in this ifconfig so I am guessing that the software gets the list of IPs as given by ifconfig. Is there any way to influence the order of the IPs listed by ifconfig? It is not the order they were declared in the /etc/rc.conf which created them. The system base IP was listed first ifconfig_bge0="inet xxx.70.252.132 netmask 255.255.255.0" ifconfig_bge0_alias0="inet xxx.70.252.50 netmask 255.255.255.255" ifconfig_bge0_alias1="inet xxx.70.252.37 netmask 255.255.255.255" ifconfig_bge0_alias2="inet xxx.70.252.9 netmask 255.255.255.255" # ifconfig_bge0_alias3="inet xxx.70.252.34 netmask 255.255.255.255" ifconfig_bge0_alias4="inet xxx.70.252.31 netmask 255.255.255.255" ifconfig_bge0_alias5="inet xxx.70.252.231 netmask 255.255.255.255" . . . The base system IP is .132 but ifconfig shows .34 first and this is the IP that is found by the sw license code. Any ideas welcome Thanks Chad --- Chad Leigh -- Shire.Net LLC Your Web App and Email hosting provider chad@shire.net