Make "systemd-networkd" manage your network interfaces (wired, in that case):
delete/move /etc/network/interfaces
stop and disable NetworkManager
service, optionally, remove ifupdown
package.
create interface file:
# /etc/systemd/network/10-wired-dhcp.network
[Match]
Name=enp2s0
[Network]
DHCP=yes
[DHCP]
UseDHS=true
# /etc/systemd/network/10-wired-static.network
[Match]
Name=enp2s0
[Network]
Address=10.1.10.9/24
Gateway=10.1.10.1
DNS=10.1.10.1
systemd-networkd.service
:sudo systemctl start systemd-networkd.service
sudo systemctl enable systemd-networkd.service