From owner-freebsd-isp@FreeBSD.ORG Fri Aug 24 13:12:42 2007 Return-Path: Delivered-To: freebsd-isp@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BD14A16A420 for ; Fri, 24 Aug 2007 13:12:42 +0000 (UTC) (envelope-from tom@tomjudge.com) Received: from s200aog10.obsmtp.com (s200aog10.obsmtp.com [207.126.144.124]) by mx1.freebsd.org (Postfix) with SMTP id 57BE613C47E for ; Fri, 24 Aug 2007 13:12:09 +0000 (UTC) (envelope-from tom@tomjudge.com) Received: from source ([217.206.187.80]) by eu1sys200aob010.postini.com ([207.126.147.11]) with SMTP; Fri, 24 Aug 2007 13:11:59 UTC Received: from [10.0.0.89] (bill.mintel.co.uk [10.0.0.89]) by rodney.mintel.co.uk (Postfix) with ESMTP id 214D0181427; Fri, 24 Aug 2007 14:11:59 +0100 (BST) Message-ID: <46CED91E.2060602@tomjudge.com> Date: Fri, 24 Aug 2007 14:11:58 +0100 From: Tom Judge User-Agent: Thunderbird 1.5.0.12 (X11/20070604) MIME-Version: 1.0 To: Buki References: <1571172802.401187519463481.JavaMail.root@leda.georgiadis.eu> <20070824124826.GZ378@dev.null.cz> In-Reply-To: <20070824124826.GZ378@dev.null.cz> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-isp@freebsd.org Subject: Re: Loosing alias IPs X-BeenThere: freebsd-isp@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Internet Services Providers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Aug 2007 13:12:42 -0000 Buki wrote: > On Mon, Aug 20, 2007 at 10:34:49AM -0700, Doug Barton wrote: >> FYI, this isn't really a question for -isp, freebsd-questions@freebsd.org >> would have been a better choice. >> >> On Sun, 19 Aug 2007, Pavlos Georgiadis wrote: >> >>> Hello, >>> >>> I have a FreeBSD 6.2 server that get's his IP address from DHCP >>> (although this IP is static). I have also configured 3 more alias IP >>> addresses. >>> >>> My problem is that anytime the DHCP lease is renewed (with the same IP >>> address always), one of the 3 aliases is lost. >>> >>> Is this a bug? Or am I doing something wrong? >>> >>> My setup is as follows: >>> >>> the IP address that the server gets by DHCP is X.X.139.45 >>> >>> rc.conf >>> ifconfig_em0="DHCP" >>> ifconfig_em0_alias0="inet X.X.141.113 netmask 0xfffff000" >>> ifconfig_em0_alias1="inet X.X.142.124 netmask 0xfffff000" >>> ifconfig_em0_alias2="inet X.X.142.128 netmask 0xfffff000" >> You probably want to do this either in dhclient.conf or in a >> dhclient-exit-hooks script. Check the man pages to get an idea of how to >> go about this, and ask on -questions if you need more help. > > Also, aliased Ip addresses must be configured with netmask /32 > This is only true if the IP aliases are in the same network as the first IP address. The following would be a valid configuration: ifconfig_em0="inet 192.168.0.1/24" ifconfig_em0_alias0="inet 192.168.0.2/32" ifconfig_em0_alias1="inet 192.168.1.1/24" ifconfig_em0_alias2="inet 192.168.1.2/32" Tom >> Good luck, >> >> Doug >> >> -- >> >> This .signature sanitized for your protection > > Buki