Re: Obytes counter in netstat not incrementing



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@xxxxxxxxxxxxxx:/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@xxxxxxxxxxxxxx
Depriving a girl or boy of an opportunity for education is evil.

See http://www.catwhisker.org/~david/publickey.gpg for my public key.

Attachment: pgphY0YvocZqf.pgp
Description: PGP signature



Relevant Pages

  • Re: Obytes counter in netstat not incrementing
    ... related to my netmask address for the inet alias? ... alias Establish an additional network address for this interface. ...
    (freebsd-hackers)
  • Re: hostname.if problems
    ... Trying to setup network interfaces automatically via the /etc/hostname.* files. ... The interface in question is a sis0 card. ... alias 172.16.192.1 netmask 255.255.192.0 ... The manpage describes that it should be defined as inet alias .... ...
    (comp.unix.bsd.openbsd.misc)
  • ipnat with alias?
    ... Will someone tell me please how to enable nat for the alias on an interface, ... inet w.x.y.126 netmask 0xfffffffc media autoselect ... pass out on rtk0 all head 150 ...
    (comp.unix.bsd.netbsd.misc)
  • Re: Mystery Routing Problem driving me MAD
    ... The netmask of an alias is supposed to default to that of its interface, ... So specifying the netmask when I set up the alias fixed the ...
    (comp.os.linux.networking)
  • Re: Is there anything weird I should know about using ipfw on alias addresses?
    ... > ifconfig shows the alias addresses correctly bound. ... inet 210.5.51.27 netmask 0xffffffff broadcast 210.5.51.27 ... ipfw doesn't do anything different with any address in particular except ...
    (freebsd-questions)