Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ISDN Einwahl macht kein PAP / Chap
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
TTM
n00b
n00b


Joined: 13 Mar 2004
Posts: 2

PostPosted: Sat Mar 13, 2004 11:44 am    Post subject: ISDN Einwahl macht kein PAP / Chap Reply with quote

Hi,

hab grad mein Stage1 Gentoo aufgesetzt, soweit alles fehlerfrei. Bin voll begeistert. Bin leider wenns um ISDN unter Linux geht ziemlicher Neuling. Hab mir alle Forumsbeiträge zum Thema ISDN durchgelesen, hab mein ISDN nach diesen Anleitungen aufgesetzt. Sieht soweit alles gut aus, nur bekomme ich irgendwie die Authentifizierung beim Provider nicht hin.



Bla - hier die Codeschnipsel:

Code:

Mar 13 13:01:17 gentoo ippp0: dialing 0 192658...
Mar 13 13:01:26 gentoo ippp0: dialing 0 0192658...
Mar 13 13:01:30 gentoo isdn_net: ippp0 connected
Mar 13 13:01:30 gentoo ipppd[26160]: Local number: <xxxxx>, Remote number: 0192658, Type: outgoing
Mar 13 13:01:30 gentoo ipppd[26160]: PHASE_WAIT -> PHASE_ESTABLISHED, ifunit: 0, linkunit: 0, fd: 6

<hier tut sich dann die 100s timeout lang nix>

Mar 13 13:03:10 gentoo isdn_net: local hangup ippp0
Mar 13 13:03:10 gentoo ippp0: Chargesum is 0
Mar 13 13:03:10 gentoo ipppd[26160]: Modem hangup
Mar 13 13:03:10 gentoo ipppd[26160]: Connection terminated.
Mar 13 13:03:10 gentoo ipppd[26160]: taking down PHASE_DEAD link 0, linkunit: 0
Mar 13 13:03:10 gentoo ipppd[26160]: closing fd 6 from unit 0
Mar 13 13:03:10 gentoo ipppd[26160]: link 0 closed , linkunit: 0
Mar 13 13:03:10 gentoo ipppd[26160]: reinit_unit: 0
Mar 13 13:03:10 gentoo ipppd[26160]: Connect[0]: /dev/ippp0, fd: 6
Mar 13 13:03:10 gentoo ippp_ccp: freeing reset data structure c6c8b000
Mar 13 13:03:10 gentoo ippp, open, slot: 0, minor: 0, state: 0000
Mar 13 13:03:10 gentoo ippp_ccp: allocated reset data structure c6c8b000


wie man sieht, wählt er sich ein, der imon status sieht ebenfalls gut aus. nachh dem 100s timeout legt er ganz normal auf. wie ich es in anderen foren gelesen hab, sollte normalerweise irgendwas von pap oder chap kommen, dann noch die IP zugewiesen werden usw. aber da kommt nix (nach PHASE_WAIT -> PHASE_ESTABLISHED, ifunit: 0, linkunit: 0, fd: 6)

hier noch weitere infos über die config:
Code:

??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
? iMON 2.2                                                                                                              Last Update: 2004-03-13 13:29:08 ?
?                                                                                                                                                        ?
? Nr. LineID       Status    Phone Number                Usage       Type                                                                                ?
? ????????????????????????????????????????????????????????????????????????????????????????????????????                                                   ?
?  0  HiSax        Online    0192658                     Net       Outgoing                                                                              ?
?  1  HiSax        Offline



komisch ist, dass ich beim isdn-initialise die Meldung krieg, dass angeblich im kernel ppp nicht aktiv ist:
gentoo ppp # ./isdn-initialise
SIOCADDRT: File exists
SIOCADDRT: File exists
Sorry - this system lacks PPP kernel support.
Check whether you configured at least the ippp0 device!

is aber eigentlich schon:
Code:

