Article 6GARR Raspberry Pi 4 Model B Rev 1.1 - DHCP issue on boot.

Raspberry Pi 4 Model B Rev 1.1 - DHCP issue on boot.

by
ricky_cardo
from LinuxQuestions.org on (#6GARR)
After recent upgrade the DHCP option in Netconf no longer gets an IP address / nor does it enable eth0.
- I think this started after around mid October... updates I'm no longer getting address on reboot.

Pi4 - plugged in to switch on eth0 had previously worked well ...

PI4 - just reloaded to today's current 11-12-2023 followed the directions and performed a clean install.
same results

I checked /etc/rc.d/rc.inet1.conf
and pretty much only ( USE_DHCP[0]="yes" ) is set.

Here is the dmesg from boot.

Code:Nov 12 15:58:17 rpi4 rc.inet1[1095]: lo: configuring interface
Nov 12 15:58:17 rpi4 rc.inet1[1095]: eth0: configuring interface
Nov 12 15:58:17 rpi4 rc.inet1[1095]: eth0: starting dhcpcd
Nov 12 15:58:17 rpi4 dhcpcd[1135]: dhcpcd-10.0.4 starting
Nov 12 15:58:18 rpi4 kernel: 8021q: 802.1Q VLAN Support v1.8
Nov 12 15:58:18 rpi4 kernel: bcmgenet fd580000.ethernet: configuring instance for external RGMII (RX delay)
Nov 12 15:58:18 rpi4 dhcpcd[1138]: eth0: waiting for carrier
Nov 12 15:58:18 rpi4 kernel: bcmgenet fd580000.ethernet eth0: Link is Down
Nov 12 15:58:22 rpi4 dhcpcd[1138]: eth0: carrier acquired
Nov 12 15:58:22 rpi4 kernel: IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
Nov 12 15:58:22 rpi4 kernel: bcmgenet fd580000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
Nov 12 15:58:22 rpi4 dhcpcd[1138]: DUID 00:01:00:01:2c:e3:f8:ee:dc:a6:32:4f:d3:1c
Nov 12 15:58:22 rpi4 dhcpcd[1138]: eth0: IAID 32:4f:d3:1c
Nov 12 15:58:22 rpi4 dhcpcd[1138]: eth0: soliciting a DHCP lease
Nov 12 15:58:22 rpi4 dhcpcd[1138]: eth0: offered 192.168.57.214 from 192.168.57.2
Nov 12 15:58:22 rpi4 dhcpcd[1138]: eth0: probing address 192.168.57.214/24
Nov 12 15:58:28 rpi4 dhcpcd[1138]: eth0: leased 192.168.57.214 for 43200 seconds
Nov 12 15:58:28 rpi4 dhcpcd[1138]: eth0: adding route to 192.168.57.0/24
Nov 12 15:58:28 rpi4 dhcpcd[1138]: eth0: adding default route via 192.168.57.2
Nov 12 15:58:28 rpi4 kernel: audit: type=1326 audit(1699822708.299:2): auid=4294967295 uid=68 gid=68 ses=4294967295 pid=1137 comm="dhcpcd" exe="/sbin/dhcpcd" sig=31 arch=c00000b7 syscall=24 compat=0 ip=0xffff98d8eb4c code=0x0
Nov 12 15:58:28 rpi4 rc.inet1[1095]: eth0: failed to obtain DHCP lease
Nov 12 15:58:28 rpi4 kernel: bcmgenet fd580000.ethernet eth0: Link is Down
once rc.local runs:
Code:Nov 12 15:59:07 rpi4 kernel: bcmgenet fd580000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
Nov 12 15:59:13 rpi4 dhcpcd[1370]: dhcpcd-10.0.4 starting
Nov 12 15:59:13 rpi4 dhcpcd[1373]: DUID 00:01:00:01:2c:e3:f8:ee:dc:a6:32:4f:d3:1c
Nov 12 15:59:13 rpi4 dhcpcd[1373]: eth0: IAID 32:4f:d3:1c
Nov 12 15:59:14 rpi4 dhcpcd[1373]: eth0: soliciting an IPv6 router
Nov 12 15:59:15 rpi4 dhcpcd[1373]: eth0: rebinding lease of 192.168.57.214
Nov 12 15:59:15 rpi4 dhcpcd[1373]: eth0: probing address 192.168.57.214/24
Nov 12 15:59:20 rpi4 dhcpcd[1373]: eth0: leased 192.168.57.214 for 43200 seconds
Nov 12 15:59:20 rpi4 dhcpcd[1373]: eth0: adding route to 192.168.57.0/24
Nov 12 15:59:20 rpi4 dhcpcd[1373]: eth0: adding default route via 192.168.57.2
Nov 12 15:59:20 rpi4 kernel: audit: type=1326 audit(1699822760.699:3): auid=0 uid=68 gid=68 ses=1 pid=1372 comm="dhcpcd" exe="/sbin/dhcpcd" sig=31 arch=c00000b7 syscall=24 compat=0 ip=0xffff991aeb4c code=0x0System:
Host: rpi4.lehcar.net Kernel: 6.1.62-armv8 arch: aarch64 bits: 64 Console: pty pts/1
Distro: Slackware 15.0
Machine:
Type: ARM System: Raspberry Pi 4 Model B Rev 1.1

I can resolve the issue by adding this to rc.local
but wanted to let you know of this new behavior.

Code:# check eth0 if down bring up
if [[ $(cat /sys/class/net/eth0/operstate) == "down" ]] ;then
/sbin/ifconfig eth0 up
/sbin/dhcpcd eth0
fi
If you can think of anything to try let me know.
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments