A
A
Andriy Kondratiev2012-04-20 12:08:20
FreeBSD
Andriy Kondratiev, 2012-04-20 12:08:20

FreeBSD + ZTE m100 + /etc/ppp/ppp.conf = FAIL?

There are: 3G modem ZTE M100, SIM card Kyivstar, Frya 9.0 and the desire to set up the Internet via ppp. The modem is connected, it works, I sent SMS with AT commands, but I can not connect to the network. Actually, here's what we have.
I wrote in the config as follows:

ks:                                                                                        
 set log Phase Chat LCP IPCP CCP tun command                                                
 set device /dev/cuaU0.1                                                                    
 set speed 460800                                                                           
 enable force-scripts                                                                       
 set phone "*99***1#"                                                                       
 set authname                                                                               
 set authkey ""                                                                             
 disable pap                                                                                
 disable chap                                                                               
 disable ipv6                                                                               
 set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \                                        
 \"\" AT OK-AT-OK ATE1Q0 OK \                                                               
 AT OK-AT-OK \                                                                              
 AT+ZOPRT=1 OK \                                                                            
 AT+ZSTART OK \                                                                             
 AT+CPBS=\\\"SM\\\" OK \                                                                    
 AT+CPMS=\\\"SM\\\",\\\"SM\\\",\\\"\\\" OK \                                                
 AT+CGDCONT=1,\\\"IP\\\",\\\"www.kyivstar.net\\\" OK \                                      
 \\dATDT\\T TIMEOUT 40 CONNECT"                                                             
 set login                                                                                  
                                                                                            
 enable dns                
 resolv rewrite                                                                             
# set ifaddr 0.0.0.0/0 0.0.0.0/0 0.0.0.0/0 0.0.0.0/0                                        
# set vj slotcomp off                                                                       
# set crtscts on                                                                            
 add default HISADDR

We start the connection:
$ sudo ppp -ddial ks<br/>
 Working in ddial mode<br/>
 Using interface: tun0

It seems to work, but:
$ ifconfig tun0<br/>
tun0: flags=8051&lt;UP,POINTOPOINT,RUNNING,MULTICAST&gt; metric 0 mtu 1500<br/>
 options=80000 nd6 options=21&lt;PERFORMNUD,AUTO_LINKLOCAL&gt;<br/>
 Opened by PID 1945<br/>
<br/>
$ sudo dhclient tun0<br/>
tun2: not found<br/>
exiting.<br/>
<br/>
$ tail -n 3 /var/log/messages<br/>
Apr 19 17:38:56 FreeBSD dhclient[1957]: exiting.<br/>
Apr 19 17:38:58 FreeBSD ppp[1945]: tun0: Warning: Chat script failed<br/>
Apr 19 17:39:09 FreeBSD ppp[1782]: tun0: Warning: Chat script failed<br/>
<br/>
$ sudo cat /dev/cuaU0.1<br/>
ATDT*99***1#<br/>
NO CARRIER<br/>
Где я ошибся?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaly Peretyatko, 2012-04-21
@viperet

P=try to replace the dial-in number with *99#, if it doesn't help, try to include the initialization string ATQ0V1E1S0=0&C1&D2+FCLASS=0 in the dial-up sequence

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question