From owner-freebsd-hackers@FreeBSD.ORG Wed Sep 3 00:22:13 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6B890106568E for ; Wed, 3 Sep 2008 00:22:13 +0000 (UTC) (envelope-from cbeckham@gmail.com) Received: from yx-out-2324.google.com (yx-out-2324.google.com [74.125.44.30]) by mx1.freebsd.org (Postfix) with ESMTP id 1CA7E8FC08 for ; Wed, 3 Sep 2008 00:22:12 +0000 (UTC) (envelope-from cbeckham@gmail.com) Received: by yx-out-2324.google.com with SMTP id 8so1432390yxb.13 for ; Tue, 02 Sep 2008 17:22:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=NW0kSviOAvC86JjOz9fjDtJroPo0SGa6232ZY3/K4+U=; b=Txi5tIZkLfsYNqoFfyY2TmVDjZSehtvCJU1RSDARzQwwSyZ79uTFc71L0XmUHL+3ja luLM3GNdLqvRzoVJf14/fTxg4Q9waq3tyYVVu7w0WiLmyoKpl9/tRYNl/p++s12TBkNL Y3QV87xoDNsls5gjFJybTkGZ2igx+YsKYHh+s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=wxIehJ9H/RxuT2wsoRZg1wU+f4yRQRO8RAKNW0qNeijyRT/xrlWNzOUavkbxUgwHyq FGeDUAae8m8q144dOCyYn+dVd1kf7lMr4gVS5b3XL/uHEFGp9zGoHC4jpywpiCGvvpyd 8JSiUIj/Lgxexi3UbWACHIdHuXrh2nfjKq7l0= Received: by 10.151.42.21 with SMTP id u21mr5762796ybj.195.1220401330787; Tue, 02 Sep 2008 17:22:10 -0700 (PDT) Received: by 10.151.109.2 with HTTP; Tue, 2 Sep 2008 17:22:10 -0700 (PDT) Message-ID: Date: Tue, 2 Sep 2008 17:22:10 -0700 From: "Charles Beckham" To: "David Wolfskill" , "Charles Beckham" , freebsd-hackers@freebsd.org In-Reply-To: <20080902203809.GK1089@bunrab.catwhisker.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20080902154131.GH1089@bunrab.catwhisker.org> <20080902203809.GK1089@bunrab.catwhisker.org> Cc: Subject: Re: Obytes counter in netstat not incrementing X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Sep 2008 00:22:13 -0000 i've already made the changes to rc.conf, but since its a shared machine and almost all addresses are in use, i'll have to schedule a reboot before i can make changes effective, i will post a follwup after i've made these changes. thanks for you assistance. On Tue, Sep 2, 2008 at 1:38 PM, David Wolfskill wrote: > On Tue, Sep 02, 2008 at 01:15:15PM -0700, Charles Beckham wrote: >> sorry, heres a uname >> x# uname -a >> FreeBSD x.worxtech.net 6.3-STABLE FreeBSD 6.3-STABLE #1: Sun May 25 >> 12:15:51 CDT 2008 worxtech@x.worxtech.net:/usr/obj/usr/src/sys/X >> i386 >> >> also i should point out that this machine has ~ 100 alias addresses on >> it, and the problem doesnt seem to appear with all of them, some >> appear to have a proper counter. >> ... >> i'm not quite sure why this problem is persistent but could it be >> related to my netmask address for the inet alias? >> i did some research and it appears i should be using 0xffffffff for my >> netmask for the alias interface? please let me know any thaughts you >> may have. > > Ah. I recall that in older releases of FreeBSD, attempting to create > such "alias" entries netmask specifications that amounted to having > different "alias" specifications sharing a (sub)net generally failed to > work, with the suggestion to use 0xffffffff as the netmask for all such > alias specification being the usual suggestion. > > Somehow, I thought that someone had done some work on this, but on a > 6.3-STABLE system built 25 August, I still see in ifconfig(1): > > alias Establish an additional network address for this interface. This > is sometimes useful when changing network numbers, and one wishes > to accept packets addressed to the old interface. If the address > is on the same subnet as the first network address for this > interface, a non-conflicting netmask must be given. Usually > 0xffffffff is most appropriate. > > so unless there's some special reason you're using a different netmask for > the alia entrie, I think I'd suggest switching to 0xffffffff. > >>.... > > Peace, > david > -- > David H. Wolfskill david@catwhisker.org > Depriving a girl or boy of an opportunity for education is evil. > > See http://www.catwhisker.org/~david/publickey.gpg for my public key. > -- - Charles