[TriLUG] Reset conuters on eth interface

Jeff Bollinger jeff01 at email.unc.edu
Tue Sep 10 08:32:56 EDT 2002


Does anyone know how to reset the counters on a particular ethernet 
interface?  For example,

ifconfig eth1
eth1      Link encap:Ethernet  HWaddr 00:04:75:B0:07:14
           BROADCAST MULTICAST  MTU:1500  Metric:1
           RX packets:7664356 errors:0 dropped:0 overruns:1 frame:0
           TX packets:6424 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:100
           RX bytes:1089057890 (1038.6 Mb)  TX bytes:405296 (395.7 Kb)
           Interrupt:9 Base address:0x7880

How can I zero out the "RX bytes" and the "TX bytes" portions above?

Thanks,
Jeff

-- 
Jeff Bollinger
University of North Carolina
IT Security Analyst
105 Abernethy Hall
mailto: jeff_bollinger at unc dot edu

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iEYEARECAAYFAjzETQsACgkQvoVlxVBmgsXunQCg1Pjc14nTjWiP8FCy+NNDK97E
HMAAoIRhikBeM5Lm+6Iu/0h3MX6lDgiR
=LpiV
-----END PGP SIGNATURE-----




More information about the TriLUG mailing list