Re: [gull] ajout de routes réseau ubuntu
sneaky56 at gmx.net
sneaky56 at gmx.net
Fri Apr 25 16:03:11 CEST 2008
> Von: Yann Sagon <ypublic at hasa.ch>
> Je cherchais une manière d'ajouter une ou plusieurs routes, pas à
> configurer spécifiquement une gateway et donc je vais plutôt rester sur
> ifup.d
Ici (Debian 4.0), j'ai dans /etc/network/interfaces (légèrement anonymisé):
auto eth0
iface eth0 inet static
address 10.10.24.24
netmask 255.255.255.0
network 10.10.24.0
broadcast 10.10.24.255
gateway 10.10.24.1
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 10.10.24.21 10.10.24.22
dns-search EXAMPLE.COM
auto eth1
iface eth1 inet static
address 10.10.14.249
netmask 255.255.255.0
network 10.10.14.0
broadcast 10.10.14.255
# static routes
up route add -net 10.10.78.0/24 gw 10.10.14.1
down route del -net 10.10.78.0/24 gw 10.10.14.1
up route add -net 10.10.240.0/24 gw 10.10.14.1
down route del -net 10.10.240.0/24 gw 10.10.14.1
En espérant que ça aide...
tom
--
Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten
Browser-Versionen downloaden: http://www.gmx.net/de/go/browser
More information about the gull
mailing list