Skip site navigation (1)Skip section navigation (2)
Date:      16 Jan 2000 14:28:48 +0100
From:      Roland Jesse <jesse@mail.CS.Uni-Magdeburg.De>
To:        freebsd-isdn@FreeBSD.ORG
Subject:   Re: ifconfig error when setting up isp0
Message-ID:  <0viu0u2lin.fsf@cs.uni-magdeburg.de>
In-Reply-To: "Richard Arends"'s message of "Sun, 16 Jan 2000 13:24:07 %2B0100"
References:  <20000115185036.A2360@birne-atm.cs.uni-magdeburg.de> <005001bf601c$98cd37c0$0200000a@arends.hobby.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
"Richard Arends" <r.a.arends@kader.hobby.nl> writes:

> Try this...
> 
> ifconfig isp0 0.0.0.0 0.0.0.1 netmask 0xffffffff link1
> route delete default
> route add default -interface isp0

Thanks, I will try that out as soon as I am back at home.

This morning I was investigating a bit more into it.

When trying to open a connection with 'telnet 141.44.10.1', I get the
following syslog messages:

------- snip -------
Jan 16 10:53:24 arthur /kernel: i4b-L1-timer3_expired: state = F4 Awaiting Signal
Jan 16 10:53:24 arthur /kernel: i4b-L1-isic_recover: HSCX B: ISTA = 0x0
Jan 16 10:53:24 arthur /kernel: i4b-L1-isic_recover:   ISAC: ISTA = 0x0
Jan 16 10:53:24 arthur /kernel: i4b-L1-isic_recover: HSCX B: IMASK = 0x0
Jan 16 10:53:24 arthur /kernel: i4b-L1-isic_recover: HSCX A: IMASK = 0x0
Jan 16 10:53:24 arthur /kernel: i4b-L1-isic_recover:   ISAC: IMASK = 0x2a
Jan 16 10:53:24 arthur /kernel: i4b-L2-i4b_T202_timeout: unit 0, N202 = 3
Jan 16 10:53:24 arthur /kernel: i4b-L1-ph_data_req: still in state F3!
Jan 16 10:53:26 arthur /kernel: i4b-L3-T303_timeout: SETUP not answered, cr = 69
Jan 16 10:53:26 arthur /kernel: i4b-L3-next_l3state: FSM illegal state, state =
ST_OW - Out Wait EST, event = EV_T303EXP - T303 timeout!
Jan 16 10:53:26 arthur /kernel: i4b-L1-timer3_expired: state = F4 Awaiting Signal
Jan 16 10:53:26 arthur /kernel: i4b-L1-isic_recover: HSCX B: ISTA = 0x0
Jan 16 10:53:26 arthur /kernel: i4b-L1-isic_recover:   ISAC: ISTA = 0x0
Jan 16 10:53:26 arthur /kernel: i4b-L1-isic_recover: HSCX B: IMASK = 0x0
Jan 16 10:53:26 arthur /kernel: i4b-L1-isic_recover: HSCX A: IMASK = 0x0
Jan 16 10:53:26 arthur /kernel: i4b-L1-isic_recover:   ISAC: IMASK = 0x2a
------- snap -------

What confuses me are the timeout messages above and the following:

root.arthur # ifconfig isp0 inet 0.0.0.0 141.44.10.1 netmask 255.255.255.255 link1
ifconfig: ioctl (SIOCAIFADDR): File exists

Checking what might be wrong here using ktrace gives:

