informatique:linux:configurer_le_reseau_sous_linux
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| informatique:linux:configurer_le_reseau_sous_linux [2011/07/22 07:27] – benoit | informatique:linux:configurer_le_reseau_sous_linux [2011/07/24 17:19] (Version actuelle) – benoit | ||
|---|---|---|---|
| Ligne 22: | Ligne 22: | ||
| ===== Debian / Ubuntu ===== | ===== Debian / Ubuntu ===== | ||
| + | Sous Debian, tout est configuré dans le fichier **/ | ||
| # This file describes the network interfaces available on your system | # This file describes the network interfaces available on your system | ||
| # and how to activate them. For more information, | # and how to activate them. For more information, | ||
| | | ||
| # The loopback network interface | # The loopback network interface | ||
| - | auto lo eth0 eth1 | + | auto lo eth0 |
| iface lo inet loopback | iface lo inet loopback | ||
| | | ||
| # The primary network interface | # The primary network interface | ||
| - | allow-hotplug eth0 eth1 | + | allow-hotplug eth0 |
| iface eth0 inet static | iface eth0 inet static | ||
| address 192.168.0.4 | address 192.168.0.4 | ||
| netmask 255.255.255.0 | netmask 255.255.255.0 | ||
| gateway 192.168.0.254 | gateway 192.168.0.254 | ||
| - | | ||
| - | iface eth1 inet static | ||
| - | address 10.254.250.239 | ||
| - | netmask 255.255.255.0 | ||
| post-up route add -net 10.1.0.0/24 gw 192.168.0.253 | post-up route add -net 10.1.0.0/24 gw 192.168.0.253 | ||
| post-up route add 10.0.0.1 gw 192.168.0.253 | post-up route add 10.0.0.1 gw 192.168.0.253 | ||
| + | |||
| + | :!: Ce fichier de configuration est la même configuration que RedHat plus haut. | ||
informatique/linux/configurer_le_reseau_sous_linux.1311319637.txt.gz · Dernière modification : (modification externe)
