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

First ISDN connection kills IP-route



Hello,

I habe a problem with the first ISDN connection after starting
isdnutils. Every additional route defined in device.ipppX is removed
after this first connection. If I reenter the route by hand after
this, it will work till the next start of isdnutils.

Can anybody explain me why the route is removed and how I can keep it.

Thanks,
Bernd



Here the most important from my device.ippp4
-------------------------------------------- 
LOCALIP=10.0.0.1	# XXX_
REMOTEIP=192.168.53.1	# XXX_
case "$1" in
start)
 ifconfig ${device} $LOCALIP pointopoint $REMOTEIP netmask 255.255.255.255
 ifconfig ${device} up
 route del -host $REMOTEIP ${device} 2>/dev/null
 route add -host $REMOTEIP ${device}
 #route del -net 192.168.51.0 netmask 255.255.255.0 gw $REMOTEIP  2>/dev/null
 route add -net 192.168.51.0 netmask 255.255.255.0 gw $REMOTEIP   
stop)
 route del $REMOTEIP $device	2> /dev/null
 route del -net 192.168.51.0 netmask 255.255.255.0 gw $REMOTEIP  2>/dev/null
 

After starting isdnutils I get the following routes:
---------------------------------------------------------------
Casandra:/etc/isdn# /etc/init.d/isdnutils restart
Restarting isdn services :.
Casandra:/etc/isdn# route
Kernel IP Routentabelle
Ziel            Router          Genmask         Flags Metric Ref    Use Iface
1.1.1.1         *               255.255.255.255 UH    0      0        0 ippp0
192.168.53.1    *               255.255.255.255 UH    0      0        0 ippp4
192.168.51.0    192.168.53.1    255.255.255.0   UG    0      0        0 ippp4
localnet        *               255.255.255.0   U     0      0        0 eth0
default         *               0.0.0.0         U     0      0        0 ippp0


After a Ping to 192.168.51.3 the additional route is removed. A
Connection above the default-route is established, too.
----------------------------------------------------------------------
Casandra:/etc/isdn# ping 192.168.51.3
PING 192.168.51.3 (192.168.51.3): 56 data bytes

--- 192.168.51.3 ping statistics ---
11 packets transmitted, 0 packets received, 100% packet loss
Casandra:/etc/isdn# route
Kernel IP Routentabelle
Ziel            Router          Genmask         Flags Metric Ref    Use Iface
192.168.53.1    *               255.255.255.255 UH    0      0        0 ippp4
192.168.1.0     *               255.255.255.0   U     0      0        0 ippp6
localnet        *               255.255.255.0   U     0      0        0 eth0
193.0.0.0       *               255.0.0.0       U     0      0        0 ippp0
193.0.0.0       *               255.0.0.0       U     0      0        0 ippp0
default         *               0.0.0.0         U     0      0        0 ippp0


After readding the additional route it is working till the nexht
startup of isdnutils.
----------------------------------------------------------------------
Casandra:/etc/isdn# route add -net 192.168.51.0/24 gw 192.168.53.1
Casandra:/etc/isdn# route
Kernel IP Routentabelle
Ziel            Router          Genmask         Flags Metric Ref    Use Iface
192.168.53.1    *               255.255.255.255 UH    0      0        0 ippp4
192.168.51.0    192.168.53.1    255.255.255.0   UG    0      0        0 ippp4
localnet        *               255.255.255.0   U     0      0        0 eth0
193.0.0.0       *               255.0.0.0       U     0      0        0 ippp0
193.0.0.0       *               255.0.0.0       U     0      0        0 ippp0
default         *               0.0.0.0         U     0      0        0 ippp0
Casandra:/etc/isdn# ping 192.168.51.3
PING 192.168.51.3 (192.168.51.3): 56 data bytes
64 bytes from 192.168.51.3: icmp_seq=3 ttl=254 time=517.4 ms
64 bytes from 192.168.51.3: icmp_seq=2 ttl=254 time=1527.6 ms
64 bytes from 192.168.51.3: icmp_seq=1 ttl=254 time=2539.8 ms
64 bytes from 192.168.51.3: icmp_seq=4 ttl=254 time=33.2 ms

--- 192.168.51.3 ping statistics ---
5 packets transmitted, 4 packets received, 20% packet loss
round-trip min/avg/max = 33.2/1154.5/2539.8 ms



Reply to: