Sujet : Re: Setting a manual IP address
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.sys.raspberry-piDate : 19. May 2024, 00:45:13
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v2bei9$30kmg$2@dont-email.me>
References : 1
User-Agent : Pan/0.155 (Kherson; fc5a80b8)
On Tue, 14 May 2024 18:44:48 -0000 (UTC), bp wrote:
What's the easiest way to manually set a RasPiOS host's IP address?
Raspi-config offers DHCP or networkmanager,
but neither invites manual intervention.
The traditional Debian way is to hand-edit /etc/network/interfaces. If an
interface entry begins “interface «name» inet static”, then you can follow
them with explicit settings, and NetworkManager should not touch them.
If you are using systemd-network (as Ubuntu does), then it is suffices to
put config files named “«n»-«name».network»” in /etc/systemd/network, one
for each interface, with manual settings in them. The format for these is
documented in systemd.network(5).