Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Jul 2000 12:57:31 +0100
From:      "Roberto Nunnari, AGIE" <roberto.Nunnari@agie.ch>
To:        Miklos Niedermayer <mico@bsd.hu>
Cc:        Udo Schweigert <ust@cert.siemens.de>, isdn@freebsd.org
Subject:   Re: AVM Fritz!Card pnp
Message-ID:  <397ED22B.535B891B@agie.ch>
References:  <390EB6D8.1089A80A@agie.ch> <20000502122511.A66256@alaska.cert.siemens.de> <390EBD65.2EBDDEFA@agie.ch> <20000502124235.A66656@alaska.cert.siemens.de> <392CF53E.DE8CC0B4@agie.ch> <20000525112228.A53021@alaska.cert.siemens.de> <397C2D82.76A4F9DC@agie.ch> <20000724130727.A94126@alaska.cert.siemens.de> <20000724145702.F314@bsd.hu>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi there.

Yesterday I tried to configure the system but have problems:

I'm using isdn4bsd version (taken from the readme file):
  beta Version 0.90.29 / May 2000
installed from:
  i4b-00.90.29-dev-050500.tar.gz

The system is FreeBSD 4.0-RELEASE

I'm not sure if I did something wrong or there's something
wrong with my isdn line. I don't have a isdn phone to check
the line...

