0

Trying to connect to 3G/4G internet via Israeli 012 (Orange) SIM card. PPP connects successfully, authentificates, gets ms-dns and ms-wins addresses from the server, but it won't get an IP for some reason.

Here's an excerpt from system log:

Aug 14 23:14:33 derpy pppd[6957]: pppd 2.4.7 started by root, uid 0
Aug 14 23:14:34 derpy chat[6974]: abort on (BUSY)
Aug 14 23:14:34 derpy chat[6974]: abort on (NO CARRIER)
Aug 14 23:14:34 derpy chat[6974]: abort on (VOICE)
Aug 14 23:14:34 derpy chat[6974]: abort on (NO DIALTONE)
Aug 14 23:14:34 derpy chat[6974]: abort on (NO DIAL TONE)
Aug 14 23:14:34 derpy chat[6974]: abort on (NO ANSWER)
Aug 14 23:14:34 derpy chat[6974]: abort on (DELAYED)
Aug 14 23:14:34 derpy chat[6974]: report (CONNECT)
Aug 14 23:14:34 derpy chat[6974]: timeout set to 6 seconds
Aug 14 23:14:34 derpy chat[6974]: send (ATQ0^M)
Aug 14 23:14:34 derpy chat[6974]: expect (OK)
Aug 14 23:14:34 derpy chat[6974]: ATQ0^M^M
Aug 14 23:14:34 derpy chat[6974]: OK
Aug 14 23:14:34 derpy chat[6974]:  -- got it
Aug 14 23:14:34 derpy chat[6974]: send (ATZ^M)
Aug 14 23:14:34 derpy chat[6974]: timeout set to 3 seconds
Aug 14 23:14:34 derpy chat[6974]: expect (OKd)
Aug 14 23:14:34 derpy chat[6974]: ^M
Aug 14 23:14:34 derpy chat[6974]: ATZ^M^M
Aug 14 23:14:34 derpy chat[6974]: OK^M
Aug 14 23:14:37 derpy chat[6974]: alarm
Aug 14 23:14:37 derpy chat[6974]: send (AT^M)
Aug 14 23:14:37 derpy chat[6974]: expect (OK)
Aug 14 23:14:37 derpy chat[6974]: AT^M^M
Aug 14 23:14:37 derpy chat[6974]: OK
Aug 14 23:14:37 derpy chat[6974]:  -- got it
Aug 14 23:14:37 derpy chat[6974]: send (ATI^M)
Aug 14 23:14:37 derpy chat[6974]: expect (OK)
Aug 14 23:14:37 derpy chat[6974]: ^M
Aug 14 23:14:37 derpy chat[6974]: ATI^M^M
Aug 14 23:14:37 derpy chat[6974]: Manufacturer: ZTE CORPORATION^M
Aug 14 23:14:37 derpy chat[6974]: Model: MF823^M
Aug 14 23:14:37 derpy chat[6974]: Revision: BD_MF823HDMBV1.0.0B03^M
Aug 14 23:14:37 derpy chat[6974]: IMEI: XXXXXXXXXXXXXXX^M
Aug 14 23:14:37 derpy chat[6974]: +GCAP: +CGSM^M
Aug 14 23:14:37 derpy chat[6974]: ^M
Aug 14 23:14:37 derpy chat[6974]: OK
Aug 14 23:14:37 derpy chat[6974]:  -- got it
Aug 14 23:14:37 derpy chat[6974]: send (ATZ^M)
Aug 14 23:14:37 derpy chat[6974]: expect (OK)
Aug 14 23:14:37 derpy chat[6974]: ^M
Aug 14 23:14:37 derpy chat[6974]: ATZ^M^M
Aug 14 23:14:37 derpy chat[6974]: OK
Aug 14 23:14:37 derpy chat[6974]:  -- got it
Aug 14 23:14:37 derpy chat[6974]: send (ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0^M)
Aug 14 23:14:37 derpy chat[6974]: expect (OK)
Aug 14 23:14:37 derpy chat[6974]: ^M
Aug 14 23:14:37 derpy chat[6974]: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0^M^M
Aug 14 23:14:37 derpy chat[6974]: OK
Aug 14 23:14:37 derpy chat[6974]:  -- got it
Aug 14 23:14:37 derpy chat[6974]: send (AT^M)
Aug 14 23:14:37 derpy chat[6974]: expect (OK)
Aug 14 23:14:37 derpy chat[6974]: ^M
Aug 14 23:14:37 derpy chat[6974]: AT^M^M
Aug 14 23:14:37 derpy chat[6974]: OK
Aug 14 23:14:37 derpy chat[6974]:  -- got it
Aug 14 23:14:37 derpy chat[6974]: send (AT+CGDCONT=1,"IP","uinternet"^M)
Aug 14 23:14:38 derpy chat[6974]: expect (OK)
Aug 14 23:14:38 derpy chat[6974]: ^M
Aug 14 23:14:38 derpy chat[6974]: AT+CGDCONT=1,"IP","uinternet"^M^M
Aug 14 23:14:38 derpy chat[6974]: OK
Aug 14 23:14:38 derpy chat[6974]:  -- got it
Aug 14 23:14:38 derpy chat[6974]: send (AT+CGACT=1,1^M)
Aug 14 23:14:38 derpy chat[6974]: expect (OK)
Aug 14 23:14:38 derpy chat[6974]: ^M
Aug 14 23:14:38 derpy chat[6974]: AT+CGACT=1,1^M^M
Aug 14 23:14:38 derpy chat[6974]: OK
Aug 14 23:14:38 derpy chat[6974]:  -- got it
Aug 14 23:14:38 derpy chat[6974]: send (ATDT*99***1#^M)
Aug 14 23:14:38 derpy chat[6974]: timeout set to 30 seconds
Aug 14 23:14:38 derpy chat[6974]: expect (CONNECT)
Aug 14 23:14:38 derpy chat[6974]: ^M
Aug 14 23:14:38 derpy chat[6974]: ATDT*99***1#^M^M
Aug 14 23:14:38 derpy chat[6974]: CONNECT
Aug 14 23:14:38 derpy chat[6974]:  -- got it
Aug 14 23:14:38 derpy chat[6974]: send (^M)
Aug 14 23:14:38 derpy pppd[6957]: Script /usr/sbin/chat -v -t15 -f /etc/ppp/chatscripts/mobile-modem.chat finished (pid 6974), status = 0x0
Aug 14 23:14:38 derpy pppd[6957]: Serial connection established.
Aug 14 23:14:38 derpy pppd[6957]: using channel 26
Aug 14 23:14:38 derpy pppd[6957]: Using interface ppp0
Aug 14 23:14:38 derpy pppd[6957]: Connect: ppp0 <--> /dev/ttyUSB2
Aug 14 23:14:38 derpy systemd-udevd[7039]: Config file /usr/lib/systemd/network/99-default.link applies to device based on potentially unpredictable interface name 'ppp0'
Aug 14 23:14:38 derpy systemd-udevd[7039]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
Aug 14 23:14:39 derpy pppd[6957]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x55fe394b> <pcomp> <accomp>]
Aug 14 23:14:39 derpy pppd[6957]: rcvd [LCP ConfReq id=0x5f <asyncmap 0x0> <auth chap MD5> <magic 0x468580ab> <pcomp> <accomp>]
Aug 14 23:14:39 derpy pppd[6957]: sent [LCP ConfAck id=0x5f <asyncmap 0x0> <auth chap MD5> <magic 0x468580ab> <pcomp> <accomp>]
Aug 14 23:14:39 derpy pppd[6957]: rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0x55fe394b> <pcomp> <accomp>]
Aug 14 23:14:39 derpy pppd[6957]: sent [LCP EchoReq id=0x0 magic=0x55fe394b]
Aug 14 23:14:39 derpy pppd[6957]: rcvd [LCP DiscReq id=0x60 magic=0x468580ab]
Aug 14 23:14:39 derpy pppd[6957]: rcvd [CHAP Challenge id=0x1 <0e9e9c6ad0df4c50def9f9e64ad48325>, name = "UMTS_CHAP_SRVR"]
Aug 14 23:14:39 derpy pppd[6957]: sent [CHAP Response id=0x1 <7f0e94afe49d564ed62e8bb4c90f4cca>, name = "orange"]
Aug 14 23:14:39 derpy pppd[6957]: rcvd [LCP EchoRep id=0x0 magic=0x468580ab 55 fe 39 4b]
Aug 14 23:14:39 derpy pppd[6957]: rcvd [CHAP Success id=0x1 ""]
Aug 14 23:14:39 derpy pppd[6957]: CHAP authentication succeeded
Aug 14 23:14:39 derpy pppd[6957]: CHAP authentication succeeded
Aug 14 23:14:39 derpy pppd[6957]: sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
Aug 14 23:14:39 derpy pppd[6957]: sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
Aug 14 23:14:39 derpy pppd[6957]: rcvd [LCP ProtRej id=0x61 80 fd 01 01 00 0f 1a 04 78 00 18 04 78 00 15 03 2f]
Aug 14 23:14:39 derpy pppd[6957]: Protocol-Reject for 'Compression Control Protocol' (0x80fd) received
Aug 14 23:14:40 derpy pppd[6957]: rcvd [IPCP ConfNak id=0x1 <ms-dns1 10.11.12.13> <ms-dns2 10.11.12.14> <ms-wins 10.11.12.13> <ms-wins 10.11.12.14>]
Aug 14 23:14:40 derpy pppd[6957]: sent [IPCP ConfReq id=0x2 <addr 0.0.0.0> <ms-dns1 10.11.12.13> <ms-dns2 10.11.12.14> <ms-wins 10.11.12.13> <ms-wins 10.11.12.14>]
Aug 14 23:14:41 derpy pppd[6957]: rcvd [IPCP ConfNak id=0x2 <ms-dns1 10.11.12.13> <ms-dns2 10.11.12.14> <ms-wins 10.11.12.13> <ms-wins 10.11.12.14>]
Aug 14 23:14:41 derpy pppd[6957]: sent [IPCP ConfReq id=0x3 <addr 0.0.0.0> <ms-dns1 10.11.12.13> <ms-dns2 10.11.12.14> <ms-wins 10.11.12.13> <ms-wins 10.11.12.14>]
Aug 14 23:14:42 derpy pppd[6957]: rcvd [IPCP ConfNak id=0x3 <ms-dns1 10.11.12.13> <ms-dns2 10.11.12.14> <ms-wins 10.11.12.13> <ms-wins 10.11.12.14>]
Aug 14 23:14:42 derpy pppd[6957]: sent [IPCP ConfReq id=0x4 <addr 0.0.0.0> <ms-dns1 10.11.12.13> <ms-dns2 10.11.12.14> <ms-wins 10.11.12.13> <ms-wins 10.11.12.14>]
Aug 14 23:14:44 derpy pppd[6957]: rcvd [IPCP ConfNak id=0x4 <ms-dns1 10.11.12.13> <ms-dns2 10.11.12.14> <ms-wins 10.11.12.13> <ms-wins 10.11.12.14>]
Aug 14 23:14:44 derpy pppd[6957]: sent [IPCP ConfReq id=0x5 <addr 0.0.0.0> <ms-dns1 10.11.12.13> <ms-dns2 10.11.12.14> <ms-wins 10.11.12.13> <ms-wins 10.11.12.14>]
Aug 14 23:14:45 derpy pppd[6957]: rcvd [IPCP ConfNak id=0x5 <ms-dns1 10.11.12.13> <ms-dns2 10.11.12.14> <ms-wins 10.11.12.13> <ms-wins 10.11.12.14>]
Aug 14 23:14:45 derpy pppd[6957]: sent [IPCP ConfReq id=0x6 <addr 0.0.0.0> <ms-dns1 10.11.12.13> <ms-dns2 10.11.12.14> <ms-wins 10.11.12.13> <ms-wins 10.11.12.14>]
Aug 14 23:14:46 derpy pppd[6957]: rcvd [IPCP ConfNak id=0x6 <ms-dns1 10.11.12.13> <ms-dns2 10.11.12.14> <ms-wins 10.11.12.13> <ms-wins 10.11.12.14>]
Aug 14 23:14:46 derpy pppd[6957]: sent [IPCP ConfReq id=0x7 <addr 0.0.0.0> <ms-dns1 10.11.12.13> <ms-dns2 10.11.12.14> <ms-wins 10.11.12.13> <ms-wins 10.11.12.14>]
Aug 14 23:14:48 derpy pppd[6957]: rcvd [IPCP ConfNak id=0x7 <ms-dns1 10.11.12.13> <ms-dns2 10.11.12.14> <ms-wins 10.11.12.13> <ms-wins 10.11.12.14>]
Aug 14 23:14:48 derpy pppd[6957]: sent [IPCP ConfReq id=0x8 <addr 0.0.0.0> <ms-dns1 10.11.12.13> <ms-dns2 10.11.12.14> <ms-wins 10.11.12.13> <ms-wins 10.11.12.14>]
Aug 14 23:14:49 derpy pppd[6957]: rcvd [IPCP ConfNak id=0x8 <ms-dns1 10.11.12.13> <ms-dns2 10.11.12.14> <ms-wins 10.11.12.13> <ms-wins 10.11.12.14>]
Aug 14 23:14:49 derpy pppd[6957]: sent [IPCP ConfReq id=0x9 <addr 0.0.0.0> <ms-dns1 10.11.12.13> <ms-dns2 10.11.12.14> <ms-wins 10.11.12.13> <ms-wins 10.11.12.14>]
Aug 14 23:14:49 derpy pppd[6957]: Terminating on signal 15
Aug 14 23:14:49 derpy pppd[6957]: sent [LCP TermReq id=0x2 "User request"]
Aug 14 23:14:49 derpy pppd[6957]: rcvd [LCP TermAck id=0x2]
Aug 14 23:14:49 derpy pppd[6957]: Connection terminated.
Aug 14 23:14:49 derpy pppd[6957]: Exit.