gentoo ppp # cat /usr/src/linux/.config |grep PPP
# CONFIG_PPP is not set
CONFIG_ISDN_PPP=y
# CONFIG_ISDN_PPP_VJ is not set
# CONFIG_ISDN_PPP_BSDCOMP is not set
gentoo ppp #


weitere infos:

gentoo ppp # uname -a
Linux gentoo 2.4.20-gaming-r8 #1 Wed Mar 10 23:27:57 MET 2004 i686 Celeron (Coppermine) GenuineIntel GNU/Linux

Fritz Card PCI

Karte hängt direkt am NTBA

Code:

gentoo ppp # cat isdn-initialise
#!/bin/bash

MYUSER=msn       # my username at the ISP
REMNAME=msn       # name of ISP's system
REMMSN=0192658     # 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


Code:

gentoo ppp # netstat -rn
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
10.0.0.1        0.0.0.0         255.255.255.255 UH       40 0          0 ippp0
192.168.0.0     0.0.0.0         255.255.255.0   U        40 0          0 eth0
127.0.0.0       127.0.0.1       255.0.0.0       UG       40 0          0 lo


Code:

gentoo ppp # cat pap-secrets
# Secrets for authentication using CHAP
# client    server  secret      IP addresses
gentoo    *       msn
gentoo ppp #


Code:

gentoo ppp # cat options.ippp0
# Example config for a personal ISP dialin
# see "man ipppd" for explanation of all possible options

# for the defaultroute setting, look in /etc/conf.d/net

/dev/isdn/ippp0

# you have to put login and password into /etc/ppp/pap-secrets too

name "gentoo"

lock
ipcp-accept-local
ipcp-accept-remote
noipdefault
defaultroute

# You might want to try these if you have problems:
-vj
-vjccomp
-ac
-pc
-bsdcomp
mru 1524
mtu 1500
#noccp


Code:

gentoo ppp # cat isdnlog-init
#!/bin/bash
isdnlog -sS -v1 -w10 -m0x17d7 -l0x3d7 -C /dev/console -D /dev/isdnctrl


Code:

gentoo ppp # cat isdn-setup
#!/bin/bash
MYUSER=msn
MYMSN=353547 # my number, without 0, with areacode
REMMSN=192658     # number of 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  # dial on demand
/sbin/isdnctrl addphone ippp0 out $REMMSN   # ISP's number
/sbin/isdnctrl huptimeout ippp0 100  # set timeout to 10 seconds (or whatever)
/sbin/isdnctrl dialmax ippp0 5     # set redial count to 20
/sbin/ipppd user $MYUSER remotename $REMNAME \
    defaultroute                    \
    name $MYUSER                    \
    debug                           \
    -detach                         \
    mru 1500                        \
    mtu 1500                        \
    lcp-restart 1                   \
    /dev/ippp0 &



Code:

Linux Kernel Card Services 3.1.22
  options:  [pci] [cardbus] [pm]
ISDN subsystem Rev: 1.1.4.1/1.1.4.1/1.1.4.1/1.1.4.1/none/1.1.4.1
HiSax: Linux Driver for passive ISDN cards
HiSax: Version 3.5 (kernel)
HiSax: Layer1 Revision 1.1.4.1
HiSax: Layer2 Revision 1.1.4.1
HiSax: TeiMgr Revision 1.1.4.1
HiSax: Layer3 Revision 1.1.4.1
HiSax: LinkLayer Revision 1.1.4.1
HiSax: Approval certification valid
HiSax: Approved with ELSA Microlink PCI cards
HiSax: Approved with Eicon Technology Diva 2.01 PCI cards
HiSax: Approved with Sedlbauer Speedfax + cards
HiSax: Approved with HFC-S PCI A based cards
HiSax: Total 1 card defined
HiSax: Card 1 Protocol EDSS1 Id=HiSax (0)
HiSax: AVM PCI driver Rev. 1.1.4.1
FritzPnP: no ISA PnP present
PCI: Found IRQ 5 for device 00:0e.0
PCI: Sharing IRQ 5 with 00:0a.0
AVM PCI: stat 0x3020a
AVM PCI: Class A Rev 2
HiSax: AVM Fritz!PCI config irq:5 base:0xA000
AVM PCI: ISAC version (0): 2086/2186 V1.1
AVM Fritz PnP/PCI: IRQ 5 count 0
AVM Fritz PnP/PCI: IRQ 5 count 3
HiSax: DSS1 Rev. 1.1.4.1
HiSax: 2 channels added
HiSax: MAX_WAITING_CALLS added
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 2048 buckets, 16Kbytes
TCP: Hash tables configured (established 16384 bind 32768)