Upon reboot I have on /var/log/messages
=======================================================
Jul 26 09:55:40 sunny /kernel: avail memory = 62070784 (60616K bytes)
Jul 26 09:55:40 sunny /kernel: Preloaded elf kernel "kernel" at
0xc02e2000.
Jul 26 09:55:40 sunny /kernel: Preloaded userconfig_script
"/boot/kernel.conf" at 0xc02e209c.
Jul 26 09:55:40 sunny /kernel: md0: Malloc disk
Jul 26 09:55:40 sunny /kernel: npx0: <math processor> on motherboard
Jul 26 09:55:40 sunny /kernel: npx0: INT 16 interface
Jul 26 09:55:40 sunny /kernel: pcib0: <Host to PCI bridge> on
motherboard
Jul 26 09:55:40 sunny /kernel: pci0: <PCI bus> on pcib0
Jul 26 09:55:40 sunny /kernel: pcib2: <VIA 82C598MVP (Apollo MVP3)
PCI-PCI (AGP) bridge> at device 1.0 on pci0
Jul 26 09:55:40 sunny /kernel: pci1: <PCI bus> on pcib2
Jul 26 09:55:40 sunny /kernel: pci1: <ATI Mach64-GZ graphics
accelerator> at 0.0 irq 11
Jul 26 09:55:40 sunny /kernel: isab0: <VIA 82C586 PCI-ISA bridge> at
device 7.0 on pci0
Jul 26 09:55:40 sunny /kernel: isa0: <ISA bus> on isab0
Jul 26 09:55:40 sunny /kernel: atapci0: <VIA 82C586 ATA33 controller>
port 0xe000-0xe00f at device 7.1 on pci0
Jul 26 09:55:40 sunny /kernel: ata0: at 0x1f0 irq 14 on atapci0
Jul 26 09:55:40 sunny /kernel: pci0: <unknown card> (vendor=0x1274,
dev=0x1371) at 11.0 irq 10
Jul 26 09:55:40 sunny /kernel: pcib1: <Host to PCI bridge> on
motherboard
Jul 26 09:55:40 sunny /kernel: pci2: <PCI bus> on pcib1
Jul 26 09:55:40 sunny /kernel: fdc0: <NEC 72065B or clone> at port
0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
Jul 26 09:55:40 sunny /kernel: fdc0: FIFO enabled, 8 bytes threshold
Jul 26 09:55:40 sunny /kernel: fd0: <1440-KB 3.5" drive> on fdc0 drive 0
Jul 26 09:55:40 sunny /kernel: atkbdc0: <keyboard controller (i8042)> at
port 0x60-0x6f on isa0
Jul 26 09:55:40 sunny /kernel: atkbd0: <AT Keyboard> irq 1 on atkbdc0
Jul 26 09:55:40 sunny /kernel: psm0: <PS/2 Mouse> irq 12 on atkbdc0
Jul 26 09:55:40 sunny /kernel: psm0: model MouseMan+, device ID 0
Jul 26 09:55:40 sunny /kernel: vga0: <Generic ISA VGA> at port
0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
Jul 26 09:55:40 sunny /kernel: sc0: <System console> on isa0
Jul 26 09:55:40 sunny /kernel: sc0: VGA <16 virtual consoles,
flags=0x200>
Jul 26 09:55:40 sunny /kernel: sio0 at port 0x3f8-0x3ff irq 4 flags 0x10
on isa0
Jul 26 09:55:40 sunny /kernel: sio0: type 16550A
Jul 26 09:55:40 sunny /kernel: sio1 at port 0x2f8-0x2ff irq 3 on isa0
Jul 26 09:55:40 sunny /kernel: sio1: type 16550A
Jul 26 09:55:40 sunny /kernel: ppc0: <Parallel port> at port 0x378-0x37f
irq 7 on isa0
Jul 26 09:55:40 sunny /kernel: ppc0: Generic chipset (NIBBLE-only) in
COMPATIBLE mode
Jul 26 09:55:40 sunny /kernel: lpt0: <Printer> on ppbus0
Jul 26 09:55:40 sunny /kernel: lpt0: Interrupt-driven port
Jul 26 09:55:40 sunny /kernel: ed0 at port 0x280-0x29f iomem 0xd8000 irq
5 drq 0 on isa0
Jul 26 09:55:40 sunny /kernel: ed0: address 00:50:bf:0c:ac:4a, type
NE2000 (16 bit) 
Jul 26 09:55:40 sunny /kernel: ifpnp0: <AVM Fritz!Card PnP> at port
0x200-0x21f irq 9 on isa0
Jul 26 09:55:40 sunny /kernel: ifpnp0: AVM Fritz!Card PnP Class 0xff
Revision 255 
Jul 26 09:55:40 sunny /kernel: ifpnp0: ISAC 2085 Version A1/A2 or
2086/2186 Version 1.1 (IOM-2)
Jul 26 09:55:40 sunny /kernel: ifpnp0: passive stack unit 0
Jul 26 09:55:40 sunny /kernel: i4b: ISDN call control device attached
Jul 26 09:55:40 sunny /kernel: i4bctl: ISDN system control port attached
Jul 26 09:55:40 sunny /kernel: i4bipr: 4 IP over raw HDLC ISDN device(s)
attached
Jul 26 09:55:40 sunny /kernel: i4btel: 4 ISDN telephony interface
device(s) attached
Jul 26 09:55:40 sunny /kernel: i4brbch: 4 raw B channel access device(s)
attached
Jul 26 09:55:40 sunny /kernel: i4btrc: 4 ISDN trace device(s) attached
Jul 26 09:55:40 sunny /kernel: ad0: 9770MB <Maxtor 91021U2>
[19852/16/63] at ata0-master using UDMA33
Jul 26 09:55:40 sunny /kernel: acd0: CDROM <LTN483L> at ata0-slave using
PIO4
Jul 26 09:55:40 sunny /kernel: Mounting root from ufs:/dev/ad0s1a
Jul 26 09:55:40 sunny named[92]: starting.  named 8.2.2-P5-NOESW Mon Mar
20 20:43:54 GMT 2000 
root@monster.cdrom.com:/usr/obj/usr/src/usr.sbin/named
Jul 26 09:55:40 sunny named[92]: limit files set to fdlimit (1024)
Jul 26 09:55:40 sunny named[93]: Ready to answer queries.
Jul 26 09:55:43 sunny /kernel: i4b-L1 timer3_expired: state = F4
Awaiting Signal
Jul 26 09:55:43 sunny /kernel: i4b-L1 ifpnp_recover:   ISAC: ISTA = 0xff
Jul 26 09:55:43 sunny /kernel: i4b-L1 ifpnp_recover:   ISAC: EXIR = 0x0
Jul 26 09:55:43 sunny /kernel: i4b-L1 ifpnp_recover:   ISAC: CISQ = 0x2e
Jul 26 09:55:43 sunny /kernel: i4b-L1 ifpnp_recover:   ISAC: IMASK =
0x2a
Jul 26 09:55:43 sunny /kernel: i4b-L2 i4b_T202_timeout: unit 0, N202 = 3
Jul 26 09:55:43 sunny /kernel: i4b-L1 ifpnp_ph_data_req: still in state
F3!
Jul 26 09:55:45 sunny /kernel: i4b-L3 T303_timeout: SETUP not answered,
cr = 43
Jul 26 09:55:45 sunny /kernel: i4b-L3 next_l3state: FSM illegal state,
state = ST_OW - Out Wait EST, event = EV_T303EXP - T303 timeout!
Jul 26 09:55:45 sunny /kernel: i4b-L1 timer3_expired: state = F4
Awaiting Signal
Jul 26 09:55:45 sunny /kernel: i4b-L1 ifpnp_recover:   ISAC: ISTA = 0x2e
Jul 26 09:55:45 sunny /kernel: i4b-L1 ifpnp_recover:   ISAC: CISQ = 0x3e
Jul 26 09:55:45 sunny /kernel: i4b-L1 ifpnp_recover:   ISAC: IMASK =
0x2a
Jul 26 09:57:37 sunny login: ROOT LOGIN (root) ON ttyv1
=======================================================

As you see the AVM Fritz!Card PnP is recognized and all i4b
drivers are attached. But then something goes wrong.
Does that mean that the card don't receive any signal from
the ISDN BOX?


and /var/log/ppp.log
=======================================================
Jul 26 10:00:00 sunny newsyslog[191]: logfile turned over
Jul 26 10:00:04 sunny ppp[73]: tun0: Phase: deflink: /dev/i4brbch0: No
carrier (increase ``set cd'' from 6 ?) 
Jul 26 10:00:04 sunny ppp[73]: tun0: Phase: deflink: Disconnected! 
Jul 26 10:00:04 sunny ppp[73]: tun0: Phase: deflink: carrier -> hangup 
Jul 26 10:00:04 sunny ppp[73]: tun0: Phase: deflink: Connect time: 6
secs: 0 octets in, 0 octets out 
Jul 26 10:00:04 sunny ppp[73]: tun0: Phase:  total 0 bytes/sec, peak 0
bytes/sec on Wed Jul 26 10:00:04 2000 
Jul 26 10:00:04 sunny ppp[73]: tun0: Phase: deflink: hangup -> opening 
Jul 26 10:00:04 sunny ppp[73]: tun0: Phase: deflink: Enter pause (10)
for redialing. 
Jul 26 10:00:14 sunny ppp[73]: tun0: Phase: deflink: Redial timer
expired. 
Jul 26 10:00:14 sunny ppp[73]: tun0: Phase: Phone: 1055411055 
Jul 26 10:00:14 sunny ppp[73]: tun0: Phase: deflink: Connected! 
Jul 26 10:00:14 sunny ppp[73]: tun0: Phase: deflink: opening -> dial 
Jul 26 10:00:14 sunny ppp[73]: tun0: Chat: deflink: Dial attempt 6 of 6 
Jul 26 10:00:14 sunny ppp[73]: tun0: Phase: deflink: dial -> carrier 
Jul 26 10:00:20 sunny ppp[73]: tun0: Phase: deflink: /dev/i4brbch0: No
carrier (increase ``set cd'' from 6 ?) 
Jul 26 10:00:20 sunny ppp[73]: tun0: Phase: deflink: Disconnected! 
Jul 26 10:00:20 sunny ppp[73]: tun0: Phase: deflink: carrier -> hangup 
Jul 26 10:00:20 sunny ppp[73]: tun0: Phase: deflink: Connect time: 6
secs: 0 octets in, 0 octets out 
Jul 26 10:00:20 sunny ppp[73]: tun0: Phase:  total 0 bytes/sec, peak 0
bytes/sec on Wed Jul 26 10:00:20 2000 
Jul 26 10:00:20 sunny ppp[73]: tun0: Phase: deflink: hangup -> closed 
Jul 26 10:00:20 sunny ppp[73]: tun0: Phase: bundle: Dead 
Jul 26 10:00:24 sunny ppp[73]: tun0: Phase: bundle: Establish 
Jul 26 10:00:24 sunny ppp[73]: tun0: Phase: deflink: closed -> opening 
Jul 26 10:00:30 sunny ppp[73]: tun0: Phase: deflink: Redial timer
expired. 
Jul 26 10:00:30 sunny ppp[73]: tun0: Phase: Phone: 1055411055 
Jul 26 10:00:30 sunny ppp[73]: tun0: Phase: deflink: Connected! 
Jul 26 10:00:30 sunny ppp[73]: tun0: Phase: deflink: opening -> dial 
Jul 26 10:00:30 sunny ppp[73]: tun0: Chat: deflink: Dial attempt 1 of 6 
etc...
=======================================================

