Skip to content

Raspberry Pi 5 eth0 reports Link Up after Ethernet reconnect, but no traffic passes until reboot #7345

Closed

Description

@Higangssh

Describe the bug

On a Raspberry Pi 5 running Ubuntu 24.04.3 with the 6.8.0-1052-raspi kernel, unplugging and replugging the Ethernet cable from the router/switch side makes eth0 report that the link is back up at 1Gbps/full duplex, and the static IPv4 address is registered again, but no traffic passes until the Pi is rebooted.

After the reconnect, the Pi is not reachable from another machine on the same LAN via ping or SSH. The Pi also logs NTP timeouts after the link is supposedly back up, which suggests the Pi itself cannot pass traffic either.

I know this is reproduced on Ubuntu rather than Raspberry Pi OS, so if Launchpad / Ubuntu linux-raspi is the preferred place for this report, please let me know. I am filing it here first because the symptoms look like they may involve the Raspberry Pi 5 Ethernet/macb/PHY path.

Environment

  • Device: Raspberry Pi 5
  • OS: Ubuntu 24.04.3 LTS
  • Kernel: 6.8.0-1052-raspi #56-Ubuntu SMP PREEMPT_DYNAMIC Fri Mar 27 03:58:47 UTC 2026 aarch64
  • systemd: 255.4-1ubuntu8.14
  • Network stack: netplan + systemd-networkd
  • Interface: eth0
  • Driver shown by networkctl: macb
  • PHY shown in kernel logs: Broadcom BCM54213PE
  • IPv4: static 192.168.0.4/24, gateway 192.168.0.1
  • Power/throttling check: vcgencmd get_throttled returns throttled=0x0

Steps to reproduce

  1. Boot the Raspberry Pi 5 with Ethernet connected.
  2. Confirm it is reachable from another host on the same LAN:
    • ping 192.168.0.4
    • SSH also works.
  3. Unplug the Ethernet cable from the router/switch side only. Do not touch the Pi side.
  4. Wait a few seconds.
  5. Plug the cable back into the router/switch.
  6. Observe that the Pi logs Link is Up and Gained carrier, and the static IPv4 address is registered again.
  7. Try to ping or SSH into the Pi from another LAN host.
  8. Reboot the Pi.
  9. Observe that connectivity returns immediately after reboot.

Expected behaviour

After the Ethernet cable is reconnected, eth0 should resume passing traffic without requiring a reboot.

Actual behaviour

After reconnecting Ethernet:

  • eth0 reports Link is Up - 1Gbps/Full.
  • systemd-networkd reports Gained carrier.
  • The static IPv4 address is registered again.
  • But no traffic passes until reboot.
  • Another LAN host cannot ping or SSH into the Pi.
  • The Pi logs NTP timeouts after the reconnect.

Relevant logs

Failure case after reconnect:

May 01 19:08:31 pi5 systemd-networkd[670]: eth0: Lost carrier
May 01 19:08:31 pi5 kernel: macb 1f00100000.ethernet eth0: Link is Down
May 01 19:08:31 pi5 systemd-networkd[670]: eth0: DHCPv6 lease lost
May 01 19:08:31 pi5 avahi-daemon[714]: Withdrawing address record for 192.168.0.4 on eth0.
May 01 19:08:31 pi5 systemd-timesyncd[555]: No network connectivity, watching for changes.
May 01 19:08:34 pi5 systemd-networkd[670]: eth0: Gained carrier
May 01 19:08:34 pi5 kernel: macb 1f00100000.ethernet eth0: Link is Up - 1Gbps/Full - flow control tx
May 01 19:08:34 pi5 systemd-networkd[670]: eth0: found matching network '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/run/systemd/network/10-netplan-eth0.network', based on potentially unpredictable interface name.
May 01 19:08:34 pi5 systemd-timesyncd[555]: Network configuration changed, trying to establish connection.
May 01 19:08:34 pi5 avahi-daemon[714]: Registering new address record for 192.168.0.4 on eth0.IPv4.
May 01 19:08:44 pi5 systemd-timesyncd[555]: Timed out waiting for reply from 91.189.91.157:123 (ntp.ubuntu.com).
May 01 19:08:55 pi5 systemd-timesyncd[555]: Timed out waiting for reply from 185.125.190.58:123 (ntp.ubuntu.com).

