Raspi Bookworm; Static IP.......

All the topics related to QLC+ on the Raspberry Pi
Post Reply
IamMarkie
Posts: 10
Joined: Sat Jun 08, 2024 10:34 am
Real Name: Mark Mongold

Reading through a lot of posts here and other forums about setting a static IP in Bookworm.
The option is no longer part of Raspi-config. Even on the official Pi forums, they make it sound impossible to set a static IP in bookworm, and go as far as saying to use your router to confine it to one address. While this works, it is not a fit all solution, certainly not for me, which is why I spent a couple days trying find an answer.
The answer is 5 letters at the command prompt........ nmtui This gets you part of the Network Manager, the part that lets you set a static IP on both the wired, and the wireless interfaces of your headless RPi.

Hope this helps someone!! 8-)
User avatar
mcallegari
Posts: 4807
Joined: Sun Apr 12, 2015 9:09 am
Location: Italy
Real Name: Massimo Callegari
Contact:

This is pretty much a generic Linux question rather than a QLC+ one.
Bookworm switched (finally!) to using the NetworkManager package, therefore every network configuration must go through it.
The tool to be used is nmcli (network manager command line interface)
Then google is your friend
https://www.tecmint.com/nmcli-configure ... onnection/
markzvo
Posts: 91
Joined: Sat Jan 28, 2017 1:52 am
Real Name: Mark Z

Setting a static IP through the QLC+ web interface did not work for me as it has in the past.

This will work:

Exit to the command line and log in with your root account such as pi/raspberry.

Type “sudo nano /etc/network/interfaces” and add the following lines - in this example, the static IP of the Pi is 192.168.1.100:

auto eth0
iface eth0 inet static
address 192.168.1.100
netmask 255.255.255.0
gateway 192.168.1.1


Hit Ctrl-O, then Enter to save, and Ctrl-X to Exit.

The settings should persist after a reboot. If you do not wish to reboot, run the command “sudo systemctl restart networking” but you should always ensure the IP address persists after a reboot.
User avatar
mcallegari
Posts: 4807
Joined: Sun Apr 12, 2015 9:09 am
Location: Italy
Real Name: Massimo Callegari
Contact:

Again, latest image use NetworkManager, so manually touching configuration files is not a good idea. You need to use nmcli
Post Reply