Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Sep 2008 17:22:10 -0700
From:      "Charles Beckham" <cbeckham@gmail.com>
To:        "David Wolfskill" <david@catwhisker.org>,  "Charles Beckham" <cbeckham@gmail.com>, freebsd-hackers@freebsd.org
Subject:   Re: Obytes counter in netstat not incrementing
Message-ID:  <f9ac6b770809021722n13cdee5dmd4bb2cb62a53d854@mail.gmail.com>
In-Reply-To: <20080902203809.GK1089@bunrab.catwhisker.org>
References:  <f9ac6b770808312346i61afe359y67a795715cede824@mail.gmail.com> <20080902154131.GH1089@bunrab.catwhisker.org> <f9ac6b770809021315x4b754a0bu81cfca9578c753bc@mail.gmail.com> <20080902203809.GK1089@bunrab.catwhisker.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <david@catwhisker.org> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?f9ac6b770809021722n13cdee5dmd4bb2cb62a53d854>