Category: Basic Configuration
You should not change the hosts file, but rather the etc/network/interfaces file
This is what's in mine:
# interfaces(5) file used by ifup(8) and ifdown(8)
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d
auto eno1
iface eno1 inet static
address 10.10.10.100
hardware-irq-coalesce-rx-usecs 0
You would need to change eno1 to your (long) Ethernet device name