Adresse IP Fixe sur Debian ou Ubuntu

1- Avec network/interfaces

On édite le fichier interfaces

nano /etc/network/interfaces

Il 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.254

2- Avec systemd-network

Dans /etc/systemd/network on créé un fichier:

Mis à jour