Re:cdma pres ppp fbsd 6.0 RELEASE

zongo zongo zongo at seznam.cz
Sat Dec 10 20:14:53 CET 2005


Ahoj,
taky jsem s rozchozenim CDMA pod FreeBSD chvili bojoval, ale nastesti se mi to povedlo. Narozdil od tebe mam ale FreeBSD 5.4, takze se mozna nektere veci budou lisit. Nejsem zadny guru, za pripadne nepresnosti v popisech se omlouvam.

Moje soubory a jejich nastaveni:

/etc/rc.conf
------------
ppp_enable="YES"
ppp_profile="cdma"
ppp_mode="ddial"
ppp_nat="YES"
ppp_user="root"


/boot/loader.conf
-----------------
umodem_load="YES"
hw.usb.umodem.ibufsize=1024
hw.usb.umodem.obufsize=1024

Drobny komentar:
Kdyz se do loaderu ty radky nedaly, tak se modem objevi na
/dev/ugen0. Da se s nim nejak komunikovat, ale pak to dycky selze na hlasce: 

	Sep 24 09:02:47 mazel ppp[203]: tun0: Phase: deflink: read (1): Operation not supported by device

Kdyz se ale do /boot/loader.conf ty radky fiknou, zarizeni se najde jako
/dev/ucom0 a pak uz to jede jak ma.

/etc/ppp/ppp.conf
-----------------
default:
 set log Phase Chat LCP IPCP CCP tun command
 ident user-ppp VERSION (built COMPILATIONDATE)
 set device /dev/ucom0
 set speed 115200
 set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \
           \"\" AT OK-AT-OK ATE1Q0 OK \\dATDT\\T TIMEOUT 40 CONNECT"
 set timeout 3600                       # 3 minute idle timer (the default)
 enable dns                             # request DNS info (for resolv.conf)

cdma:
 disable ipv6
 set speed 115200
 set device /dev/ucom0
 set phone "#777"
 set authname 601xxxxxx at etcz
 set authkey xxxxxxx
 add default HISADDR

Poznamka:
xxxx v authkey a authname je treba nahradit za realne hodnoty


Taky jsem narazil na problem s Bashem, resp. jeho trojkovou verzi. Pri bootu me to rvalo:

Starting ppp as "root"
/libexec/ld-elf.so.1:
Shared object "libintl.so.6" not found, required by "su"

Pritel google odhalil ze na vine je opravdu bash verze 3:
http://lists.freebsd.org/pipermail/freebsd-current/2004-October/039358.html
http://lists.freebsd.org/pipermail/freebsd-questions/2004-December/068093.html).

Kdyz jsem ho ale dal pryc a misto nej nainstaloval bash rady 2 (ktera ale zase sem tam spadne), tak mi pocitac nabootoval jak ma.

No a nakonec hlavni zdroj informaci, ze kterych jsem cerpal:
http://www.freebsd.cz/listserv/archive/users-l/2005-July/013588.html


Tak to je vse. Snad z toho neco pouzijes.

Zdarec
Zongo


