Re: route beim booten setzen - wo?
Hallo Stefan!
> da ist noch ne Frage: Ich hab das routing verändert, dass es
> funktioniert. Wo schreibe ich den route-Befehl hin, dass die route bei
> jedem Boot gesetzt wird? Da gibts doch sicher eine bestimmte Stelle.
Hier ein kleiner auszug aus man interfaces(5):
up command
Run command after bringing the interface up. This option can
be given multiple times for a single interface. If so, the commands will
be executed in order. If one of the commands fails, none of the others will
be executed, but the interface will remain configured. (You can ensure a
command never fails by suffixing "|| true".)
Das selbe gibt es fuer down, deswegen sieht ein Teil meiner
/etc/network/interfaces folgendermassen aus:
iface eth1 inet static
address 10.1.121.1
netmask 255.255.0.0
network 10.1.0.0
broadcast 10.255.255.255
up route add -net 10.0.0.0 netmask 255.0.0.0 gw 10.1.254.2
down route del -net 10.0.0.0 netmask 255.0.0.0 gw
So wird automatisch beim initialiseren der Netzwerkkarten und somit auch
beim booten die route gesetzt!
VlG Jonas
P.S.: Weiss nicht, ob es die optimale Loesung ist aber es funktioniert ;-)
--
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net
--
Zum AUSTRAGEN schicken Sie eine Mail an debian-user-german-request@lists.debian.org
mit dem Subject "unsubscribe". Probleme? Mail an listmaster@lists.debian.org (engl)
Reply to: