* Montag, 15. Juli 2002 um 21:07 (+0200) schrieb Florian Gross:
* Martin Falley
textete am 15.07.02: pinguin:/home/martin # less /etc/route.conf 192.168.1.0 0.0.0.0 255.255.255.0
-------^
default 192.168.1.1 ------^ Und das soll gehen? Wo stehen die devices? Der arme Kerl weiß doch gar nicht, wohin das ganze Zeugs soll... jedenfalls nach dem, was aus der route.conf kommt...
Das geht (oder besser: ging bis 7.3) schon so mit der Default-Route... Das Device "ergibt" sich aus der Netzwerk-Route.
Meine sieht so aus: (ich hab absichtlich die default auskommentiert)
# 192.168.0.1 0.0.0.0 255.255.255.255 ippp0 # default 192.168.0.1 192.168.0.0 0.0.0.0 255.255.255.0 eth0 # 192.168.0.1 0.0.0.0 255.255.255.255 ippp0 192.168.0.1 0.0.0.0 255.255.255.255 ippp1
Und keine blöden Kommentare jetzt.
Ach schade... ;-)
Mein Routing macht, was es soll. ;-)
Naja, aber ist es auch schön...? ;-)
florian:/home/florian # route -n Kernel IP Routentabelle Ziel Router Genmask Iface 192.168.0.1 0.0.0.0 255.255.255.255 ippp1 192.168.0.1 0.0.0.0 255.255.255.255 ippp1 192.168.0.1 0.0.0.0 255.255.255.255 ippp0 192.168.0.0 0.0.0.0 255.255.255.0 eth0 192.168.0.0 0.0.0.0 255.255.255.0 eth0 florian:/home/florian #
Irgendwo anders kommen da auch Beiträge zur Routing- Tabelle...
Oder warum sonst ist eth0 und ippp1 doppelt drin, und ippp0, das gar nicht drin sein dürfte, einmal?
Weil im "Normalfall" alle Einträge ausser dem "default"-Eintrag in
/etc/route.conf überflüssig sind. Der Kernel (oder ifconfig?) legt die
"normale" Netzwerk-Route schon beim "ifconfig <blablub> up"
an. (Deshalb hast du auch eine Route für ippp0, obwohl sie nicht in
/etc/route.conf angegeben ist.)
Und wenn danach 'rcroute' so eine /etc/route.conf wie oben auswertet
und die Routen noch einmal anlegt, dann sind sie halt doppelt...
Gruß
Andreas
--
Andreas Könecke "Andreas Koenecke