Ich kann von meiner Linuxbox einfach nicht meinen NT-PC anpingen. Kann mir
da jmd. helfen. Anbei die Ausdrucke von route und
ip-up. Bin für Hilfe und Tips dankbar.
Alfons
Ausdruck von route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
pclinux.riek.de * 255.255.255.255 UH 1 0 0
dummy0
ns3.idnet.de * 255.255.255.255 UH 0 0 0
ippp0
localnet * 255.255.255.0 U 0 0 0 eth0
localnet * 255.255.255.0 U 0 0 0 eth0
loopback * 255.0.0.0 U 0 0 0 lo
default * 0.0.0.0 U 0 0 0
ippp0
ip-up (Ausschnitt):
#!/bin/sh
# (c) '97, S.u.S.E. GmbH, Fuerth, Germany
# Klaus Franken
# 25.02.98
#
# Remo Behn
# 18.07.98
BASENAME=`basename $0`
INTERFACE=$1
DEVICE=$2
SPEED=$3
LOCALIP=$4
REMOTEIP=$5
if [ -z "$REMOTEIP" ]; then
echo "Usage: $0 <INTERFACE> <DEVICE> <SPEED> <LOCALIP> <REMOTEIP>"
exit 1
fi
echo "INTERFACE: $INTERFACE"
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}'`
echo "ok, NETDEV:$NETDEV; IFCONFIG:$IFCONFIG."
echo " DEST: $DEST; DEFAULT: $DEFAULT"
case "$BASENAME" in
ip-up)
....
/sbin/route add default gw $REMOTEIP dev $INTERFACE
;;
ip-down)
# restart interface
/sbin/ifconfig $INTERFACE down
# workaround due to kernel problem with 'kernd':
sleep 1
/sbin/ifconfig $INTERFACE $IFCONFIG
# flush, del all rules
# set routes from /etc/route.conf
# test -z "$DEST" || /sbin/route add -host $DEST dev $INTERFACE
# test -z "$DEFAULT" || /sbin/route add default $DEFAULT
/sbin/route add default ippp0
;;
*)
;;
esac
;;
esac
---------------------------------------------------------------------
To unsubscribe, e-mail: suse-linux-unsubscribe@suse.com
For additional commands, e-mail: suse-linux-help@suse.com