Вы можете использовать следующие
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto enp2s0
iface enp2s0 inet static
address 192.168.0.10
netmask 255.255.255.0 #depends on your network class of address
gateway 192.168.0.1 #address of the server that allow you to connect internet or other networks.
dns-nameservers 8.8.8.8 #domain names resolver 8.8.8.8 it's google's public dns
, затем
$ sudo touch /etc/network/interfaces.d/enp2s0
, затем
$ sudo ifdown enp2s0 && sudo ifup enp2s0