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

Troubleshooting • Re: Can't set static IP.

$
0
0
Thanks,
with systemctl status NetworkManager I now see that NetworkManager is up and I will use it.
Interestingly the first lines of https://wiki.debian.org/NetworkConfigur ... ork_config for Debian 12 Bookworm tells us:

Setting up an Ethernet Interface
The majority of network setup can be done via the interfaces configuration file at /etc/network/interfaces. Here, you can give your network card an IP address (or use dhcp), set up routing information, configure IP masquerading, set default routes and much more.
I agree with the comment of the Debian documentation. Setting an IP address is simpler using a basic text file (/etc/network/interfaces) than NetworkManager commands. For example (extract of man interfaces) for an fixed IP address:

Code:

       iface eth1 inet static            address 192.168.1.2/24            gateway 192.168.1.1       iface eth1 inet6 static            address fec0:0:0:1::2/64            gateway fec0:0:0:1::1

Statistics: Posted by PhL91 — Tue Jan 23, 2024 12:03 pm



Viewing all articles
Browse latest Browse all 4972

Trending Articles