David Christensen composed on 2024-07-04 19:06 (UTC-0700): > debian-user:
> I have built a VirtualBox virtual machine and installed Debian 11 with > SSH server and standard system utilities only. I plan to use the VM to > run the UniFi Network Controller to manage the UniFi equipment on my > SOHO LAN: > root@unifi:~# cat /etc/debian_version ; uname -a > 11.10 > Linux unifi 5.10.0-30-amd64 #1 SMP Debian 5.10.218-1 (2024-06-01) x86_64 > GNU/Linux > The VM currently has a DHCP address. I would like to set a static IPv4 > address. The Debian wiki tells me to edit /etc/network/interfaces and > provides some example settings that I believe I can adapt to my use-case: > https://wiki.debian.org/NetworkConfiguration#Configuring_the_interface_manually > auto eth0 > iface eth0 inet static > address 192.0.2.7/24 > gateway 192.0.2.254 > The Debian wiki also says: > "Make sure to disable all DHCP services, e.g. dhcpcd." > What is the correct method to "disable all DHCP services"? I think there are more than one. One thing is to check what is enabled, then disable or uninstall whatever owns the unit(s): systemctl list-unit-files | egrep 'net|dhcp' Do the same with whatever "manages" /etc/resolv.conf, and create a regular file of your own design. I don't use VMs, but I did several hours ago instruct several hours ago using systemd-network to setup static IP service for a *buntu user who couldn't get netplan sorted: <https://www.linuxquestions.org/questions/ubuntu-63/netplan-apply-no-longer-setting-static-ip-address-4175738702/#post6512274> I've been using systemd-network static IPs on everything for several years, including Bullseye. -- Evolution as taught in public schools is, like religion, based on faith, not based on science. Team OS/2 ** Reg. Linux User #211409 ** a11y rocks! Felix Miata