Hi Werner Yes this sound like what I wanted. Can I achieve the same thing by using "ifdown" and then run rmmod alias eth1 3c59x.
Will rmmod actually uninstall the network card completely or just unload it statistics? Many thanks Mike ----- Original Message ----- From: "Werner Puschitz" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, June 01, 2003 11:21 AM Subject: Re: Reset Interface statistics eth0 > > On Sun, 1 Jun 2003, Mikevl wrote: > > > Hi > > > > As part of my tracking of the monthly DSL traffic I would like to be able to reset the interface statistics as shown in if config or /proc/net/dev. I have tried "ifdown, ifup" although this stops the interface it does not reset the statistics for the interface. Obviously I could reset the machine every month but this is a bit extreme. > > > > Any help much appreciated > > > > Many thanks > > > > Mike > > You need to unload the network module. > > Shutdown the interface. E.g.: > service network stop > > Remove the network module. You can get the module name from e.g. /etc/modules.conf: > rmmod <network_module_name> > > Bring up the network: > service network start > > BTW, you can see the changes in /proc/net/dev very nicely with: > watch -d cat /proc/net/dev > > Werner > > -- > Werner Puschitz > Sr. AIX/Linux Systems Analyst and Administrator > Oracle Certified Professional DBA > http://www.puschitz.com > > > -- > redhat-list mailing list > unsubscribe mailto:[EMAIL PROTECTED] > https://www.redhat.com/mailman/listinfo/redhat-list > > -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list