Results 1 to 8 of 8

Thread: Resetting ifconfig counters

Hybrid View

  1. #1
    Join Date
    Sep 2012
    Beans
    8

    Question Resetting ifconfig counters

    Hello guys i have a strange issue with my eth0 from time to time the ifconfig counters got very large numbers:

    example:
    eth0 Link encap:Ethernet HWaddr xxexxxx
    UP BROADCAST MULTICAST MTU:1500 Metric:1
    RX packets:263281495183500 errors:1579715814780738 dropped:526571580301590 overruns:263285790150795 frame:1316428950753975
    TX packets:263285790150795 errors:1053143160603180 dropped:0 overruns:263285790150795 carrier:526571580301590
    collisions:1316428950753975 txqueuelen:1000
    RX bytes:263285790150795 (263.2 TB) TX bytes:263285790150795 (263.2 TB)
    Interrupt:42


    and when this happens i lost network connection, the only way so far i have found is to reset linux, i have try "sudo ifconfig eth0 down / up" but gto same issue, is there a way to flush the ifconfig counters ?

    what can be causing the eth0 got to RX & TX 263.2 TB when is not even connected ?

    any clue what to check ?
    Last edited by oldfred; October 1st, 2012 at 04:06 PM. Reason: removed HW addr

  2. #2
    Join Date
    Oct 2010
    Location
    Argentina
    Beans
    143
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Resetting ifconfig counters

    Humm, I think the only way to do this is unloading the Network Module (driver) and reloading.

    I don't know if Ubuntu has the Network Drivers as Kernel modules...


    Give a Look to this aproach (rmmod, insmod) and post back to us what you find out!

  3. #3
    Join Date
    Jun 2009
    Location
    Chicago Suburbs
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Resetting ifconfig counters

    Removed HW address. Those are supposed to be unique but can be spoofed.

    Do you have a mix of fixed and DHCP addresses? It seems like there may be a duplicate address. Or you have a fixed that is in the DHCP range? If someone has a duplicate then only when the other one is on, then it is an issue??
    Oldfred on vacation. Back Sept 9. Will not have much if any Internet access.
    For info on UEFI boot install & repair:
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to close thread when/if answered completely.







  4. #4
    Join Date
    Sep 2012
    Beans
    8

    Re: Resetting ifconfig counters

    ty for the hints guys, actually this happens when using an 4G adapter no eth0 connected :s

  5. #5
    Join Date
    Oct 2010
    Location
    Argentina
    Beans
    143
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Resetting ifconfig counters

    Should be the same...

    Eth, wl, lo, is just a naming convention to quickly identify the netword card type.

  6. #6
    Join Date
    Nov 2006
    Location
    Craggy Island.
    Beans
    Hidden!
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Resetting ifconfig counters

    Hello


    Im guessing the reason for your high counters is that the errors are unusually high on that interface requiring packets to be resent.

    This could be caused by an incorrectly negotiated speed or connection type (duplex/half duplex etc).

    Autoneg on some cards is falkey and is best set to what the other end is doing.
    You can check your eth card by using ethtool
    You may need to install it.

    Run it by using

    Code:
    sudo ethtool eth0
    It shoudl tell you what your able to do and what the other end is doing.

    Watch for mismatches between the two
    You can tell a man who boozes by the company he chooses, as the pig got up and slowly walked away.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •