Setting Static IPV4 In Debian 9

Tested: 01/27/2018


Edit:

nano /etc/network/interfaces
auto ens18
allow-hotplug ens18
iface ens18 inet static
      hwaddress ether 00:0c:29:d4:6b:14
      address 192.168.1.160
      netmask 255.255.255.0
      gateway 192.168.1.1

auto ens19
allow-hotplug ens19
iface ens19 inet static
      hwaddress ether 00:0c:29:d4:6b:1e
      address 10.0.0.160
      netmask 255.255.255.0

/etc/init.d/networking restart