From owner-freebsd-isp@FreeBSD.ORG Mon Aug 20 17:34:52 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 4245D16A418 for ; Mon, 20 Aug 2007 17:34:52 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx22.fluidhosting.com [204.14.89.5]) by mx1.freebsd.org (Postfix) with SMTP id D410713C46E for ; Mon, 20 Aug 2007 17:34:51 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: (qmail 18405 invoked by uid 399); 20 Aug 2007 17:34:51 -0000 Received: from localhost (HELO slave.dougb.net) (dougb@dougbarton.us@127.0.0.1) by localhost with ESMTP; 20 Aug 2007 17:34:51 -0000 X-Originating-IP: 127.0.0.1 Date: Mon, 20 Aug 2007 10:34:49 -0700 (PDT) From: Doug Barton To: Pavlos Georgiadis In-Reply-To: <1571172802.401187519463481.JavaMail.root@leda.georgiadis.eu> Message-ID: References: <1571172802.401187519463481.JavaMail.root@leda.georgiadis.eu> X-message-flag: Outlook -- Not just for spreading viruses anymore! X-OpenPGP-Key-ID: 0xD5B2F0FB Organization: http://www.FreeBSD.org/ MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=us-ascii 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: Mon, 20 Aug 2007 17:34:52 -0000 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. Good luck, Doug -- This .signature sanitized for your protection