PPP configuration:

ttyUSB2
lock
nocrtscts
nocdtrcts
name orange
refuse-mschap-v2
refuse-eap
refuse-pap
refuse-mschap
passive
novj
noauth
usepeerdns
defaultroute
noipdefault
ipcp-accept-local
ipcp-accept-remote
ipcp-max-failure 10
lcp-echo-interval 30
lcp-echo-failure 4
asyncmap 0
debug
dump
holdoff 10
asyncmap 0
hide-password
proxyarp
noipx

Chat script:

ABORT 'BUSY'
ABORT 'NO CARRIER'
ABORT 'VOICE'
ABORT 'NO DIALTONE'
ABORT 'NO DIAL TONE'
ABORT 'NO ANSWER'
ABORT 'DELAYED'
REPORT CONNECT
TIMEOUT 6
'' 'ATQ0'
'OK-AT-OK' 'ATZ'
TIMEOUT 3
'OK\d-AT-OK' 'ATI'
'OK' 'ATZ'
'OK' 'ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0'
'OK' @/etc/ppp/chatscripts/mode
'OK' 'AT+CGDCONT=1,"IP","uinternet"'
'OK' 'AT+CGACT=1,1'
'OK' 'ATDT*99***1#'
TIMEOUT 30
CONNECT ''

/etc/ppp/chatscripts/mode contains only AT with no other command(s)

New contributor
Daniel Rempel is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.

Your Answer

Daniel Rempel is a new contributor. Be nice, and check out our Code of Conduct.

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.