SpeedTouch USB ADSL

ondra.holecek.bln at centrum.cz ondra.holecek.bln at centrum.cz
Wed Jun 2 12:31:12 CEST 2004


Dobry den,

koupil jsem si od Teskeho Telecomu adsl pripojeni, prisel mi i SpeedTouch USB modem, jenomze uz nevim co mam delat abych ho na freebsdckach zprovozil, kdyz dam ppp -background adsl (nebo podobny) ppp vzdycky skonci s chybou Child Death

pokud pustim modem_run:
  /usr/local/sbin/modem_run -f /usr/local/libdata/mgmt.o
tak to nic nedela, ze to musim treba po deseti minutach zrustit ctrl+c

problem mozna bude tady:
root at custodian# pppoa2 -vpi 8 -vci 48 -v 1
pusb_endpoint_open: couldn't open endpoint /dev/ugen0.7: No such file or directory

tak sem tam udelal symlink na /dev/ugen0.5, ale nevim jestli to nevadi.

btw. to cislo -vpi 8 a -vci 48 jsem nasel na internetu ze plati pro Cesky Telecom ale nevim jestli to tak opravdu je, muzete se nekdo podivat jaky cisla se doopravdy pouzivaji?

dal uz proste nevim co stim abych ho mohl pouzivat, muzete mi poradit nekdo kdo uz ste to pripojovali?


dik Ondra

<FreeBSD 5.2>

muj konfigurak v /etc/ppp/ppp.conf vypada takhle:
#################################################################
# PPP  Sample Configuration File
# Originally written by Toshiharu OHNO
# Simplified 5/14/1999 by wself at cdrom.com
#
# See /usr/share/examples/ppp/ for some examples
#
# $FreeBSD: src/etc/ppp/ppp.conf,v 1.8 2001/06/21 15:42:26 brian Exp $
#################################################################

default:
 #set log Phase Chat LCP IPCP CCP tun command
 set log Phase Chat IPCP CCP tun command
 ident user-ppp VERSION (built COMPILATIONDATE)

 # Ensure that "device" references the correct serial port
 # for your modem. (cuaa0 = COM1, cuaa1 = COM2)
 #
 set device /dev/cuaa0

 set speed 115200
 set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \
           \"\" AT OK-AT-OK ATE1Q0 OK ATM0 OK \\dATDT\\T TIMEOUT 40 CONNECT"
 set timeout 600			# 3 minute idle timer (the default)


adsl:
 set phone 0
 set authname jmeno
 set authkey heslo
 set device !"/usr/local/sbin/pppoa2 -vpi 8 -vci 48 -v 2"
 accept chap
 set speed sync
 set timeout 0
 enable lqr
 set lqrperiod 5
 set redial 15 10000
 set dial ""
 set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
 add default HISADDR
 nat enable yes
 enable dns


