Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 01 Apr 1998 12:45:22 +0200
From:      Eric Feillant <Eric.Feillant@EUnet-Bretagne.fr>
To:        Wolfgang Helbig <helbig@Informatik.BA-Stuttgart.DE>
Cc:        freebsd-isdn@FreeBSD.ORG
Subject:   Re: i4b-L1-F_ill:What is this?
Message-ID:  <35221AC1.ACD5CECA@EUnet-Bretagne.fr>
References:  <199804010829.KAA22202@rvc1.informatik.ba-stuttgart.de>

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


Wolfgang Helbig a écrit:

> > my isdntest programm seems to give me good results... but i still can't use
> > sppp interface.
>
> Why?
> Where does it stop? Does it dial? Does it connect? Please send the traces
> put into /var/log/messages by sppp.
> What is the last message on the console ...
>
> I4B is still alpha and we want to fix as much bugs as possible--but we
> need your help.
> You got the point.
>
> Wolfgang


here's my /etc/rc.isdn file =>
#!/bin/sh

# output device for fullscreen mode
out_dev=/dev/ttyv3
# terminal type for fullscreen mode
out_typ=cons25

# Adresse de la machine ` joindre
ROUTEUR="193.107.122.7"



        echo "configuring I4BISDN/PPP-interface isppp0 to ISP"
        ifconfig isppp0 link1 0.0.0.0 $ROUTEUR netmask 0xffffff00 debug
        ifconfig isppp0 down
        spppcontrol isppp0 authproto=chap myauthname=XXX myauthsecret=XXXX
        echo 'adding default route to ISP'
        route add default $ROUTEUR

if [ -f /var/log/isdnd.log ]
then
        echo "rotating /var/log/isdnd.log file ..."
        cd /var/log
        if [ -f isdnd.log4 ] ; then mv -f isdnd.log4 isdnd.log5 ; fi
        if [ -f isdnd.log3 ] ; then mv -f isdnd.log3 isdnd.log4 ; fi
        if [ -f isdnd.log2 ] ; then mv -f isdnd.log2 isdnd.log3 ; fi
        if [ -f isdnd.log1 ] ; then mv -f isdnd.log1 isdnd.log2 ; fi
        if [ -f isdnd.log0 ] ; then mv -f isdnd.log0 isdnd.log1 ; fi
        cp -pf isdnd.log isdnd.log0
        cat /dev/null > isdnd.log
fi

# start the isdn daemon
if [ -x /usr/local/bin/isdnd ]
then
        if [ -f /var/run/isdnd.pid ]
        then
                echo 'Another isdnd is running as PID `cat /var/run/isdnd.pid`'
        else
                echo 'starting the isdn4bsd ISDN management daemon ...'
                /usr/local/bin/isdnd -d0xf9 -f -r $out_dev -t $out_typ
                if [ -x /usr/local/bin/isdntrace ]
                then
                        echo 'starting the isdn4bsd ISDN tracing facility ...'
                        nohup /usr/local/bin/isdntrace -f/var/tmp/isdn.trace >/&
                fi
        fi
fi
#


Here's my /etc/isdn/isdnd.rc file ==>

# cat isdnd.rc
#------------------------------------------------------------------------------
#
#       example of a configuration file for the isdn daemon
#       ---------------------------------------------------
#
#       $Id: isdnd.rc,v 1.3 1998/01/26 11:00:16 hm Exp $
#
#       NOTICE:
#       =======
#       This configuration file is an EXAMPLE only and MUST be edited
#       =============================================================
#       carefully to get the desired results: see 'man isdnd.rc' !!!!
#       =============================================================
#
#       last edit-date: [Mon Jan 26 11:39:34 1998]
#
#------------------------------------------------------------------------------

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

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

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

regexpr         = "connected.*KTS"      # look for matches in log messages
regprog         = connectKTS            # execute program whan match is found

rtprio          = 25                    # modify isdnd's priority

#======================================================================
# example for sPPP
#======================================================================
entry
name                    = ISP
usrdevicename      = isppp
usrdeviceunit           = 0
isdncontroller          = 0
isdnchannel             = -1
local-phone-incoming    = 029810XXXX
remote-phone-incoming   = 029895XXXX
local-phone-dialout     = 029810XXXX
remote-phone-dialout    = 029895XXXX
remdial-handling        = first
dialin-reaction         = accept
dialout-type            = normal
b1protocol              = hdlc
idletime-incoming       = 240
idletime-outgoing       = 120
ratetype                = 0
unitlength              = 180
unitlengthsrc           = rate
dialretries             = 1
dialrandincr            = on
recoverytime            = 25
usedown                 = on
downtries               = 2
downtime                = 30


Now i run /etc/rc.isdn,  here's my ifconfig result =>

