Warning: deflink: /dev/i4bisppp: Bad file descriptor

From: Mario Schroeder <schroeder(at)smi-glauchau.de>
Date: Fri, 26 Apr 2002 15:47:47 +0200

Hallo Leute!

ich möchte mit FreeBSD 4.5 und einer ISDN-Karte (AVM A1) eine
Internetverbindung zu Freenet herstellen. Ich weiß, das dieses Thema in der
Vergangenheit schon mehrfach diskutiert wurde, ich habe auch einige Beiträge
gelesen, aber ich komme einfach nicht weiter. Also hier nun ein paar
Eckdaten:

Allgemein:
----------
- FreeBSD 4.5 Stable
- A1-ISDN-Karte
- i4b 0.96 beta

PPP-Einwahl zu Freenet:
-----------------------
- Einwahlnummer: 01019019231750 (Benutzername und Passwort beliebig, ich
habe jeweils "freenet" gewählt)
- DNS-Server: 62.104.191.241 und 62.104.196.134
- dyn. IP-Adresse (z.B. 213.7.76.170)
- Gateway ist wahrscheinlich immer die zugewiesene IP-Adresse! So war es
zumindest bei meinen Verbindungen mit NT.

ISDN-Karte ist im Kernel eingebunden, Meldungen:
------------------------------------------------
isic0 at port
0x1b40-0x1b5f,0x1720-0x173f,0x720-0x73f,0xf20-0xf3f,0x1340-0x135f,0x340-0x35
f,0xb40-0xb5f irq 5 flags 0x4 on isa0
isic0: passive stack unit 0
isic0: AVM A1 or Fritz!Card Classic
de0: enabling 10baseT port
i4bctl: ISDN system control port attached
i4btrc: 4 ISDN trace device(s) attached
i4bisppp: 4 ISDN SyncPPP device(s) attached (VJ header compression)
i4b: ISDN call control device attached
i4btel: 2 ISDN telephony interface device(s) attached
i4brbch: 4 raw B channel access device(s) attached
i4bipr: 4 IP over raw HDLC ISDN device(s) attached (VJ header compression)

isdnd.rc
--------
system
acctall = on
acctfile = /var/log/isdnd.acct
useacctfile = yes
monitor-allowed = yes
monitor-port = 451
monitor = "/var/run/isdn-monitor"
monitor-access = fullcmd
monitor-access = channelstate, logevents
monitor-access = callin, callout
monitor = "192.168.0.1"
monitor-access = restrictedcmd, channelstate, callin, callout
rtprio = 25

controller
protocol=dss1

entry
name = Freenet
usrdevicename = isp
usrdeviceunit = 0
isdncontroller = 0
isdnchannel = -1
local-phone-dialout = 123456
remote-phone-dialout = 01019019231750
remdial-handling = first
dialin-reaction = ignore
dialout-type = normal
b1protocol = hdlc
idletime-incoming = 30
idletime-outgoing = 30
ratetype = 0
unitlength = 60
dialretries = 3
dialrandincr = off
recoverytime = 5
usedown = off
downtries = 2
downtime = 30
#connectprog = /isdn-connect
#disconnectprog = /isdn-disconnect
ppp-send-auth = pap
ppp-send-name = freenet
ppp-send-password = freenet

rc.conf
-------
hostname="bolide.home"
ifconfig_de0="inet 192.168.0.1 netmask 255.255.255.0"
router_enable="NO"
kern_securelevel_enable="NO"
linux_enable="YES"
moused_enable="YES"
moused_port="/dev/cuaa0"
moused_type="microsoft"
nfs_reserved_port_only="YES"
sendmail_enable="YES"
sshd_enable="YES"
usbd_enable="YES"
keymap="german.cp850"
isdn_enable="YES"
isdn_trace="YES"

resolv.conf
-----------
domain http://www.freenet.de
nameserver 62.104.191.241
nameserver 62.104.196.134

ppp.conf
--------
default:
 set log Phase Chat LCP IPCP CCP tun command
 set device /dev/i4bisppp
 set speed 115200
 set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" AT OK-AT-OK ATE1Q0
OK \\dATDT\\TTIMEOUT 40 CONNECT"
 set timeout 180
 enable dns

provider:
 set phone 01019019231750
 set authname freenet
 set authkey freenet
 set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0
 add default HISADDR

ppp.log
-------
Apr 25 22:12:49 bolide ppp[395]: Phase: Using interface: tun0
Apr 25 22:12:49 bolide ppp[395]: Phase: deflink: Created in closed state
Apr 25 22:12:49 bolide ppp[395]: tun0: Command: default: set device
/dev/i4bisppp
Apr 25 22:12:49 bolide ppp[395]: tun0: Command: default: set speed 115200
Apr 25 22:12:49 bolide ppp[395]: tun0: Command: default: set dial ABORT BUSY
ABORT NO\sCARRIER TIMEOUT 5 "" AT OK-AT-OK ATE1Q0 OK \dATDT\TTIMEOUT 40
CONNECT
Apr 25 22:12:49 bolide ppp[395]: tun0: Command: default: set timeout 180
Apr 25 22:12:49 bolide ppp[395]: tun0: Command: default: enable dns
Apr 25 22:12:49 bolide ppp[395]: tun0: Phase: PPP Started (interactive
mode).
Apr 25 22:12:54 bolide ppp[395]: tun0: Command: /dev/tty: dial provider
Apr 25 22:12:54 bolide ppp[395]: tun0: Command: provider: set phone
01019019231750
Apr 25 22:12:54 bolide ppp[395]: tun0: Command: provider: set authname
freenet
Apr 25 22:12:54 bolide ppp[395]: tun0: Command: provider: set authkey
********
Apr 25 22:12:54 bolide ppp[395]: tun0: Command: provider: set ifaddr
10.0.0.1/0 10.0.0.2/0 255.255.255.0
Apr 25 22:12:54 bolide ppp[395]: tun0: Command: provider: add default
HISADDR
Apr 25 22:12:54 bolide ppp[395]: tun0: Phase: bundle: Establish
Apr 25 22:12:54 bolide ppp[395]: tun0: Phase: deflink: closed -> opening
Apr 25 22:12:54 bolide ppp[395]: tun0: Warning: deflink: /dev/i4bisppp: Bad
file descriptor
Apr 25 22:12:54 bolide ppp[395]: tun0: Chat: Failed to open device (attempt
1 of 1)
Apr 25 22:12:54 bolide ppp[395]: tun0: Phase: deflink: opening -> closed
Apr 25 22:12:54 bolide ppp[395]: tun0: Phase: bundle: Dead
Apr 25 22:13:29 bolide ppp[395]: tun0: Phase: Signal 1, terminate.
Apr 25 22:13:29 bolide ppp[395]: tun0: Phase: Signal 1, terminate.
Apr 25 22:13:29 bolide ppp[395]: tun0: Phase: PPP Terminated (normal).

Was ist deflink und wieso bad file descriptor? Bitte kann mir jemand die
Zusammenhänge erklären? Wenn ich das richtig deute, wird die ISDN-Verbindung
hergestellt, aber es geht dann nicht weiter, weil das Device nicht geöffnet
werden kann.

Schon mal herzlichen Dank.

Mario Schroeder

To Unsubscribe: send mail to majordomo(at)de.FreeBSD.org
with "unsubscribe de-bsd-questions" in the body of the message
Received on Fri 26 Apr 2002 - 15:47:54 CEST

search this site