a /var/log/ppp.log vypise tohle:
Jun  2 11:35:14 custodian ppp[1283]: tun0: Phase: PPP Started (interactive mode).
Jun  2 11:35:16 custodian ppp[1283]: tun0: Command: /dev/ttyp0: dial adsl 
Jun  2 11:35:16 custodian ppp[1283]: tun0: Command: adsl: set phone 0 
Jun  2 11:35:16 custodian ppp[1283]: tun0: Command: adsl: set authname 417884707 
Jun  2 11:35:16 custodian ppp[1283]: tun0: Command: adsl: set authkey ******** 
Jun  2 11:35:16 custodian ppp[1283]: tun0: Command: adsl: set device !/usr/local/sbin/pppoa2 -vpi 8 -vci 48 -v 2 
Jun  2 11:35:16 custodian ppp[1283]: tun0: Command: adsl: accept chap 
Jun  2 11:35:16 custodian ppp[1283]: tun0: Command: adsl: set speed sync 
Jun  2 11:35:16 custodian ppp[1283]: tun0: Command: adsl: set timeout 0 
Jun  2 11:35:16 custodian ppp[1283]: tun0: Command: adsl: enable lqr 
Jun  2 11:35:16 custodian ppp[1283]: tun0: Command: adsl: set lqrperiod 5 
Jun  2 11:35:16 custodian ppp[1283]: tun0: Command: adsl: set redial 15 10000 
Jun  2 11:35:16 custodian ppp[1283]: tun0: Command: adsl: set dial  
Jun  2 11:35:16 custodian ppp[1283]: tun0: Command: adsl: set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0 
Jun  2 11:35:16 custodian ppp[1283]: tun0: Command: adsl: add default HISADDR 
Jun  2 11:35:16 custodian ppp[1283]: tun0: Command: adsl: nat enable yes 
Jun  2 11:35:16 custodian ppp[1283]: tun0: Command: adsl: enable dns 
Jun  2 11:35:16 custodian ppp[1283]: tun0: Phase: bundle: Establish 
Jun  2 11:35:16 custodian ppp[1283]: tun0: Phase: deflink: closed -> opening 
Jun  2 11:35:16 custodian ppp[1283]: tun0: Phase: deflink: Connected! 
Jun  2 11:35:16 custodian ppp[1283]: tun0: Phase: deflink: opening -> dial 
Jun  2 11:35:16 custodian ppp[1283]: tun0: Chat: deflink: Dial attempt 1 of 10000 
Jun  2 11:35:16 custodian ppp[1283]: tun0: Phase: deflink: dial -> carrier 
Jun  2 11:35:16 custodian ppp[1283]: tun0: Phase: deflink: carrier -> login
Jun  2 11:35:16 custodian ppp[1283]: tun0: Phase: deflink: login -> lcp 
Jun  2 11:35:16 custodian ppp[1283]: tun0: LCP: FSM: Using "deflink" as a transport 
Jun  2 11:35:16 custodian ppp[1283]: tun0: LCP: deflink: State change Initial --> Closed 
Jun  2 11:35:16 custodian ppp[1283]: tun0: LCP: deflink: State change Closed --> Stopped 
Jun  2 11:35:17 custodian ppp[1283]: tun0: LCP: deflink: LayerStart 
Jun  2 11:35:17 custodian ppp[1283]: tun0: LCP: deflink: SendConfigReq(1) state = Stopped 
Jun  2 11:35:17 custodian ppp[1283]: tun0: LCP:  MRU[4] 1500 
Jun  2 11:35:17 custodian ppp[1283]: tun0: LCP:  MAGICNUM[6] 0x01154dcf 
Jun  2 11:35:17 custodian ppp[1283]: tun0: LCP:  QUALPROTO[8] proto c025, interval 5000ms 
Jun  2 11:35:17 custodian ppp[1283]: tun0: LCP: deflink: State change Stopped --> Req-Sent 
Jun  2 11:35:20 custodian ppp[1283]: tun0: LCP: deflink: SendConfigReq(1) state = Req-Sent 
Jun  2 11:35:20 custodian ppp[1283]: tun0: LCP:  MRU[4] 1500 
Jun  2 11:35:20 custodian ppp[1283]: tun0: LCP:  MAGICNUM[6] 0x01154dcf 
Jun  2 11:35:20 custodian ppp[1283]: tun0: LCP:  QUALPROTO[8] proto c025, interval 5000ms 
Jun  2 11:35:23 custodian ppp[1283]: tun0: LCP: deflink: SendConfigReq(1) state = Req-Sent 
Jun  2 11:35:23 custodian ppp[1283]: tun0: LCP:  MRU[4] 1500 
Jun  2 11:35:23 custodian ppp[1283]: tun0: LCP:  MAGICNUM[6] 0x01154dcf 
Jun  2 11:35:23 custodian ppp[1283]: tun0: LCP:  QUALPROTO[8] proto c025, interval 5000ms 
Jun  2 11:35:26 custodian ppp[1283]: tun0: LCP: deflink: SendConfigReq(1) state = Req-Sent 
Jun  2 11:35:26 custodian ppp[1283]: tun0: LCP:  MRU[4] 1500 
Jun  2 11:35:26 custodian ppp[1283]: tun0: LCP:  MAGICNUM[6] 0x01154dcf 
Jun  2 11:35:26 custodian ppp[1283]: tun0: LCP:  QUALPROTO[8] proto c025, interval 5000ms
Jun  2 11:35:29 custodian ppp[1283]: tun0: LCP: deflink: SendConfigReq(1) state = Req-Sent
Jun  2 11:35:29 custodian ppp[1283]: tun0: LCP:  MRU[4] 1500
Jun  2 11:35:29 custodian ppp[1283]: tun0: LCP:  MAGICNUM[6] 0x01154dcf
Jun  2 11:35:29 custodian ppp[1283]: tun0: LCP:  QUALPROTO[8] proto c025, interval 5000ms
Jun  2 11:35:33 custodian ppp[1283]: tun0: LCP: deflink: LayerFinish
Jun  2 11:35:33 custodian ppp[1283]: tun0: LCP: deflink: State change Req-Sent --> Stopped
Jun  2 11:35:33 custodian ppp[1283]: tun0: LCP: deflink: State change Stopped --> Closed
Jun  2 11:35:33 custodian ppp[1283]: tun0: LCP: deflink: State change Closed --> Initial
Jun  2 11:35:33 custodian ppp[1283]: tun0: Phase: deflink: Disconnected!
Jun  2 11:35:33 custodian ppp[1283]: tun0: Phase: deflink: lcp -> logout
Jun  2 11:35:33 custodian ppp[1283]: tun0: Phase: deflink: logout -> hangup
Jun  2 11:35:33 custodian ppp[1283]: tun0: Phase: deflink: Disconnected!
Jun  2 11:35:33 custodian ppp[1283]: tun0: Phase: deflink: Connect time: 17 secs: 0 octets in, 130 octets out
Jun  2 11:35:33 custodian ppp[1283]: tun0: Phase: deflink: 0 packets in, 5 packets out
Jun  2 11:35:33 custodian ppp[1283]: tun0: Phase:  total 7 bytes/sec, peak 10 bytes/sec on Wed Jun  2 11:35:20 2004
Jun  2 11:35:33 custodian ppp[1283]: tun0: Phase: deflink: HUPing 1285
Jun  2 11:35:33 custodian ppp[1283]: tun0: Phase: deflink: hangup -> closed
Jun  2 11:35:33 custodian ppp[1283]: tun0: Phase: bundle: Dead

jeste co mam v /var/log/pppoa2.log
Jun  2 12:03:52 custodian pppoa2[1432]: Using vpi=8, vci=48 
Jun  2 12:03:52 custodian pppoa2[1432]: I'm the parent   process, I handle the endpoint 0x07 
Jun  2 12:03:52 custodian pppoa2[1432]: pty descriptors : fdin=3, fdout=4 
Jun  2 12:03:52 custodian pppoa2[1432]: Increasing SNDBUF from 2048 to 65536 
Jun  2 12:03:52 custodian pppoa2[1432]: Increasing RCVBUF from 4096 to 65536 
Jun  2 12:03:52 custodian pppoa2[1432]: Where is this crappy modem ?! 









More information about the Users-l mailing list