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

My YunoHost configuration

Hardware:
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 192.168.1.99
}

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

1 Like

$ nano /etc/network/interfaces

# The primary network interface
allow-hotplug eth0
iface eth0 inet static
	address 192.168.1.99/24
	gateway 192.168.1.1

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

2 Likes

Thanks! That worked perfectly! :grin: