in freebsd as in all modern bsd systems, the arp table is really just
a view into the route table, where the destinations are iso-l2 (802.3)
addresses rather than other iso-l3 (ip) addresses as for normal routes.

furthermore, all routes have a use count.  for example:

[fwlha:alpha] netstat -f inet -rn | grep L
204.152.188.18     0.e0.81.10.67.50   UHLW        0    12229  vlan2    796
204.152.188.19     0.20.af.d0.3a.2a   UHLW        1  1291129  vlan2   1175
204.152.188.20     0.90.27.f6.50.15   UHLW        2 22661112  vlan2    962
204.152.188.49     0.1.30.b5.a8.10    UHLW       13    28229  vlan0    559
204.152.188.60     0.50.3e.e0.94.60   UHLW       42        7  vlan0   1069
204.152.188.62     8.0.2b.c5.30.4f    UHLW        0        1    lo0

there is no octet counter but the "use" count is of packets and should
be enough to get you started.  if you want to get this out by snmp, you
will have to do some work since the standard ip.iproutetable mib appears
not to have use counts inside it.

re:

> How do mac-address accounting on FreeBSD ?
> I want graph traffic to and from all peers on an IX.


---------------------------------------------------------------------
EuroNOG: http://www.euronog.org/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to