Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5171

Networking and servers • Re: Assistance with script to change Static IP

$
0
0
I use the latest raspebery OS in the headless version and try to set a static ip-address.
The Debian Reference suggests using systemd-networkd instead of NM in 5.3. The modern network configuration without GUI. That's how I configure the network on my headless server Pis running Raspios 12/Bookworm. Just enable systemd-networkd and disable NM, and drop in appropriate config files in /etc/systemd/network/. See also systemd-networkd(8), systemd.network(5), and examples in /lib/systemd/network/.

Code:

# Drop appropriate *.network config file(s) in /etc/systemd/network first, then:sudo systemctl enable systemd-networkd && sudo systemctl disable NetworkManager
Alternatively, look at netplan.io (package available in APT).

Statistics: Posted by Murph9000 — Mon Sep 16, 2024 10:54 pm



Viewing all articles
Browse latest Browse all 5171

Trending Articles