Successful boot after reboot:

May 01 19:14:03 pi5 systemd-networkd[671]: eth0: Link UP
May 01 19:14:07 pi5 kernel: macb 1f00100000.ethernet eth0: Link is Up - 1Gbps/Full - flow control tx
May 01 19:14:07 pi5 systemd-networkd[671]: eth0: Gained carrier
May 01 19:14:08 pi5 cloud-init[681]: ci-info: |  eth0  |  True |         192.168.0.4         | 255.255.255.0 | global | [redacted] |
May 01 19:14:09 pi5 avahi-daemon[715]: Registering new address record for 192.168.0.4 on eth0.IPv4.

Things already tested

  • Static IPv4 instead of DHCPv4: issue still reproduces.
  • Different Ethernet cable: issue still reproduces.
  • Different router LAN port: issue still reproduces.
  • Rebooting restores network immediately.
  • apt full-upgrade reports the running kernel is up to date.
  • No undervoltage/throttling flags: throttled=0x0.

Additional note

There was also a separate case where the Pi logged Power key pressed short when physically touching the Pi-side cabling/case. That appears to be a separate case/button interaction issue. The Ethernet reconnect issue described here is reproduced by unplugging/replugging only the router/switch-side cable, without touching the Pi.

Activity

  1. pelwell commented on May 1, 2026

    @pelwell
    Contributor

    We don't have any control over the kernel that Ubuntu selects. We stick to the LTS kernels for general use - we're just about to move from 6.12 to 6.18 - and 6.8 is 1) old, and 2) not an LTS kernel.

  2. pelwell commented on May 1, 2026

    @pelwell
    Contributor

    Have you considered running Raspberry Pi OS?

  3. Higangssh commented on May 1, 2026

    @Higangssh
    Author

    Thanks for the quick response.

    That makes sense. I reported it here first because the symptom looked related to the Pi 5 Ethernet/macb/PHY path, but I understand that the Ubuntu-selected kernel is outside your control.

    I haven’t tested Raspberry Pi OS yet. I’ll try to reproduce the same Ethernet reconnect test on Raspberry Pi OS and report back with the result. If it only reproduces on Ubuntu, I’ll move the report to Ubuntu Launchpad / linux-raspi.

  4. jsramesh1990 commented on May 8, 2026

    @jsramesh1990
  5. saselivanov commented on May 12, 2026

    @saselivanov

    totally the same behaviour on the same hardware.

    • Ubuntu 24.04.4 LTS
    • 6.8.0-1053-raspi

    @Higangssh , any luck so far?

  6. itoolsy commented on May 15, 2026

    @itoolsy

    Hi everyone.
    I faced up with the same issue for the last 3 days and I've got the only one solution - link down/link up inside watchdog or called by networkd-dispatcher from routable.d

    
    #!/bin/bash
    
    [ "$IFACE" = "eth0" ] || exit 0
    
    # Wait for 60 sec after boot
    [ "$(awk '{print int($1)}' /proc/uptime)" -lt 60 ] && exit 0
    
    LOCKFILE="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/run/macb-reset.lock"
    
    [ -f "$LOCKFILE" ] && exit 0
    touch "$LOCKFILE"
    
    logger -t macb-reset "carrier-up on eth0, scheduling bounce"
    
    systemd-run --no-block \
        --unit=macb-reset-bounce \
        --property=Type=oneshot \
        /bin/bash -c '
            sleep 2
            ip link set eth0 down
            sleep 2
            ip link set eth0 up
            sleep 2
    	systemctl restart keepalived
    	sleep 3
            rm -f /run/macb-reset.lock
            logger -t macb-reset "eth0 bounce complete"
    
    
  7. added
    Close within 30 days
    on May 18, 2026
  8. jsramesh1990 commented on May 20, 2026

    @jsramesh1990
  9. nbuchwitz commented on May 20, 2026

    @nbuchwitz
    Contributor

    Pretty confident that this is the same I've fixed here #6900.

    Ubuntu should either pick the dt fix or use a recent ker el with autogreen phy fix + macb eee patches. Nothing raspberry pi can do about.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Close within 30 days

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions