How to get Yunohost to request a static intenal IP adress?

My YunoHost configuration

x86 64bit vm on a desktop machine (AMD64 Kubuntu)

Internet access:
Ethernet home ISP

YunoHost version:
yunohost: x3.2.2
yunohost-admin: 3.2.1
moulinette: 3.2.0
ssowat: 3.2.0

My crappy ISP-supplied modem doesn’t seem to have any way to set a static IP address on the LAN. How can I get Yunohost to always request the same internal IP? I’ve tried adding the following to /etc/dhclient.conf, but it just results in Yunohost not being assigned any internal IP:

interface "eth0" {
   send dhcp-requested-address

The router is set to use to as the range to assign to dhcp. Only to are assigned to other devices.

1 Like

$ nano /etc/network/interfaces

# The primary network interface
allow-hotplug eth0
iface eth0 inet static

$service networking restart
Or better restart server
$ yunohost tools reboot


Thanks! That worked perfectly! :grin: