====== statische IP-Adresse bei Ubuntu 18.04 ======
in ///etc/netplan// befindet sich die Konfigurationsdatei //01-netcfg.yaml//.
Beispiel für DHCP
# This file describes the network interfaces available on your system
# For more information, see netplan(5).
network:
version: 2
renderer: networkd
ethernets:
enp0s3:
dhcp4: yes
Beispiel für statische IP
# This file describes the network interfaces available on your system
# For more information, see netplan(5).
network:
version: 2
renderer: networkd
ethernets:
enp0s3:
dhcp4: no
addresses: [192.168.1.222/24]
gateway4: 192.168.1.1
nameservers:
addresses: [8.8.8.8,8.8.4.4]
mit **netplan apply** wird die Konfig aktualisiert. Sollte es zu Problemen kommen kann **netplan %%--%%debug apply** helfen