Linux: /etc/network/interfaces Netzwerk / IP Konfiguration ifconfig

default:

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet dhcp

Sinnvoll abgeändert auf:

# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
# auto eth0
# iface eth0 inet dhcp

auto eth0
iface eth0 inet static
 address 192.168.178.222
 netmask 255.255.255.0
 gateway 192.168.178.1
 dns-nameservers 192.168.178.1 208.67.222.222

für die Zuordnung von eth .. etc. zu Mac-Adressen bzw zur Hardware via udev:

/etc/udev/rules.d/75-persistent-net-generator.rules

temporär via ifconfig:

ifconfig eth0 up
ifconfig eth0 192.168.178.123/24
echo “nameserver 1.1.1.1” >> /etc/resolv.conf
route add default gw 192.168.178.1