interface TX/RX stats reset when?

I’m trying to figure out my internet consumption and have forgotten to enable graphs.
looking at the Ethernet interface stats I see total RX/TX, but I’m not sure when that’s reset.

my modem (linked via ethernet port to my MT) restarts each night, so the link goes down every 24h, but the MT interface/device stays up all the time. So, the TX/RX stats are reset upon link up/down or upon router restart?

As far as I know:

  • Counter reset
  • Interface disable/enable
  • reboot

And there might be more…

No, interface counters are only reset on reboot. And they cannot be reset manually.
Only when you have a dynamic interface that would be removed when the link is down, e.g. an L2TP client, it would be reset.

that’s my guess too. enable/disable resets the stat but link up/downs doesn’t reset the stat.

thanks

Then what is the purpose of the “Reset Counters” button, pe1chl?

Is a true question, or is just a polemic one?

The button “Reset Counters” on ethernet interface is only for reset Overall Stat / RX Stat / TX Stat (when is supported on the model)
not for Status (link down) or Traffic (Bytes/Packets/Drops).

And YES, on the first times I use that button, I’m expecting that reset all counters, traffic and drops included, but I have learn that is not work on that way…

try reset-counters on specific interface by CLI

example on 6.48.6
reset-counters.png

do not mix

/interface reset-counters ether1 # (button do not exist)

with

/interface ethernet reset-counters ether1 # (the button "Reset Counters")