bin für jede Hilfe dankbar

greetz


Nico
Back to top
View user's profile Send private message
dot
Guru
Guru


Joined: 05 May 2003
Posts: 335
Location: Germany

PostPosted: Sat Mar 13, 2004 12:44 pm    Post subject: Reply with quote

Hi,
ich hab meine Gentoo auch über ISDN installiert, hab aber seit Anfang Februar DSL.
In meiner /var/log/messages hab ich aber noch die alten Protokoleinträge.
Ein sauberer Start mit ISDN muss so aussehen (bei einer FritzCard PCI v2.1):
Code:
Nov 11 07:33:13 discovery HiSax: Linux Driver for passive ISDN cards
Nov 11 07:33:13 discovery HiSax: Version 3.5 (module)
Nov 11 07:33:13 discovery HiSax: Layer1 Revision 1.1.4.1
Nov 11 07:33:13 discovery HiSax: Layer2 Revision 1.1.4.1
Nov 11 07:33:13 discovery HiSax: TeiMgr Revision 1.1.4.1
Nov 11 07:33:13 discovery HiSax: Layer3 Revision 1.1.4.1
Nov 11 07:33:13 discovery HiSax: LinkLayer Revision 1.1.4.1
Nov 11 07:33:13 discovery HiSax: Approval certification failed because of
Nov 11 07:33:13 discovery HiSax: unauthorized source code changes
Nov 11 07:33:13 discovery hisax_isac: ISAC-S/ISAC-SX ISDN driver v0.1.0
Nov 11 07:33:13 discovery hisax_fcpcipnp: Fritz!Card PCI/PCIv2/PnP ISDN driver v0.0.1
Nov 11 07:33:13 discovery HiSax: Card 1 Protocol EDSS1 Id=fcpcipnp0 (0)
Nov 11 07:33:13 discovery HiSax: DSS1 Rev. 1.1.4.1
Nov 11 07:33:13 discovery HiSax: 2 channels added
Nov 11 07:33:13 discovery HiSax: MAX_WAITING_CALLS added
Nov 11 07:33:13 discovery hisax_fcpcipnp: found adapter Fritz!Card PCI v2 at 00:09.0

Damit ist schonmal der Hardwaretreiber sauber geladen.
Das Start vom ipppd und eine erfolgreiche Einwahl müsstest du in etwa so in deiner
/var/log/messages wieder finden:
Code:

