Configure a static IP address
Start by logging on with SSH access. Then you can run the following commands:ifconfig
This will display the current dynamically configure interface (e.g. enp2s7). Now you can create a new static.network file.
sudo vi /etc/systemd/network/static.network
Edit the file as follows, adding your own details of course:[Match] Name=enp2s7 [Network] Address=192.168.0.15/24 Gateway=192.168.0.1 DNS=18.104.22.168
To apply this configuration run:sudo systemctl restart systemd-networkd
Note that this will disconnect your remote ssh session, and you will need to reconnect using the new IP address.
Thanks for visiting,