Network connection lost ('carrier-changed')

6,244

Solution 1

After removing other factors, such as the switch, the problem continued.

I asked one of the system administrators of our organisation's network and he seems to think that such an error message means that there is a physical problem with the network.

For example, with the switch gone, this means:

  1. cable from the computer to the port
  2. port itself
  3. even the cabling behind the port, within the wall

In any case, he said it is "definitely" not related to the OS but was unable to decipher the error message piece-by-piece. So, this is where the problem stands and I'll be looking at the physical connection to the computer instead of Ubuntu.

Solution 2

In my case carrier-changed coincides with the router disconnecting/reconnecting with the internet (see the logs in your router). The cause may be a not well connected cable, but there are several other possibilities: cable provider initiates a reconnect; a router may have problems (firmware; data backup loaded from an other router where the data somehow confuses this router ...).

However, the computer should successfully reconnect to the router itself when the router has its uplink working again. In my case the router needed 12 minutes (!) with several "cable internet synchronising (training)" attempts before establishing a stable uplink. Maybe the cable provider installs several firmware updates remotely ( I can't even see what firmware is running at the router (fritzbox 6490), the cable provider has full control - annoying!) - but this is just speculation.

I forced a reconnect of the router myself which took only 7 secs. The computer has had no problem reconnecting in this case. I assume this is because of the short time frame.

Question remains: how to bring the computer to self heal a carrier-change even if this change takes a lot of time.

Share:
6,244

Related videos on Youtube

Ray
Author by

Ray

Updated on September 18, 2022

Comments

  • Ray
    Ray over 1 year

    I'm having a problem with wired network connections of Ubuntu systems (both 15.10 and 16.04). Basically, connection is suddenly lost.

    I'm trying to figure out if it's a problem with:

    • network cable,
    • switch,
    • Ubuntu, or
    • something else

    I actually doubt it is related to Ubuntu (since the problem is with multiple computers) but am posting here in the hopes that someone can suggest what to look for in the log files.

    The problem I've seen is with two network switches, both of which are new and are of the same make and model.

    syslog indicates the date and time of the problem, but I don't really know how to interpret it. For example, this is in the log:

    Oct  4 18:30:10 ... NetworkManager[1695]: <info>  [1475577010.9502] device (eno1): link disconnected (calling deferred action)
    Oct  4 18:30:10 ... NetworkManager[1695]: <info>  [1475577010.9504] device (eno1): state change: activated -> unavailable (reason 'carrier-changed') [100 20 40]
    

    Is there a list of "state changes" for NetworkManager which could help?

    For example, I was playing around with another computer and if I switched off the network using software, I get:

    unavailable -> disconnected

    Whereas if I unplugged it, I get:

    activated -> unavailable

    But this is just a guess... I've reached the point where I really don't know what I'm doing.

    Any suggestions would be appreciated! Thank you!

    Ray

  • Ray
    Ray over 3 years
    Thanks for the follow-up! My problem "went away" after a series of upgrades. However, as the system admins of my institute rarely kept me in the loop, I don't know if it's because they repaired something without telling me. I plugged the computer(s) into the wall socket...after that, it passes through various switches, routers, etc., none of which I have access to their logs. So the problem was frustrating... Thank you for the follow-up; hopefully, it can help others and maybe someone can answer your remaining question! The problem was really stressful at the time!