Nov 11 18:53:09 discovery isdn: Verbose-Level is 3
Nov 11 18:53:09 discovery isdn: Global Mode running
Nov 11 18:53:09 discovery isdn_net: interface ippp0 already exists
Nov 11 18:53:09 discovery ipppd: info: no PAP secret entry for this user!
Nov 11 18:53:09 discovery ipppd[2181]: Found 1 device:
Nov 11 18:53:09 discovery ipppd[2181]: ipppd i2.2.12 (isdn4linux version of pppd by MH) started
Nov 11 18:53:09 discovery ipppd[2181]: init_unit: 0
Nov 11 18:53:09 discovery ippp, open, slot: 0, minor: 0, state: 0000
Nov 11 18:53:09 discovery ippp_ccp: allocated reset data structure d7419800
Nov 11 18:53:09 discovery ipppd[2181]: Connect[0]: /dev/ippp0, fd: 6
Nov 11 18:53:11 discovery ippp0: dialing 0 0192071...
Nov 11 18:53:13 discovery isdn_net: ippp0 connected
Nov 11 18:53:13 discovery ipppd[2181]: Local number: XXXXXX, Remote number: 0192071, Type: outgoing
Nov 11 18:53:13 discovery ipppd[2181]: PHASE_WAIT -> PHASE_ESTABLISHED, ifunit: 0, linkunit: 0, fd: 6
Nov 11 18:53:13 discovery ipppd[2181]: sent [0][LCP ConfReq id=0x1 <mru 1500> <magic 0xe30fa0f> <pcomp> <accomp>]
Nov 11 18:53:13 discovery ipppd[2181]: rcvd [0][LCP ConfReq id=0xc <auth chap md5> <magic 0x94e195a> <MPmrru 1524> <MPdiscr: 0x1 [ 64 69 61 6c 6f 75 74 75 73 65 72 ]>]
Nov 11 18:53:13 discovery ipppd[2181]: sent [0][LCP ConfRej id=0xc <MPmrru 1524>]
Nov 11 18:53:13 discovery ipppd[2181]: rcvd [0][LCP ConfAck id=0x1 <mru 1500> <magic 0xe30fa0f> <pcomp> <accomp>]
Nov 11 18:53:13 discovery ipppd[2181]: rcvd [0][LCP ConfReq id=0xd <auth chap md5> <magic 0x94e195a> <MPdiscr: 0x1 [ 64 69 61 6c 6f 75 74 75 73 65 72 ]>]
Nov 11 18:53:13 discovery ipppd[2181]: sent [0][LCP ConfAck id=0xd <auth chap md5> <magic 0x94e195a> <MPdiscr: 0x1 [ 64 69 61 6c 6f 75 74 75 73 65 72 ]>]
Nov 11 18:53:13 discovery ipppd[2181]: lcp layer is UP
Nov 11 18:53:13 discovery ipppd[2181]: rcvd [0][CHAP Challenge id=0x7 <0f2f95ad045c82fecf434d2aa675192f>, name = "dialoutuser"]
Nov 11 18:53:13 discovery ipppd[2181]: ChapReceiveChallenge: Rcvd id 7.
Nov 11 18:53:13 discovery ipppd[2181]: ChapReceiveChallenge: received name field: 'dialoutuser'
Nov 11 18:53:13 discovery ipppd[2181]: sent [0][CHAP Response id=0x7 <1b3cab3b946fcd2d43b8be22a6e3f0ee>, name = "xxxxxxxxxxx"]
Nov 11 18:53:13 discovery ipppd[2181]: rcvd [0][CHAP Success id=0x7 ""]
Nov 11 18:53:13 discovery ipppd[2181]: ChapReceiveSuccess: Rcvd id 7.
Nov 11 18:53:13 discovery ipppd[2181]: MPPP negotiation, He: No We: No
Nov 11 18:53:13 discovery ipppd[2181]: sent [0][IPCP ConfReq id=0x1 <addr 192.168.0.1> <compress VJ 0f 01>]
Nov 11 18:53:13 discovery ipppd[2181]: CCP enabled! Trying CCP.
Nov 11 18:53:13 discovery ipppd[2181]: CCP: got ccp-unit 0 for link 0 (Compression Control Protocol)
Nov 11 18:53:13 discovery ipppd[2181]: ccp_resetci!
Nov 11 18:53:13 discovery ipppd[2181]: Compressor BSD Compress loaded!
Nov 11 18:53:13 discovery ipppd[2181]: ccp_resetci!
Nov 11 18:53:13 discovery ipppd[2181]: Compressor BSD Compress loaded!
Nov 11 18:53:13 discovery ipppd[2181]: sent [0][CCP ConfReq id=0x1 <bsd v1 15]
Nov 11 18:53:13 discovery Received CCP frame from daemon:
Nov 11 18:53:13 discovery [0/0].ccp-xmit[0]: ff 03 80 fd 01 01 00 07 15 03 2f
Nov 11 18:53:13 discovery ipppd[2181]: rcvd [0][IPCP ConfReq id=0xb <addr 145.253.1.56>]
Nov 11 18:53:13 discovery ipppd[2181]: sent [0][IPCP ConfAck id=0xb <addr 145.253.1.56>]
Nov 11 18:53:13 discovery ipppd[2181]: rcvd [0][IPCP ConfRej id=0x1 <compress VJ 0f 01>]
Nov 11 18:53:13 discovery ipppd[2181]: sent [0][IPCP ConfReq id=0x2 <addr 192.168.0.1>]
Nov 11 18:53:13 discovery ipppd[2181]: rcvd [0][LCP ProtRej id=0x6 80 fd 01 01 00 07 15 03 2f]
Nov 11 18:53:13 discovery ipppd[2181]: rcvd [0][IPCP ConfNak id=0x2 <addr 212.144.54.40>]
Nov 11 18:53:13 discovery ipppd[2181]: sent [0][IPCP ConfReq id=0x3 <addr 212.144.54.40>]
Nov 11 18:53:13 discovery ipppd[2181]: rcvd [0][IPCP ConfAck id=0x3 <addr 212.144.54.40>]
Nov 11 18:53:13 discovery ipppd[2181]: local  IP address 212.144.54.40
Nov 11 18:53:13 discovery ipppd[2181]: remote IP address 145.253.1.56