> ------------ Původní zpráva ------------
> Od: Martin Nuc <martin at nuc.cz>
> Předmět: cdma pres ppp fbsd 6.0 RELEASE
> Datum: 10.12.2005 19:29:21
> ----------------------------------------
> Zdravim vsechny,
> 
> myslel jsem, ze rozchodit cdma mi nebude delat problem, bohuzel jsem se 
> mylil. Na ppp jsem sahl naposled kdyz jsem mel modem a vytaceny 
> pripojeni - tot asi pred 4mi roky. Podle archivu diskuze se tu urcite 
> najde nekdo, kdo cdma na freebsd pouziva. Muj cil je rozchodit NAT, aby 
> mohli pocitace z lokalniho segmentu na net. Bohuzel mi nefunguje ani 
> pripojeni se do site ET :( Hledal jsem googlem jak na ceskych strankach, 
> tak na anglickych a jsem ve fazi, kdy bych rad vytocil pomoci ppp a 
> pripojil se, ovsem po poslani ATD mi to napise NO CARRIER. Kdyz to 
> zkousim manualne pomoci ppp# term, tak napise CONNECT, ale pak se 
> nezobrazi pozadavek na username a pass (viz dale). Nat si pak nastavim, 
> ale potreboval bych nakopnout co s tim ppp
> 
> tady jsou nejake soubory/vystupy:
> 
> ------------ ppp.conf -----------------
> 
> default:
>  set log Phase Chat LCP IPCP CCP tun command
> 
> cdma:
>  enable force-scripts   # na jedne strance jsem nasel, ze je to dulezite 
> pro CDMA
> 
>  disable ipv6
>  set device /dev/cuaU0      # modem na usb - kdyz se pripojuju, tak pipa 
> :) Ono sice usbdevs pise ucom0, ale v 6.0 je to cuaU0 - nasel jsem 
> google, na zacatku sem byl docela zmatenej
> 
>  set speed 921600
> 
>  #set phone "#777"
>  set authname username   # to mam bez uvozovek
>  set authkey "heslo"   # to mam s uvozovkama, nevim jak na tom zalezi, 
> nekde to maji bez nekde s
>  nat enable yes
> 
>  set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 45 \
>              \"\" AT OK-AT-OK ATE1Q0 OK \\dATD\\T TIMEOUT 40 
> CONNECT"     # toto jsem zkousel parkrat neuspesne editovat
>  set login
>  set timeout 30
>  enable dns
> 
>  set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
>  add default HISADDR
> ---------------------------------------
> 
> --------------- ppp.log ----------------
> #### BLABLA, tady myslim zacina muj pokus:
> Dec 10 19:52:11  ppp[31706]: Phase: Using interface: tun1
> Dec 10 19:52:12  ppp[31706]: Phase: deflink: Created in closed state
> Dec 10 19:52:12  ppp[31706]: tun1: Command: cdma: enable force-scripts
> Dec 10 19:52:12  ppp[31706]: tun1: Command: cdma: disable ipv6
> Dec 10 19:52:12  ppp[31706]: tun1: Command: cdma: set device /dev/cuaU0
> Dec 10 19:52:12  ppp[31706]: tun1: Command: cdma: set speed 921600
> Dec 10 19:52:12  ppp[31706]: tun1: Command: cdma: set authname username
> Dec 10 19:52:12  ppp[31706]: tun1: Command: cdma: set authkey ********
> Dec 10 19:52:12  ppp[31706]: tun1: Command: cdma: nat enable yes
> Dec 10 19:52:12  ppp[31706]: tun1: Command: cdma: set dial ABORT BUSY 
> ABORT NO\sCARRIER TIMEOUT 45              "" AT OK-AT-OK ATE1Q0 OK 
> \dATD\T TIMEOUT 40 CONNECT
> Dec 10 19:52:12  ppp[31706]: tun1: Command: cdma: set login
> Dec 10 19:52:12  ppp[31706]: tun1: Command: cdma: set timeout 30
> Dec 10 19:52:12  ppp[31706]: tun1: Command: cdma: enable dns
> Dec 10 19:52:12  ppp[31706]: tun1: Command: cdma: set ifaddr 10.0.0.1/0 
> 10.0.0.2/0 255.255.255.0 0.0.0.0
> Dec 10 19:52:12  ppp[31706]: tun1: Command: cdma: add default HISADDR
> Dec 10 19:52:12  ppp[31707]: tun1: Phase: PPP Started (auto mode).
> Dec 10 19:52:12  ppp[31707]: tun1: Phase: bundle: Establish
> Dec 10 19:52:12  ppp[31707]: tun1: Phase: deflink: closed -> opening
> Dec 10 19:52:12  ppp[31707]: tun1: Phase: deflink: Connected!
> Dec 10 19:52:12  ppp[31707]: tun1: Phase: deflink: opening -> dial
> Dec 10 19:52:12  ppp[31707]: tun1: Chat: deflink: Dial attempt 1 of 1
> Dec 10 19:52:12  ppp[31707]: tun1: Chat: Send: AT^M
> Dec 10 19:52:12  ppp[31707]: tun1: Chat: Expect(45): OK
> Dec 10 19:52:12  ppp[31707]: tun1: Chat: Received: ^M
> Dec 10 19:52:12  ppp[31707]: tun1: Chat: Received: OK^M
> Dec 10 19:52:12  ppp[31707]: tun1: Chat: Send: ATE1Q0^M
> Dec 10 19:52:12  ppp[31707]: tun1: Chat: Expect(45): OK
> Dec 10 19:52:12  ppp[31707]: tun1: Chat: Received: ATE1Q0^M^M
> Dec 10 19:52:12  ppp[31707]: tun1: Chat: Received: OK^M
> Dec 10 19:52:12  ppp[31707]: tun1: Chat: Send: ATD^M
> Dec 10 19:52:14  ppp[31707]: tun1: Chat: Expect(40): CONNECT
> Dec 10 19:52:14  ppp[31707]: tun1: Chat: Received: ATD^M^M
> Dec 10 19:52:14  ppp[31707]: tun1: Chat: Received: NO CARRIER^M     ## 
> pokud jsem to dobre pochopil, tak tady by se melo prijmout CONNECT.
> Dec 10 19:52:14  ppp[31707]: tun1: Warning: Chat script failed
> Dec 10 19:52:14  ppp[31707]: tun1: Phase: deflink: dial -> hangup
> Dec 10 19:52:14  ppp[31707]: tun1: Warning: deflink: Unable to set 
> physical to speed 0
> Dec 10 19:52:14  ppp[31707]: tun1: Phase: deflink: Disconnected!
> Dec 10 19:52:14  ppp[31707]: tun1: Warning: deflink: Unable to set 
> physical to speed 0
> Dec 10 19:52:15  ppp[31707]: tun1: Phase: deflink: Connect time: 3 secs: 
> 0 octets in, 0 octets out
> Dec 10 19:52:15  ppp[31707]: tun1: Phase: deflink: 0 packets in, 0 
> packets out
> Dec 10 19:52:15  ppp[31707]: tun1: Phase:  total 0 bytes/sec, peak 0 
> bytes/sec on Sat Dec 10 19:52:12 2005
> Dec 10 19:52:15  ppp[31707]: tun1: Phase: deflink: hangup -> closed
> Dec 10 19:52:15  ppp[31707]: tun1: Phase: bundle: Dead
> ----------------------------------------------------
> 
> -------------- manualni pokus pres ppp -----------
> # ppp cdma
> Working in interactive mode
> Using interface: tun0
> ppp ON localhost> term
> deflink: Entering terminal mode on /dev/cuaU0
> Type `~?' for help
> t
> OK
> at
> OK
> atd #777
> CONNECT
> ########### a konec :) tady by se mel zeptat na username, pokud jsem 
> spravne pochopil 
> http://www.freebsd.cz/doc/en_US.ISO8859-1/books/handbook/ppp-troubleshoot.html
> 
> ----------------------------------------------------
> 
> 
> Signal samozrejme mam :) Budu vdecny za jakoukoli radu, protoze jsem uz 
> v koncich. Mam poslat nejake dalsi soubory?
> 
> Dekuji  moc,
>        Martin
> -- 
> FreeBSD mailing list (users-l at freebsd.cz)
> http://www.freebsd.cz/listserv/listinfo/users-l
> 
> 
> 




More information about the Users-l mailing list