ifconfig -a
=======================================================
ed0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
	inet 192.168.1.1 netmask 0xffffff00 broadcast 192.168.1.255
	ether 00:50:bf:0c:ac:4a 
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
	inet 127.0.0.1 netmask 0xff000000 
ipr0: flags=810<POINTOPOINT,SIMPLEX> mtu 1500
ipr1: flags=810<POINTOPOINT,SIMPLEX> mtu 1500
ipr2: flags=810<POINTOPOINT,SIMPLEX> mtu 1500
ipr3: flags=810<POINTOPOINT,SIMPLEX> mtu 1500
tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500
	inet 10.0.0.1 --> 10.0.0.2 netmask 0xffffff00 
	inet 172.16.0.1 --> 212.0.0.0 netmask 0xffffff00 
	Opened by PID 73
=======================================================

/etc/rc.conf
=======================================================
# This file now contains just the overrides from /etc/defaults/rc.conf
# please make all changes to this file.

# -- sysinstall generated deltas -- #
linux_enable="YES"
moused_enable="YES"
keymap="swissgerman.iso"

hostname="sunny.noonlights.net"
network_interfaces="ed0 lo0 tun0"
ifconfig_ed0="inet 192.168.1.1  netmask 255.255.255.0"
ifconfig_tun0=""

# per ISDN
ppp_enable="YES"
ppp_profile="libero-isdn"
isdn_enable="YES"
isdn_fsdev="NO"

# some more network daemon
gateway_enable="YES"
named_enable="YES"
sendmail_enable="NO"
nfs_server_enable="YES"
mountd_flags="-nr"
=======================================================

when I used a modem had a file /etc/start_if.tun0 and

network_interfaces="ed0 lo0 tun0"
ifconfig_ed0="inet 192.168.1.1  netmask 255.255.255.0"
ifconfig_tun0=""

these lines in rc.conf

now I corrected rc.conf as above and removed start_if.tun0

Is that correct?

/etc/isdn/isdnd.rc
=======================================================
#------------------------------------------------------------------------------
#
#	example of a configuration file for the isdn daemon
#	---------------------------------------------------
#
# $FreeBSD: src/etc/isdn/isdnd.rc.sample,v 1.2 1999/08/27 23:23:58 peter
Exp $
#
#	last edit-date: [Tue Jan 19 16:30:12 1999]
#
#	NOTICE:
#	=======
#	This configuration file is an EXAMPLE only and MUST be edited
#	carefully to get the desired results!
#
#	Please read the "isdnd.rc" manual page (execute "man isdnd.rc")
#	for reference !
#
#------------------------------------------------------------------------------

#==============================================================================
# SYSTEM section: isdnd global configuration parameters
#==============================================================================
system

# accounting
# ----------

acctall		= on			# generate info for everything
acctfile	= /var/log/isdnd.acct	# name & location of accounting file
useacctfile	= yes			# generate accouting info to file

# Monitor
# -------

monitor-allowed	= no			# global switch: monitor on/off
monitor-port	= 451			# default monitor TCP port