Dann hat alles geklappt und die bist online. Aber wie du in dem Protokoll schon siehst,
habe ich den verboselevel vom ipppd auf 3 gestellt, deswegen steht da soviel zeuch drin.

Ich hab auch ne Doku darüber verfasst: http://www.dot-matrix.de/doc/
Da findest du auch meine Skripte von /etc/init.d und /etc/conf.d
mit welchen ich mich einwählen konnte.

Grüße

Flo
Back to top
View user's profile Send private message
dot
Guru
Guru


Joined: 05 May 2003
Posts: 335
Location: Germany

PostPosted: Sat Mar 13, 2004 12:50 pm    Post subject: Reply with quote

HI,

hab noch was vergessen:

Quote:
Mar 13 13:01:30 gentoo ipppd[26160]: PHASE_WAIT -> PHASE_ESTABLISHED, ifunit: 0, linkunit: 0, fd: 6

<hier tut sich dann die 100s timeout lang nix>

Da müsste das login stattfinden, musst du vielleicht eine 0 vorwählen oder sowas, eigentlich
müsste er da gleich den login machen. Wenn der Status bei dir auf connected steht,
vielleicht?

Der timeout kommt im übrigien hierher:
Quote:
/sbin/isdnctrl huptimeout ippp0 100 # set timeout to 10 seconds (or whatever)


Hei, es sieht so aus, als wärst du schon prima online, oder?
kannst du das nochmal machen und während der Rechner online ist, dir
mal anzeigen lassen, was die folgenden Befehle ausgeben:
Code:
/sbin/ifconfig ippp0
/sbin/route -n

Wenn der imon sagt, dass du online bist, dann bist du das auch.
Warum hab ich dann den ganzen Ratenschwanz da oben eigentlich gepostet, naja :wink:

Note to self: Erst lesen, dann denken, dann posten.
Schande über mein Haupt :oops:

Grüße

Flo
Back to top
View user's profile Send private message
TTM
n00b
n00b


Joined: 13 Mar 2004
Posts: 2

PostPosted: Sun Mar 14, 2004 11:28 pm    Post subject: Reply with quote

cool merci.. habs hingekriegt :]

thx & greetz

TTM
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum