I have a Pi 4 2gb model and am unable to get ethernet to work.
The Pi is able to connect to my network via Wi-Fi, however when the ethernet cord is plugged in I only receive a yellow light, no longer a green one. I have purchased new cables and tried existing ones with the same result.
I have tried refreshing the OS with Raspberry Pi OS 32 and 64 bit and also Ubuntu server 32 and 64 bit with the same results even after running sudo apt-get update/grade.
My current setup is the Pi plugged into an unmanaged switch connected to my Eero 6 pro. I have tried to reboot the network and pi several times to see if it would resolve the DHCP, but it doesn't seem to. I have two other Pi 3's that are able to connect fine over ethernet.
Edit: Here is my output from ifconfig:
pi@raspberrypi:~ $ ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 169.254.20.130 netmask 255.255.0.0 broadcast 169.254.255.255
inet6 fe80::1494:366d:c316:229c prefixlen 64 scopeid 0x20<link>
ether dc:a6:32:2b:59:35 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 44 bytes 6653 (6.4 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 21 bytes 2490 (2.4 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 21 bytes 2490 (2.4 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.6.248 netmask 255.255.252.0 broadcast 192.168.7.255
inet6 fd30:fa95:3a35:47a0:82ff:1e06:493f:c4b1 prefixlen 64 scopeid 0x0<global>
inet6 fe80::aed6:6252:ae7e:637e prefixlen 64 scopeid 0x20<link>
ether dc:a6:32:2b:59:36 txqueuelen 1000 (Ethernet)
RX packets 1708 bytes 1438450 (1.3 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 508 bytes 51630 (50.4 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
Edit: Output from ethtool eth0
pi@raspberrypi:~ $ ethtool eth0
Settings for eth0:
Supported ports: [ TP MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full
Supported pause frame use: Symmetric Receive-only
Supports auto-negotiation: Yes
Supported FEC modes: Not reported
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full
Advertised pause frame use: Symmetric Receive-only
Advertised auto-negotiation: Yes
Advertised FEC modes: Not reported
Link partner advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Link partner advertised pause frame use: Symmetric
Link partner advertised auto-negotiation: Yes
Link partner advertised FEC modes: Not reported
Speed: 1000Mb/s
Duplex: Full
Auto-negotiation: on
master-slave cfg: preferred slave
master-slave status: slave
Port: Twisted Pair
PHYAD: 1
Transceiver: external
MDI-X: Unknown
netlink error: Operation not permitted
Current message level: 0x00000007 (7)
drv probe link
Link detected: yes
pi@raspberrypi:~ $ sudo ethtool eth0
Settings for eth0:
Supported ports: [ TP MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full
Supported pause frame use: Symmetric Receive-only
Supports auto-negotiation: Yes
Supported FEC modes: Not reported
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full
Advertised pause frame use: Symmetric Receive-only
Advertised auto-negotiation: Yes
Advertised FEC modes: Not reported
Link partner advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Link partner advertised pause frame use: Symmetric
Link partner advertised auto-negotiation: Yes
Link partner advertised FEC modes: Not reported
Speed: 1000Mb/s
Duplex: Full
Auto-negotiation: on
master-slave cfg: preferred slave
master-slave status: slave
Port: Twisted Pair
PHYAD: 1
Transceiver: external
MDI-X: Unknown
Supports Wake-on: d
Wake-on: d
Current message level: 0x00000007 (7)
drv probe link
Link detected: yes
Other trouble shooting steps I have attempted was swapping the ethernet cable, connecting directly to the Eero router instead of a switch, new power supply, new SD card, new image.
dhcpcd.conf
comparison: I compared the /etc/dhcpcd.conf
files from the functional RPi 3B, and the non-functional RPi 4B: the files are identical.
Edit 2
Output from systemctl status dhcpdcd
pi@raspberrypi:~ $ sudo ethtool -s eth0 autoneg off
pi@raspberrypi:~ $ sudo ethtool -s eth0 speed 100
pi@raspberrypi:~ $ systemctl status dhcpcd
● dhcpcd.service - DHCP Client Daemon
Loaded: loaded (/lib/systemd/system/dhcpcd.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2023-02-17 07:32:59 CST; 2min 13s ago
Docs: man:dhcpcd(8)
Process: 371 ExecStart=/usr/sbin/dhcpcd -b -q (code=exited, status=0/SUCCESS)
Main PID: 427 (dhcpcd)
Tasks: 2 (limit: 3720)
CPU: 956ms
CGroup: /system.slice/dhcpcd.service
├─427 /usr/sbin/dhcpcd -b -q
└─586 wpa_supplicant -B -c/etc/wpa_supplicant/wpa_supplicant.conf -iwlan0
Feb 17 07:33:13 raspberrypi dhcpcd[427]: eth0: adding route to 169.254.0.0/16
Feb 17 07:33:16 raspberrypi dhcpcd[427]: eth0: no IPv6 Routers available
Feb 17 07:34:46 raspberrypi dhcpcd[427]: wlan0: Router Advertisement from fe80::c35:8359:7092:e432
Feb 17 07:35:08 raspberrypi dhcpcd[427]: eth0: carrier lost
Feb 17 07:35:08 raspberrypi dhcpcd[427]: eth0: deleting address fe80::1494:366d:c316:229c
Feb 17 07:35:08 raspberrypi dhcpcd[427]: eth0: deleting route to 169.254.0.0/16
Feb 17 07:35:11 raspberrypi dhcpcd[427]: eth0: carrier acquired
Feb 17 07:35:11 raspberrypi dhcpcd[427]: eth0: IAID 32:2b:59:35
Feb 17 07:35:11 raspberrypi dhcpcd[427]: eth0: adding address fe80::1494:366d:c316:229c
Feb 17 07:35:12 raspberrypi dhcpcd[427]: eth0: soliciting a DHCP lease
Edit with updated output from ethtool eth0
pi@raspberrypi:~ $ sudo ethtool -s eth0 speed 100
pi@raspberrypi:~ $ sudo ethtool -s eth0 autoneg off
pi@raspberrypi:~ $ sudo ethtool eth0
Settings for eth0:
Supported ports: [ TP MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full
Supported pause frame use: Symmetric Receive-only
Supports auto-negotiation: Yes
Supported FEC modes: Not reported
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full
Advertised pause frame use: Symmetric Receive-only
Advertised auto-negotiation: No
Advertised FEC modes: Not reported
Speed: 100Mb/s
Duplex: Full
Auto-negotiation: off
master-slave cfg: preferred slave
master-slave status: slave
Port: Twisted Pair
PHYAD: 1
Transceiver: external
MDI-X: Unknown
Supports Wake-on: d
Wake-on: d
Current message level: 0x00000007 (7)
drv probe link
Link detected: yes
Edit with output from journalctl -u dhcpcd.service
-- Boot aaded611165044d9aa515c9641d89311 --
Feb 15 20:24:32 raspberrypi systemd[1]: Starting DHCP Client Daemon...
Feb 15 20:24:32 raspberrypi dhcpcd[368]: dev: loaded udev
Feb 15 20:24:33 raspberrypi dhcpcd[368]: forked to background, child pid 419
Feb 15 20:24:33 raspberrypi dhcpcd[419]: eth0: waiting for carrier
Feb 15 20:24:33 raspberrypi systemd[1]: Started DHCP Client Daemon.
Feb 15 20:24:34 raspberrypi dhcpcd-run-hooks[571]: wlan0: starting wpa_supplicant
Feb 15 20:24:35 raspberrypi dhcpcd[419]: wlan0: connected to Access Point `'
Feb 15 20:24:35 raspberrypi dhcpcd[419]: wlan0: waiting for carrier
Feb 15 20:24:37 raspberrypi dhcpcd[419]: eth0: carrier acquired
Feb 15 20:24:37 raspberrypi dhcpcd[419]: DUID 00:01:00:01:2a:be:6a:26:dc:a6:32:2b:59:35
Feb 15 20:24:37 raspberrypi dhcpcd[419]: eth0: IAID 32:2b:59:35
Feb 15 20:24:37 raspberrypi dhcpcd[419]: eth0: adding address fe80::1494:366d:c316:229c
Feb 15 20:24:37 raspberrypi dhcpcd[419]: eth0: soliciting an IPv6 router
Feb 15 20:24:38 raspberrypi dhcpcd[419]: eth0: soliciting a DHCP lease
Feb 15 20:24:40 raspberrypi dhcpcd[419]: wlan0: carrier acquired
Feb 15 20:24:40 raspberrypi dhcpcd[419]: wlan0: connected to Access Point `HomeKit'
Feb 15 20:24:40 raspberrypi dhcpcd[419]: wlan0: IAID 32:2b:59:36
Feb 15 20:24:40 raspberrypi dhcpcd[419]: wlan0: adding address fe80::aed6:6252:ae7e:637e
Feb 15 20:24:41 raspberrypi dhcpcd[419]: wlan0: rebinding lease of 192.168.6.248
Feb 15 20:24:41 raspberrypi dhcpcd[419]: wlan0: soliciting an IPv6 router
Feb 15 20:24:41 raspberrypi dhcpcd[419]: wlan0: probing address 192.168.6.248/22
Feb 15 20:24:42 raspberrypi dhcpcd[419]: wlan0: Router Advertisement from fe80::1c5d:435c:40e2:b058
Feb 15 20:24:42 raspberrypi dhcpcd[419]: wlan0: adding address fd30:fa95:3a35:47a0:82ff:1e06:493f:c4b1/64
Feb 15 20:24:42 raspberrypi dhcpcd[419]: wlan0: adding route to fd30:fa95:3a35:47a0::/64
Feb 15 20:24:42 raspberrypi dhcpcd[419]: wlan0: Router Advertisement from fe80::141c:f280:8b8f:eadd
Feb 15 20:24:42 raspberrypi dhcpcd[419]: wlan0: adding address fd30:fa95:3a35:47a0:82ff:1e06:493f:c4b1/64
Feb 15 20:24:42 raspberrypi dhcpcd[419]: wlan0: Router Advertisement from fe80::10a4:7508:25d5:163a
Feb 15 20:24:42 raspberrypi dhcpcd[419]: wlan0: adding address fd30:fa95:3a35:47a0:82ff:1e06:493f:c4b1/64
Feb 15 20:24:42 raspberrypi dhcpcd[419]: wlan0: Router Advertisement from fe80::10d9:826e:46df:b411
Feb 15 20:24:42 raspberrypi dhcpcd[419]: wlan0: adding address fd30:fa95:3a35:47a0:82ff:1e06:493f:c4b1/64
Feb 15 20:24:43 raspberrypi dhcpcd[419]: eth0: probing for an IPv4LL address
Feb 15 20:24:46 raspberrypi dhcpcd[419]: wlan0: leased 192.168.6.248 for 12372 seconds
Feb 15 20:24:46 raspberrypi dhcpcd[419]: wlan0: adding route to 192.168.4.0/22
Feb 15 20:24:46 raspberrypi dhcpcd[419]: wlan0: adding default route via 192.168.4.1
Feb 15 20:24:48 raspberrypi dhcpcd[419]: eth0: using IPv4LL address 169.254.20.130
Feb 15 20:24:48 raspberrypi dhcpcd[419]: eth0: adding route to 169.254.0.0/16
Feb 15 20:24:49 raspberrypi dhcpcd[419]: wlan0: Router Advertisement from fe80::141c:f280:8b8f:eadd
Feb 15 20:24:51 raspberrypi dhcpcd[419]: eth0: no IPv6 Routers available
Feb 15 20:24:52 raspberrypi dhcpcd[419]: wlan0: Router Advertisement from fe80::141c:f280:8b8f:eadd
Feb 15 20:26:22 raspberrypi dhcpcd[419]: wlan0: Router Advertisement from fe80::10d9:826e:46df:b411
Feb 15 20:27:11 raspberrypi dhcpcd[419]: wlan0: Router Advertisement from fe80::1c5d:435c:40e2:b058
Feb 15 20:27:26 raspberrypi dhcpcd[419]: wlan0: fe80::1c5d:435c:40e2:b058 is unreachable
Feb 15 20:27:26 raspberrypi dhcpcd[419]: wlan0: fe80::10a4:7508:25d5:163a is unreachable
Feb 15 20:27:26 raspberrypi dhcpcd[419]: wlan0: fe80::141c:f280:8b8f:eadd is unreachable
Feb 15 20:27:26 raspberrypi dhcpcd[419]: wlan0: fe80::10d9:826e:46df:b411 is unreachable
Feb 15 20:27:26 raspberrypi dhcpcd[419]: wlan0: carrier lost
Feb 15 20:27:26 raspberrypi dhcpcd[419]: wlan0: deleting address fd30:fa95:3a35:47a0:82ff:1e06:493f:c4b1/64
Feb 15 20:27:26 raspberrypi dhcpcd[419]: wlan0: deleting route to fd30:fa95:3a35:47a0::/64
Feb 15 20:27:26 raspberrypi dhcpcd[419]: wlan0: deleting address fe80::aed6:6252:ae7e:637e
Feb 15 20:27:26 raspberrypi dhcpcd[419]: eth0: adding default route
Feb 15 20:27:26 raspberrypi dhcpcd[419]: wlan0: deleting route to 192.168.4.0/22
Feb 15 20:27:26 raspberrypi dhcpcd[419]: wlan0: deleting default route via 192.168.4.1
Feb 15 20:28:20 raspberrypi dhcpcd[419]: wlan0: carrier acquired
Feb 15 20:28:20 raspberrypi dhcpcd[419]: wlan0: IAID 32:2b:59:36
Feb 15 20:28:20 raspberrypi dhcpcd[419]: wlan0: adding address fe80::aed6:6252:ae7e:637e
Feb 15 20:28:20 raspberrypi dhcpcd[419]: wlan0: soliciting an IPv6 router
Feb 15 20:28:20 raspberrypi dhcpcd[419]: wlan0: rebinding lease of 192.168.6.248
Feb 15 20:28:20 raspberrypi dhcpcd[419]: wlan0: probing address 192.168.6.248/22
Feb 15 20:28:26 raspberrypi dhcpcd[419]: wlan0: leased 192.168.6.248 for 12167 seconds
Feb 15 20:28:26 raspberrypi dhcpcd[419]: wlan0: adding route to 192.168.4.0/22
Feb 15 20:28:26 raspberrypi dhcpcd[419]: wlan0: adding default route via 192.168.4.1
Feb 15 20:28:26 raspberrypi dhcpcd[419]: eth0: deleting default route
Feb 15 20:28:40 raspberrypi dhcpcd[419]: wlan0: Router Advertisement from fe80::10d9:826e:46df:b411
Feb 15 20:28:45 raspberrypi dhcpcd[419]: wlan0: Router Advertisement from fe80::141c:f280:8b8f:eadd
Feb 15 20:28:45 raspberrypi dhcpcd[419]: wlan0: Router Advertisement from fe80::10a4:7508:25d5:163a
Feb 15 20:28:47 raspberrypi dhcpcd[419]: wlan0: Router Advertisement from fe80::1c5d:435c:40e2:b058
Feb 15 20:29:06 raspberrypi dhcpcd[419]: wlan0: Router Advertisement from fe80::10d9:826e:46df:b411
Feb 15 20:29:06 raspberrypi dhcpcd[419]: wlan0: adding address fd30:fa95:3a35:47a0:82ff:1e06:493f:c4b1/64
Feb 15 20:29:06 raspberrypi dhcpcd[419]: wlan0: adding route to fd30:fa95:3a35:47a0::/64
Feb 15 20:29:12 raspberrypi dhcpcd[419]: wlan0: Router Advertisement from fe80::10a4:7508:25d5:163a
Feb 15 20:29:12 raspberrypi dhcpcd[419]: wlan0: adding address fd30:fa95:3a35:47a0:82ff:1e06:493f:c4b1/64
Feb 15 20:29:13 raspberrypi dhcpcd[419]: wlan0: Router Advertisement from fe80::1c5d:435c:40e2:b058
Feb 15 20:29:13 raspberrypi dhcpcd[419]: wlan0: adding address fd30:fa95:3a35:47a0:82ff:1e06:493f:c4b1/64
Feb 15 20:29:15 raspberrypi dhcpcd[419]: wlan0: Router Advertisement from fe80::141c:f280:8b8f:eadd
Feb 15 20:29:15 raspberrypi dhcpcd[419]: wlan0: adding address fd30:fa95:3a35:47a0:82ff:1e06:493f:c4b1/64
Feb 15 20:30:32 raspberrypi dhcpcd[419]: received SIGTERM, stopping
Feb 15 20:30:32 raspberrypi dhcpcd[419]: wlan0: removing interface
Feb 15 20:30:32 raspberrypi dhcpcd[419]: eth0: adding default route
Feb 15 20:30:32 raspberrypi dhcpcd[419]: eth0: removing interface
Feb 15 20:30:32 raspberrypi systemd[1]: Stopping DHCP Client Daemon...
Feb 15 20:30:32 raspberrypi dhcpcd[419]: dhcpcd exited
Feb 15 20:30:33 raspberrypi systemd[1]: dhcpcd.service: Succeeded.
Feb 15 20:30:33 raspberrypi systemd[1]: Stopped DHCP Client Daemon.
Feb 15 20:30:33 raspberrypi systemd[1]: dhcpcd.service: Consumed 2.516s CPU time.
-- Boot 23a1ec119b3c4936ad87c7eccdfd0f57 --
-- Boot 4046619d8227446c89bc72cb023aec2e --
Feb 18 23:42:42 raspberrypi dhcpcd[428]: wlan0: Router Advertisement from fe80::10d9:826e:46df:b411
Feb 18 23:43:52 raspberrypi dhcpcd[428]: wlan0: Router Advertisement from fe80::c35:8359:7092:e432
Feb 18 23:45:14 raspberrypi dhcpcd[428]: wlan0: Router Advertisement from fe80::18c0:858b:dd40:dfea
Feb 18 23:45:28 raspberrypi dhcpcd[428]: wlan0: Router Advertisement from fe80::141c:f280:8b8f:eadd
Feb 18 23:47:41 raspberrypi dhcpcd[428]: eth0: carrier lost
Feb 18 23:47:41 raspberrypi dhcpcd[428]: eth0: deleting address fe80::1494:366d:c316:229c
Feb 18 23:47:41 raspberrypi dhcpcd[428]: eth0: deleting route to 169.254.0.0/16
Feb 18 23:47:44 raspberrypi dhcpcd[428]: eth0: carrier acquired
Feb 18 23:47:44 raspberrypi dhcpcd[428]: eth0: IAID 32:2b:59:35
Feb 18 23:47:44 raspberrypi dhcpcd[428]: eth0: adding address fe80::1494:366d:c316:229c
Feb 18 23:47:44 raspberrypi dhcpcd[428]: eth0: soliciting an IPv6 router
Feb 18 23:47:45 raspberrypi dhcpcd[428]: eth0: soliciting a DHCP lease
Feb 18 23:47:50 raspberrypi dhcpcd[428]: eth0: probing for an IPv4LL address
Feb 18 23:47:55 raspberrypi dhcpcd[428]: eth0: using IPv4LL address 169.254.20.130
Feb 18 23:47:55 raspberrypi dhcpcd[428]: eth0: adding route to 169.254.0.0/16
Feb 18 23:47:57 raspberrypi dhcpcd[428]: eth0: no IPv6 Routers available