------- snip -------
   411 ktrace   NAMI  "/sbin/ifconfig"
   411 ifconfig RET   execve 0
   411 ifconfig CALL  __sysctl(0xbfbfd544,0x6,0,0xbfbfd540,0,0)
   411 ifconfig RET   __sysctl 0
   411 ifconfig CALL  readlink(0x8069ccc,0xbfbfd49c,0x3f)
   411 ifconfig NAMI  "/etc/malloc.conf"
   411 ifconfig RET   readlink -1 errno 2 No such file or directory
   411 ifconfig CALL  mmap(0,0x1000,0x3,0x1002,0xffffffff,0,0,0)
   411 ifconfig RET   mmap 671526912/0x2806b000
   411 ifconfig CALL  break(0x8079000)
   411 ifconfig RET   break 0
   411 ifconfig CALL  break(0x807a000)
   411 ifconfig RET   break 0
   411 ifconfig CALL  __sysctl(0xbfbfd544,0x6,0x8079000,0xbfbfd540,0,0)
   411 ifconfig RET   __sysctl 0
   411 ifconfig CALL  socket(0x2,0x2,0)
   411 ifconfig RET   socket 3
   411 ifconfig CALL  ioctl(0x3,SIOCGIFFLAGS,0x8075bc0)
   411 ifconfig RET   ioctl 0
   411 ifconfig CALL  ioctl(0x3,SIOCSIFFLAGS,0x8075bc0)
   411 ifconfig RET   ioctl 0
   411 ifconfig CALL  ioctl(0x3,SIOCDIFADDR,0x8075be0)
   411 ifconfig RET   ioctl 0
   411 ifconfig CALL  ioctl(0x3,SIOCAIFADDR,0x8075b80)
   411 ifconfig RET   ioctl -1 errno 17 File exists
------- snap -------

Honestly, that doesn't tell me much. ioctl(2) doesn't mention the
possibility of an "File exists" error.

That's how my /etc/isdn/isdnd.rc looks:

------- snip -------
system
acctall		= on			# generate info for everything
acctfile	= /var/log/isdnd.acct	# name & location of accounting file
useacctfile	= on			# generate accouting info to file
monitor-allowed	= off			# global switch: monitor on/off
ratesfile	= /etc/isdn/isdnd.rates	# name & location of rates file
mailer		= /usr/bin/mail
mailto		= root
rtprio		= 25			# modify isdnd's process priority
isdntime	= on

entry
name			= RJPC
usrdevicename		= isp		# ipr, tel, rbch
usrdeviceunit		= 0		# unit number
isdncontroller  	= 0		# controller to use or -1 to use any
isdnchannel		= -1		# channel to use or -1 to use any
                                        # numbers used to verify at DIAL IN
local-phone-incoming    = 7318677	# we take calls for this local number
remote-phone-incoming   = 536200	# we take calls from this remote machine

remote-phone-dialout    = 536200	# I did try adding the area code
local-phone-dialout     = 7318677	# here. Doesn't change a thing.

					# used next on dial fail or retry:
remdial-handling        = first		# first, last or next
					# what happenes if someone dials in:
dialin-reaction		= ignore	# accept, reject, ignore, answer, callback
                                        # normal dialout or do i call back:
dialout-type            = normal        # normal / calledback
b1protocol              = hdlc          # hdlc, raw
idletime-incoming	= 240		# incoming call idle timeout
idletime-outgoing	= 30		# outgoing call idle timeout
ratetype		= 0  		# city rate
unitlength		= 90		# default unit length
unitlengthsrc		= rate		# none, rate, cmdl, conf, aocd
dialretries		= 3		# no of retries
dialrandincr		= on		# increase time between dials
recoverytime		= 25		# wait between dails
usedown			= off		# do not use soft up/down
downtries		= 2
downtime		= 30
# EOF #########################################################################
------- snap -------

The content of /var/tmp/isdntrace0:

------- snip -------
=========== isdntrace controller #0 =========== started Sun Jan 16 10:51:35 2000

-- TE->NT - unit:0 - frame:000001 - time:16.01 10:53:22.316926 - length:8 ------
Dump:000  fc ff 03 0f c3 58 01 ff                               .....X..
Q921: SAP=63 (TEI-Management), C, TEI=127, Ri=0x58c3, IdRequest, Ai=127

-- TE->NT - unit:0 - frame:000002 - time:16.01 10:53:24.316952 - length:8 ------
Dump:000  fc ff 03 0f b6 78 01 ff                               .....x..
Q921: SAP=63 (TEI-Management), C, TEI=127, Ri=0x78b6, IdRequest, Ai=127
------- snap -------

Any additional pointers of where to look at to get the connection up
and running are very much appreciated.

	Roland


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?0viu0u2lin.fsf>