Interfaces réseaux

Mettre une adresse IP fixe sur Linux :

On modifie le fichier situé dans /etc/network/interfaces :

auto eth1
iface eth1 inet static
  address 192.168.0.42
  network 192.168.0.0
  netmask 255.255.255.0
  gateway 192.168.0.1

Puis on redémarre le service :

service networking restart

L'IP est désormais fixe !

Savoir son adresse IP d'une manière lisible : 
ip -br a

 

Créer un bond : 

 

auto bond0
iface bond0 inet manual
    bond-slaves eth2 eth3

auto lo
iface lo inet loopback

auto bond0.223
iface bond0.223 inet static
    address 192.168.1.10
    netmask 255.255.255.0
    network 192.168.1.0
    broadcast 192.168.1.255
    gateway 192.168.1.254
    vlan_raw_device bond0




Revision #3
Created 22 January 2026 10:56:52 by Nehemie
Updated 28 January 2026 10:37:57 by Nehemie