Trying to get a Raspberry Pi 4 to get DHCP from my router

Hi all, I just got a new Pi 4, in order to use it as a Fing agent, http://www.fing.com for network monitoring. We installed Bookworm to it, and even tried earlier versions like BullsEye, but it will not get DHCP from my router. Once we have installed it, we can see it using PuTTY and I can log into it. However, although it gets as far as the LAN, it doesn't get out to WAN. It goes for the local IP of 127.0.0.1. So my friend took it to his house, and from his router, provided by Plusnet, it gets DHCP, and on my Draytek router, it doesn't. The main difference between the two is that the gateway on the Plusnet router is 192.168.1.254, and the gateway IP on the Draytek is 192.168.1.1. Could anyone please tell me the easiest way to change the gateway, netmask and DNS servers it looks for? In this way, we may be able to get DHCP from the router. It appears that Bookworm doesn't use DHCPCD any more, so I have been trying without success using NMCLI commands. If anyone can help with this, I would be extremely grateful. Many thanks. All the best Steve -- To subscribe to our News and Special Offers list, go to <https://www.comproom.co.uk/subscribe> https://www.comproom.co.uk/subscribe Computer Room Services 77 Exeter Close Stevenage Hertfordshire SG1 4PW T: +44(0)1438-742286 M: +44(0)7956-334938 F: +44(0)1438-759589 E: <mailto:steve@comproom.co.uk> steve@comproom.co.uk W: <https://www.comproom.co.uk> https://www.comproom.co.uk

Hi. This message may not have got delivered to many people due to an update on the M365 email platform which caused all members to bounce. This should now be fixed. When you say you can access the Pi via PuTTY, do you mean you can access it from a local keyboard as using PuTTY would be over the network. Are you using wireless or ethernet on the Pi? I have found the new Raspberry Pi imager is accessible with speech and allows you to set up network options as part of the imaging process. The system writes a text file to a boot partition which is then read in at first boot by Raspbian. I had temporairily set up a Fing agent using this method on a Raspbian Lite image. Thanks. Andrew. -----Original Message----- From: Steve Nutt via Blind-sysadmins <blind-sysadmins@lists.hodgsonfamily.org> Sent: 01 May 2025 12:10 To: blind-sysadmins@lists.hodgsonfamily.org Cc: Steve Nutt <steve@comproom.co.uk> Subject: [Blind-sysadmins] Trying to get a Raspberry Pi 4 to get DHCP from my router Hi all, I just got a new Pi 4, in order to use it as a Fing agent, http://www.fing.com for network monitoring. We installed Bookworm to it, and even tried earlier versions like BullsEye, but it will not get DHCP from my router. Once we have installed it, we can see it using PuTTY and I can log into it. However, although it gets as far as the LAN, it doesn't get out to WAN. It goes for the local IP of 127.0.0.1. So my friend took it to his house, and from his router, provided by Plusnet, it gets DHCP, and on my Draytek router, it doesn't. The main difference between the two is that the gateway on the Plusnet router is 192.168.1.254, and the gateway IP on the Draytek is 192.168.1.1. Could anyone please tell me the easiest way to change the gateway, netmask and DNS servers it looks for? In this way, we may be able to get DHCP from the router. It appears that Bookworm doesn't use DHCPCD any more, so I have been trying without success using NMCLI commands. If anyone can help with this, I would be extremely grateful. Many thanks. All the best Steve -- To subscribe to our News and Special Offers list, go to <https://www.comproom.co.uk/subscribe> https://www.comproom.co.uk/subscribe Computer Room Services 77 Exeter Close Stevenage Hertfordshire SG1 4PW T: +44(0)1438-742286 M: +44(0)7956-334938 F: +44(0)1438-759589 E: <mailto:steve@comproom.co.uk> steve@comproom.co.uk W: <https://www.comproom.co.uk> https://www.comproom.co.uk _______________________________________________ Blind-sysadmins mailing list -- blind-sysadmins@lists.hodgsonfamily.org To unsubscribe send an email to blind-sysadmins-leave@lists.hodgsonfamily.org
participants (2)
-
Andrew Hodgson
-
Steve Nutt