Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente | ||
informatique:linux:configurer_le_reseau_sous_linux [2011/07/22 09:27] benoit |
informatique:linux:configurer_le_reseau_sous_linux [2018/09/06 19:10] (Version actuelle) |
||
---|---|---|---|
Ligne 22: | Ligne 22: | ||
===== Debian / Ubuntu ===== | ===== Debian / Ubuntu ===== | ||
+ | Sous Debian, tout est configuré dans le fichier **/etc/network/interfaces** : | ||
# 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, see interfaces(5). | # and how to activate them. For more information, see interfaces(5). | ||
| | ||
# 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. |