Hallo Liste, jetzt ist es Freitag und ich hab ein Phänomen : netstat -nr vor der Einwahl zum Provider : Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 192.10.60.1 0.0.0.0 255.255.255.255 UH 0 0 0 ippp2 192.10.50.1 0.0.0.0 255.255.255.255 UH 0 0 0 ippp1 1.1.1.1 0.0.0.0 255.255.255.255 UH 0 0 0 ippp0 192.10.12.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo 0.0.0.0 1.1.1.1 0.0.0.0 UG 0 0 0 ippp0 netstat -nr gleich nach der Einwahl : Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 192.10.60.1 0.0.0.0 255.255.255.255 UH 0 0 0 ippp2 192.10.50.1 0.0.0.0 255.255.255.255 UH 0 0 0 ippp1 192.10.12.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 193.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 ippp0 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo Wo ist mein default gw hin ? Hier ist mein ip-up #!/bin/sh BASENAME=`basename $0` INTERFACE=$1 DEVICE=$2 SPEED=$3 LOCALIP=$4 REMOTEIP=$5 case "$INTERFACE" in ippp*) . /etc/rc.config # find the device found=0 for I in $NETCONFIG; do eval NETDEV=\$NETDEV$I if [ $NETDEV = $INTERFACE ]; then found=1 break; fi done if [ $found -eq 0 ]; then echo "Device '$INTERFACE' not configured in '/etc/rc.config'" exit 1 fi eval IFCONFIG=\$IFCONFIG$I DEST=`grep -v "^#" /etc/route.conf | grep "$INTERFACE\$" | awk '{ print $1}'` DEFAULT=`grep -v "^#" /etc/route.conf | grep default | awk '{ print $2}'` case "$BASENAME" in ip-up) if["$INTERFACE"='ippp0'];then echo `date` >> /var/log/ip-up.log /sbin/route add default gw $REMOTEIP dev $INTERFACE /sbin/ifconfig $INTERFACE dynamic # Get the nameservers (works with ipppd option ms-get-dns): if["$MS_DNS1"];then rm -f /etc/ppp/resolv.prev if[ -f /etc/ppp/resolv.conf];then cp -p /etc/ppp/resolv.conf /etc/resolv.prev grep domain /etc/ppp/resolv.prev > /etc/resolv.conf grep search /etc/ppp/resolv.prev >> /etc/resolv.conf echo "nameserver $MS_DNS1" >> /etc/resolv.conf echo "nameserver $MS_DNS2" >> /etc/resolv.conf echo "Modified /etc/resolv.conf for DNS at $INTERFACE" else echo "nameserver $MS_DNS1" >> /etc/resolv.conf echo "nameserver $MS_DNS2" >> /etc/resolv.conf chmod 644 /etc/resolv.conf echo "Installed /etc/resolv.conf for DNS at $INTERFACE" fi fi # call ip-up.local if it exists and is executable: test -x /etc/ppp/ip-up.local && /etc/ppp/ip-up.local $* ;; ip-down) if ["$INTERFACE"='ippp0'];then #Restore the nameservers (got with ipppd option ms-get-dns): if[-n "$MS_DNS1"];then if[-f /etc/ppp/resolv.prev];then cp -fp /etc/ppp/resolv.prev /etc//resolv.conf echo "Restored original /etc/resolv.conf" #else # rm -f /etc/resolv.conf # echo "Deinstalled /etc/resolv.conf" fi fi # call ip-down.local if it exists and is executable test -x /etc/ppp/ip-down.local && /etc/ppp/ip-down.local $* fi # ippp0 # restart interface /sbin/ifconfig $INTERFACE down # workaround due to kernel problem with 'kernd': sleep 1 /sbin/ifconfig $INTERFACE $IFCONFIG /sbin/ifconfig $INTERFACE -dynamic if["$INTERFACE"='ippp0'];then /sbin/route add default gw 1.1.1.1 dev ippp0 /sbin/ifconfig ippp0 -dynamic fi # set routes from /etc/route.conf test -z "$DEST" || /sbin/route add -host $DEST dev $INTERFACE test -z "$DEFAULT" || /sbin/route add default gw $DEFAULT ;; *) ;; esac ;; esac | logger -t $BASENAME Die Verbindung wird aufgebaut, nach ping www.suse.de aber kein Plan warum keine Antwort kommt. pinge ich mit irgendeiner IP kommt network unreachable Ich habe noch einen anderen Rechner, der mit seiner ISDN-Karte simpel mit /sbin/route add default gw $5 dev $1 eine Verbindung aufbaut. Wo hängt es bei mir ? resolv.conf , route.conf, rc.config. ???? Ich denke, ich habe die schon richtig editiert. Horst
participants (1)
-
Horst