# Monitor rights are granted due to the most specific host/net spec,
i.e. in 
# the example below host 192.168.1.2 will have the rights specified on
that
# line, even so it belongs to net 192.168.1.0/24 as well.
#
# A monitor specification may either be:
#
#  - the name of a local (UNIX-domain) socket; this MUST start with a
"/"
monitor		= "/var/run/isdn-monitor" 
monitor-access	= fullcmd
monitor-access	= channelstate, logevents
monitor-access	= callin, callout
#
#  - a dotted-quad host spec
#monitor		= "192.168.1.2"
#monitor-access	= restrictedcmd, channelstate, callin, callout
#
#  - a dotted-quad net spec with "/len" (CIDR-style) netmask spec
#monitor		= "192.168.1.0/24"
#monitor-access	= restrictedcmd, channelstate, callin, callout
#
#  - a resolveable host name
#monitor		= "rumolt"
#monitor-access	= restrictedcmd, channelstate, callin, callout
#
#  - a resolveable net name with "/len" netmask (s.a.) appended
#monitor		= "up-vision-net/24"
#monitor-access	= restrictedcmd, channelstate, callin, callout

# ratesfile
# ---------

ratesfile	= /etc/isdn/isdnd.rates	# name & location of rates file

# regular expression pattern matching
# -----------------------------------

#regexpr	= "connected.*XXX"	# look for matches in log messages
#regprog	= connectXXX		# execute program when match is found

# realtime priority section
# -------------------------

rtprio		= 25			# modify isdnd's process priority

#=======================================================================
# entry section: PPP example
#======================================================================
entry
name			= I4BPPP
usrdevicename		= rbch
usrdeviceunit		= 0
isdncontroller  	= 0
isdnchannel		= -1
local-phone-incoming	= 0332551018
remote-phone-incoming	= 1055411055
local-phone-dialout	= 0332551018
remote-phone-dialout	= 1055411055
remdial-handling	= first
dialin-reaction		= reject
dialout-type		= normal
b1protocol		= hdlc
#idletime-incoming	= 240
idletime-outgoing	= 240
ratetype		= 0  
unitlength		= 90
unitlengthsrc		= rate
dialretries		= 3
dialrandincr		= on
recoverytime		= 25
usedown			= off
downtries		= 2
downtime		= 30

# EOF
#########################################################################
=======================================================

/etc/ppp/ppp.conf
=======================================================
#################################################################
# PPP  Sample Configuration File
# Originally written by Toshiharu OHNO
# Simplified 5/14/1999 by wself@cdrom.com
#
# $FreeBSD: src/etc/ppp/ppp.conf,v 1.2 1999/08/27 23:24:08 peter Exp $
#################################################################

default:
 set device /dev/cuaa0
 set log Phase Chat LCP IPCP CCP tun command
 set speed 115200
 set redial 10 6
 set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" AT OK-AT-OK
ATE1Q0M0 OK \\dATX3DT\\T TIMEOUT 40 CONNECT"

 set timeout 120
 set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
 add default HISADDR
# enable dns
# allow users

libero-isdn:
 set enddisc mac
 enable lqr
 set reconnect 3 5
 set lqrperiod 45
 disable pred1 deflate
 deny pred1 deflate
 set timeout 60 300
 set dial
 set login
 set hangup

 set device /dev/i4brbch0
 set speed sync
 set bandwidth 65536
 link * set cd 6
 set ifaddr 172.16.0.1/0 212.0.0.0/0
 add! default hisaddr

 set phone 1055411055
# set mrru 1500
# clone 1,2
# link deflink rm
# link * set mode auto
# set autoload 10 100 30
 set authkey mykey
 set authname myname
=======================================================

/etc/ppp/ppp.conf
=======================================================

-- 
              Roberto Nunnari -software engineer-
                mailto:roberto.nunnari@agie.ch
 AGIE - http://www.agie.com
 Via dei pioppi 16                      tel: +41-91-8069138
 6616 Losone                """
 Switzerland               (o o)
=======================oOO==(_)==OOo========================
    MY OPNIONS ARE NOT NECESSARELY THOSE OF MY EMPLOYER


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-isdn" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?397ED22B.535B891B>