# ifconfig -a
ed0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet 193.107.210.139 netmask 0xffffff00 broadcast 193.107.210.255
        ether 00:c0:26:a1:29:9f
lp0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> mtu 1500
isppp0: flags=2814<DEBUG,POINTOPOINT,SIMPLEX,LINK1> mtu 1500
        inet 0.0.0.0 --> 193.107.122.7 netmask 0xff000000
isppp1: flags=810<POINTOPOINT,SIMPLEX> mtu 1500
isppp2: flags=810<POINTOPOINT,SIMPLEX> mtu 1500
isppp3: flags=810<POINTOPOINT,SIMPLEX> mtu 1500
ipr0: flags=10<POINTOPOINT> mtu 1500
ipr1: flags=10<POINTOPOINT> mtu 1500
ipr2: flags=10<POINTOPOINT> mtu 1500
ipr3: flags=10<POINTOPOINT> mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet 127.0.0.1 netmask 0xff000000
#

And my netstat -rn result: =>
# netstat -rn
Routing tables

Internet:
Destination        Gateway            Flags     Refs     Use     Netif Expire
default            193.107.122.7      UGSc        0        0    isppp0
127.0.0.1          127.0.0.1          UH          0        0       lo0
193.107.122.7      default            UH          1        0    isppp0
193.107.210        link#1             UC          0        0
193.107.210.1      0:0:c:4e:69:d7     UHLW        0        0       ed0   1011
193.107.210.161    0:40:95:91:22:4b   UHLW        1      391       ed0   1010
193.107.210.207    8:0:20:a:7c:82     UHLW        1      176       ed0     55
#



here's a piece of /var/tmp/isdn.trace

# tail -30 isdn.trace
Dump:000  fe ff 03 0f 00 00 04 ff                               ........
LAPD: SAP=63 (TEI-Management), C, TEI=127, Ri=0x0000, IdCheckReq, Ai=127

-- NT->TE - unit:0 - frame:000134 - time:01.04 14:18:12.62 - length:8 ----------
Dump:000  fe ff 03 0f 00 00 04 ff                               ........
LAPD: SAP=63 (TEI-Management), C, TEI=127, Ri=0x0000, IdCheckReq, Ai=127

-- NT->TE - unit:0 - frame:000135 - time:01.04 14:18:13.88 - length:8 ----------
Dump:000  fe ff 03 0f 00 00 04 ff                               ........
LAPD: SAP=63 (TEI-Management), C, TEI=127, Ri=0x0000, IdCheckReq, Ai=127

-- NT->TE - unit:0 - frame:000136 - time:01.04 14:18:14.89 - length:8 ----------
Dump:000  fe ff 03 0f 00 00 04 ff                               ........
LAPD: SAP=63 (TEI-Management), C, TEI=127, Ri=0x0000, IdCheckReq, Ai=127

-- NT->TE - unit:0 - frame:000137 - time:01.04 14:18:16.17 - length:8 ----------
Dump:000  fe ff 03 0f 00 00 04 ff                               ........
LAPD: SAP=63 (TEI-Management), C, TEI=127, Ri=0x0000, IdCheckReq, Ai=127

-- NT->TE - unit:0 - frame:000138 - time:01.04 14:18:17.16 - length:8 ----------
Dump:000  fe ff 03 0f 00 00 04 ff                               ........
LAPD: SAP=63 (TEI-Management), C, TEI=127, Ri=0x0000, IdCheckReq, Ai=127

-- NT->TE - unit:0 - frame:000139 - time:01.04 14:18:18.43 - length:8 ----------
Dump:000  fe ff 03 0f 00 00 04 ff                               ........
LAPD: SAP=63 (TEI-Management), C, TEI=127, Ri=0x0000, IdCheckReq, Ai=127

-- NT->TE - unit:0 - frame:000140 - time:01.04 14:18:19.44 - length:8 ----------
Dump:000  fe ff 03 0f 00 00 04 ff                               ........
LAPD: SAP=63 (TEI-Management), C, TEI=127, Ri=0x0000, IdCheckReq, Ai=127
#

When i trace the remote router incoming calls i see chap traces but i still
can't ping anything.


eric.

--

========= ____                           =====   Eric Feillant
======== /      /   /   ___    ___   /_ ======   EUnet BRETAGNE
======= /----  /   /  /   /  /___/  /  =======   140, bd de Creach Gwen
====== /____  /___/  /   /  /___   /_ ========   29000 QUIMPER, France
=====        Bretagne                =========   Tel:(+33) 298101620
                                                 Fax:(+33) 298101629
       Eric.Feillant@EUnet.fr
       http://www.EUnet.fr

Partenaire CISCO, CHECKPOINT (FIREWALL), BAY NETWORKS, NEWBRIDGE, SUN, CITRIX



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?35221AC1.ACD5CECA>