From owner-freebsd-isp@FreeBSD.ORG Mon Jan 16 01:04:46 2012 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 000CB106564A for ; Mon, 16 Jan 2012 01:04:45 +0000 (UTC) (envelope-from cbuechler@gmail.com) Received: from mail-wi0-f182.google.com (mail-wi0-f182.google.com [209.85.212.182]) by mx1.freebsd.org (Postfix) with ESMTP id 849488FC0A for ; Mon, 16 Jan 2012 01:04:45 +0000 (UTC) Received: by wibhq12 with SMTP id hq12so538910wib.13 for ; Sun, 15 Jan 2012 17:04:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=UWd+bgrBOzQ+wHWxtQDnd3iJlTZfyYyif6YTI1+1+aI=; b=Is640syF6Hg84U4Lr8knW1eKoC2aOBcYUT4M9clBf5DcqXQJLJWaABh5Bu1g2qJ5dY ASiefFBHc0sT7S6PWCn+BOB8vzbGQu84W2v96soaIqkNtToIB4CHmhJep/CDC4x+4fbe ixweTEP2fcJDqxIoWyCD9H7KT53GuLP5SjV+Y= Received: by 10.180.103.97 with SMTP id fv1mr9642135wib.17.1326674230288; Sun, 15 Jan 2012 16:37:10 -0800 (PST) MIME-Version: 1.0 Received: by 10.227.61.15 with HTTP; Sun, 15 Jan 2012 16:36:49 -0800 (PST) In-Reply-To: References: From: Chris Buechler Date: Sun, 15 Jan 2012 19:36:49 -0500 Message-ID: To: up@3.am Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-isp@freebsd.org Subject: Re: Suddenly IP aliases don't work from rc file? 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, 16 Jan 2012 01:04:46 -0000 On Sun, Jan 15, 2012 at 7:00 PM, wrote: > A dedicated server that I rent has a primary IP and 6 alias IPs. =A0Every= thing was > working ok with the rc.conf configured like this: > > ifconfig_rl0=3D"inet primary.ip.address netmask 255.255.254.0" > > The primary IP above comes up fine. =A0I then have: > > ifconfig_rl0_alias0=3D"inet second.ip.addr netmask 255.255.255.255" > ifconfig_rl0_alias1=3D"inet third.ip.addr netmask 255.255.255.255" > > and so on. =A0This worked fine until we had an Ethernet card go bad. =A0I= t was > replaced and I had to use a different driver, but none of the alias IPs w= orked. > They showed up in ifconfig, but they couldn't be reached from outside the > localhost. =A0So, I had them put in an identical Realtek s before, change= the driver > back as above but the problem persisted. > > I tried moving the ifconfig lines from the end of the rc file to near the > beginning, right after the main IP ifconfig, but still no go after reboot= ing each > time. =A0I messed around with this for a while and finally just removed t= he alias > IPs using the manual "ifconfig rl0 second.ip.addr netmask 255.255.255.255= -alias" > and re-adding it the same way. =A0That got those IPs working again. > > The only thing I can think of is that this server does have an onboard At= tansic > Ether that the GENERIC kernel sees...we actually used it yesterday after = the first > Realtek died and it worked fine for a while, then would just crap out > intermittently. =A0We went back to Realtek and that fixed the connection = crappiness, > but that's when the alias problems began...all I had done was change the = driver > letters. =A0One thing that makes me wonder about the other Ether is that = "netstat > -rn showed "link#2" for the alias IPs. =A0However, it still shows that af= ter > deleting and re-adding them, which fixed it. > > Any ideas? =A0It's working now but any kind of reboot is going to cause h= avoc. Are you sure it's the reboot that causes havoc? Sounds like you may have been fighting an ARP cache upstream that either timed out or got updated in the process of mucking around with the IPs. I also wouldn't touch a server with Realtek NICs in it, probably the worst NIC hardware ever built.