Ce mémo a été publié le 19 juin 2010 et peut contenir des informations qui peuvent être incomplètes, non mises à jour voir erronées du fait de son ancienneté.
N'hésitez pas à compléter votre recherche sur des articles plus récents.
Voici le code a utiliser dans le fichier /etc/network/interfaces
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
|
|
<span style="vertical-align: top;"><span style="color: #666666; font-style: italic;"># This file describes the network interfaces available on your system</span></span> <span style="vertical-align: top;"><span style="color: #666666; font-style: italic;"># and how to activate them. For more information, see interfaces(5).</span></span> <span style="vertical-align: top;"> </span> <span style="vertical-align: top;"><span style="color: #666666; font-style: italic;"># The loopback network interface</span></span> <span style="vertical-align: top;">auto lo</span> <span style="vertical-align: top;">iface lo inet loopback</span> <span style="vertical-align: top;"> </span> <span style="vertical-align: top;"><span style="color: #666666; font-style: italic;"># The primary network interface</span></span> <span style="vertical-align: top;">auto eth0</span> <span style="vertical-align: top;"> </span> <span style="vertical-align: top;"><span style="color: #666666; font-style: italic;"># The primary network interface</span></span> <span style="vertical-align: top;">iface eth0 inet static</span> <span style="vertical-align: top;">address 192.168.46.128</span> <span style="vertical-align: top;">netmask 255.255.255.0</span> <span style="vertical-align: top;">gateway 192.168.46.2</span> |
|
Ne pas oublier de décommenter cette ligne si elle est présente :
|
|
<span style="vertical-align: top;">iface eth0 inet dhcp</span> |
|
Vers :
|
|
<span style="vertical-align: top;"><span style="color: #666666; font-style: italic;"># iface eth0 inet dhcp</span></span> |
|