[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [Debian]: Routing mit 2.2.0-pre4



Mika Fischer <mika_fischer@gmx.net> writes:

> Ich habe aber ein ganz großes Problem:
> Irgendwas fügt jetzt auf einmal von selber Routen in die
> Routing-Table ein. Ich hab keine Ahnung, was das ist. Ich schieb es
> aber auf den Kernel.

Hat da jemand die /usr/src/linux/Documentation/Changes nicht gelesen ;-)

     Please read Documentation/networking/routing.txt and
  Documentation/networking/policy-routing.txt for more information about
  changes in routing code.  OSPF classes have been added, and interface
							      ^^^^^^^^^
  routes are generated automatically.
  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

     If for some reason you need to override this automatic default
  routing, you have to specify the complete route specification (netmask,
  device, etc.) for the kernel to accept it. Consequently, you need to
  either remove interface routes from your init scripts or add missing
  information to them if you need to replace the automatic routes.

     Also note that some routes, such as loopback routes, do not show up
  in some standard tools.  Check in /proc/net/rt_local to verify their
  presence.

> Besonders nervig ist das bei ISDN. Der ipppd gibt nämlich die IP
> zweimal an den Kernel weiter (keine Ahnung, wieso) und der Kernel
> (oder was auch immer) fügt dann auch zweimal die Route hinzu, was
> dazu führt, daß nichts mehr geht.

Ich habe zumindestens mit dem 2.1.132 keine Probleme damit.  Hier ein
Ausschnitt aus der /etc/isdn/device.ippp0-Datei:

	# Network device setup as usual. 
	# See also : ifconfig(8) route(8) or any book about unix networking.

	ifconfig ${device} up
	ifconfig ${device} $LOCALIP pointopoint $REMOTEIP
	
	# setting default route here is only useful if this is your only
	# outside connection...
	# route add default ${device}                     

Danach sieht (allerdings nach einer bereits erfolgten Verbindung) die
Routingtabelle so aus:

myrkr# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.2     0.0.0.0         255.255.255.255 UH    0      0        0 ippp1
192.168.0.0     0.0.0.0         255.255.255.0   U     0      0        0 dummy0
192.168.42.0    0.0.0.0         255.255.255.0   U     0      0        0 ippp0

(ippp1 is ein incoming device).

In der /etc/isdn/ipppd.ippp0 ist u.a. folgendes drin:

#defaultroute 		# (dont) set default route 
#hostroute		# (dont) set host route
#noproxyarp		# (dont) set an proxy arp entry

Dies alles sind Standardwerte von Debian.

Auf Wunsch kann ich dir meine gesamte ISDN-Konfiguration (abzüglich
Paßworte) zuschicken.

	Torsten

-- 
Homepage: http://www.in-berlin.de/User/myrkr
------------------------------------------------
Um sich aus der Liste auszutragen schicken Sie
bitte eine E-Mail an majordomo@jfl.de die im Body
"unsubscribe debian-user-de <deine emailadresse>"
enthaelt.
Bei Problemen bitte eine Mail an: Jan.Otto@jfl.de
------------------------------------------------
Anzahl der eingetragenen Mitglieder:     671


Reply to: