Adresse IP Fixe sur Debian ou Ubuntu
1- Avec network/interfaces
On édite le fichier interfaces
nano /etc/network/interfacesIl doit ressembler à ça:
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug ens18
iface ens18 inet static
address 192.168.0.6/24
address 10.0.0.12/24
gateway 192.168.0.2542- Avec systemd-network
Dans /etc/systemd/network on créé un fichier:
Mis à jour