cdma pres ppp fbsd 6.0 RELEASE

Martin Nuc martin at nuc.cz
Sat Dec 10 19:26:12 CET 2005


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



More information about the Users-l mailing list