the.ruffneck n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 11 Oct 2004 Posts: 2
|
Posted: Mon Oct 11, 2004 3:08 pm Post subject: isdn redial erst nach reboot möglich |
|
|
Hallo zusammen!
Ich habe meinen ISDN Internetzugang so konfiguriert wie es hier im Forum ("How to set up ISDN on Gentoo") vorgeschlagen wurde. Nach ein paar Änderungen, die ebenfalls im gleichen Topic stehen, habe ich es auch geschafft endlich eine ISDN Verbindung aufzubauen. Allerdings ist das Problem, dass ich mich immer nur einmal einwählen kann. Nachdem die Verbindung beendet wurde ist eine neue Einwahl erst nach einem Reboot wieder möglich. Ich vermute mal das es irgendwas mit der defaultroute zu tun hat oder mit der dynamischen IP
Hier mal die scripte die ich benutze:
Quote: | /etc/ppp/isdn-setup |
Code: |
#!/bin/bash
MYMSN=xxxxxxxxx
REMMSN=xxxxxxxxxx
MYUSER=xxxxxxx # my username at the ISP
/sbin/isdnctrl verbose 3 # verbose messages
/sbin/isdnctrl system on # ensure ISDN system is turned on
/sbin/isdnctrl addif ippp0 # add the interface
/sbin/isdnctrl eaz ippp0 $MYMSN
/sbin/isdnctrl l2_prot ippp0 hdlc
/sbin/isdnctrl l3_prot ippp0 trans
/sbin/isdnctrl encap ippp0 syncppp # we will use syncPPP
/sbin/isdnctrl dialmode ippp0 manual # dialmode manual
/sbin/isdnctrl addphone ippp0 out $REMMSN # ISP's number
/sbin/isdnctrl huptimeout ippp0 300 # set timeout
/sbin/isdnctrl dialmax ippp0 4 # set redial count to 4
/sbin/ipppd user $MYUSER remotename $REMNAME defaultroute name $MYUSER -detach mru 1524 mtu 1500 lcp-restart 1 /dev/ippp0 &
|
Quote: | /etc/ppp/isdn-initialise |
Code: |
#!/bin/bash
MYUSER=xxxxxx # my username at the ISP
REMNAME=xxxxx # name of ISP's system
REMMSN=xxxxxxxx # number of ISP
MYIP=10.0.0.1 # my fixed IP number
/sbin/ifconfig ippp0 $MYIP pointopoint
/sbin/ifconfig ippp0 -arp -broadcast # don't allow arps and broadcasts
/sbin/route add $MYIP ippp0
/sbin/route add default netmask 0 ippp0 # all non-local traffic goes to ippp0
/sbin/ipppd user $MYUSER remotename $REMNAME defaultroute /dev/ippp0
|
Quote: | /etc/ppp/options.ippp0 |
Code: |
/dev/ippp0
lock
ipcp-accept-local
ipcp-accept-remote
noipdefault
usepeerdns
deldefaultroute
defaultroute
user "xxxxxxxx"
|
Quote: | /etc/conf.d/local.start |
Code: |
/etc/ppp/isdn-setup 1>&2
/etc/ppp/isdn-initialise 1>&2
|
Code: |
#!/bin/sh
[ -f /etc/ppp/ip-up.local ] && . /etc/ppp/ip-up.local
/sbin/route add default ippp0
|
Wenn ich mich dann das zweitemal mit isdnctrl dial ippp0 einwähle wird die Verbindung sorfot mit "remote hangup" beendet. Ich bedanke mich schon mal für eure Hilfe. |
|