Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 May 2015 12:42:39 -0000
From:      nawi@nawi.is
To:        freebsd-mobile@freebsd.org
Subject:   ppp.conf for a 3G / UMTS internet connection on a ThinkPad.
Message-ID:  <0d9cded76411959bf4919c6a373c2734.squirrel@ikornapostur.1984.is>

next in thread | raw e-mail | index | archive | help
Hello !

I have a Lenovo ThinkPad W541 with a Ericsson N5321 gw and a clean install
of FreeBSD 10.1 p9.

A "dmeag | grep cdc" reports :

cdce0: <Ericsson N5321 gw> on usbus0
ue0: <USB Ethernet> on cdce0

A "dmesg | umodem" reports :

umodem0: <N5321 gw Mobile Broadband Modem> on usbus0
umodem0: data interface 2, has CM over data, has break
umodem1: <N5321 gw Mobile Broadband Data Modem> on usbus0
umodem1: data interface 4, has CM over data, has break
umodem2: <N5321 gw Mobile Broadband GPS Port> on usbus0
umodem2: data interface 10, has CM over data, has break

A ifconfig shows a interface ue0.

The ISP is tele.ring (a Austrian network provider which is part of
T-Mobile Germany and uses their network). The SIM works (normally used in
a Nexus 7 with USB tethering to share the internet connection) and needs
no PIN.

On this device I got IPīs like 100.75.52.64 or something like
10.166.108.208 after connecting (always a different one).

There are not many informations from the provider. The username is
web@telering.at, the password is web, the APN is also web and the
authentication method should be PAP (if I set "enable pap" in my ppp.conf
it does not work).

I found a Linux related page over Google which shows as init string
"at+cgdcont=1,"IP","WEB","0.0.0.0",0,0" for a HUAWAI E220. If I try all
this information in my ppp.conf :

default:
 set log Phase Chat LCP IPCP CCP tun command
 ident user-ppp VERSION

telering:
 set device /dev/cuaU0
 set speed 460800
 set authname "web@telering.at"
 set authkey "web"
 set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 3 \"\" \
 \\d\\d\\dAT OK-AT-OK \
 \\d\\d\\dAT+CGDCONT=1,\\\"IP\\\",\\\"web\\\",\\\"0.0.0.0\\\",0,0 OK \
 \\d\\d\\dAT+CFUN=1 OK-AT-OK \
 \\d\\d\\dATD*99# CONNECT"
 add default HISADDR
 enable dns
 disable deflate
 disable ipv6cp

I got from ppp in interactive mode a PPp. I also tried to use upper case /
lower case versions of the init string (but also donīt know whether it is
correct as it is. My ppp.log shows the following :

May  5 13:44:17 w541 newsyslog[572]: logfile first created
May  5 13:45:14 w541 ppp[953]: Phase: Using interface: tun0
May  5 13:45:14 w541 ppp[953]: Phase: deflink: Created in closed state
May  5 13:45:14 w541 ppp[953]: tun0: Command: default: ident user-ppp VERSION
May  5 13:45:14 w541 ppp[953]: tun0: Command: telering: set device /dev/cuaU0
May  5 13:45:14 w541 ppp[953]: tun0: Command: telering: set speed 460800
May  5 13:45:14 w541 ppp[953]: tun0: Command: telering: set authname
web@telering.at
May  5 13:45:14 w541 ppp[953]: tun0: Command: telering: set authkey ********
May  5 13:45:14 w541 ppp[953]: tun0: Command: telering: set dial ABORT
BUSY ABORT NO\sCARRIER TIMEOUT 3 ""  \d\d\dAT OK-AT-OK 
\d\d\dAT+CGDCONT=1,\"IP\",\"web\",\"0.0.0.0\",0,0 OK  \d\d\dAT+CFUN=1
OK-AT-OK  \d\d\dATD*99# CONNECT
May  5 13:45:14 w541 ppp[953]: tun0: Command: telering: add default HISADDR
May  5 13:45:14 w541 ppp[953]: tun0: Command: telering: enable dns
May  5 13:45:14 w541 ppp[953]: tun0: Command: telering: disable deflate
May  5 13:45:14 w541 ppp[953]: tun0: Command: telering: disable ipv6cp
May  5 13:45:14 w541 ppp[953]: tun0: Phase: PPP Started (interactive mode).
May  5 13:45:16 w541 ppp[953]: tun0: Command: /dev/ttyv0: dial
May  5 13:45:16 w541 ppp[953]: tun0: Phase: bundle: Establish
May  5 13:45:16 w541 ppp[953]: tun0: Phase: deflink: closed -> opening
May  5 13:45:16 w541 ppp[953]: tun0: Phase: deflink: Connected!
May  5 13:45:16 w541 ppp[953]: tun0: Phase: deflink: opening -> dial
May  5 13:45:16 w541 ppp[953]: tun0: Chat: deflink: Dial attempt 1 of 1
May  5 13:45:16 w541 ppp[953]: tun0: Chat: Send: AT^M
May  5 13:45:22 w541 ppp[953]: tun0: Chat: Expect(3): OK
May  5 13:45:22 w541 ppp[953]: tun0: Chat: Received: ^M
May  5 13:45:22 w541 ppp[953]: tun0: Chat: Received: *EMRDY: 1^M
May  5 13:45:22 w541 ppp[953]: tun0: Chat: Received: AT^M^M
May  5 13:45:22 w541 ppp[953]: tun0: Chat: Received: OK^M
May  5 13:45:22 w541 ppp[953]: tun0: Chat: Send:
AT+CGDCONT=1,"IP","web","0.0.0.0",0,0^M
May  5 13:45:29 w541 ppp[953]: tun0: Chat: Expect(3): OK
May  5 13:45:29 w541 ppp[953]: tun0: Chat: Received:
AT+CGDCONT=1,"IP","web","0.0.0.0",0,0^M^M
May  5 13:45:29 w541 ppp[953]: tun0: Chat: Received: OK^M
May  5 13:45:29 w541 ppp[953]: tun0: Chat: Send: AT+CFUN=1^M
May  5 13:45:35 w541 ppp[953]: tun0: Chat: Expect(3): OK
May  5 13:45:35 w541 ppp[953]: tun0: Chat: Received: AT+CFUN=1^M^M
May  5 13:45:35 w541 ppp[953]: tun0: Chat: Received: OK^M
May  5 13:45:35 w541 ppp[953]: tun0: Chat: Send: ATD*99#^M
May  5 13:45:41 w541 ppp[953]: tun0: Chat: Expect(3): CONNECT
May  5 13:45:41 w541 ppp[953]: tun0: Chat: Received: ATD*99#^M^M
May  5 13:45:41 w541 ppp[953]: tun0: Chat: Received: CONNECT^M
May  5 13:45:41 w541 ppp[953]: tun0: Phase: deflink: dial -> carrier
May  5 13:45:42 w541 ppp[953]: tun0: Phase: deflink: /dev/cuaU0: CD detected
May  5 13:45:42 w541 ppp[953]: tun0: Phase: deflink: carrier -> login
May  5 13:45:42 w541 ppp[953]: tun0: Phase: deflink: login -> lcp
May  5 13:45:42 w541 ppp[953]: tun0: LCP: FSM: Using "deflink" as a transport
May  5 13:45:42 w541 ppp[953]: tun0: LCP: deflink: State change Initial
--> Closed
May  5 13:45:42 w541 ppp[953]: tun0: LCP: deflink: State change Closed -->
Stopped
May  5 13:45:42 w541 ppp[953]: tun0: LCP: deflink: RecvConfigReq(3) state
= Stopped
May  5 13:45:42 w541 ppp[953]: tun0: LCP:  AUTHPROTO[5] 0xc223 (CHAP 0x05)
May  5 13:45:42 w541 ppp[953]: tun0: LCP:  ACFCOMP[2]
May  5 13:45:42 w541 ppp[953]: tun0: LCP:  PROTOCOMP[2]
May  5 13:45:42 w541 ppp[953]: tun0: LCP:  MRU[4] 1500
May  5 13:45:42 w541 ppp[953]: tun0: LCP:  ACCMAP[6] 0x00000000
May  5 13:45:42 w541 ppp[953]: tun0: LCP:  MAGICNUM[6] 0x56f73a62
May  5 13:45:42 w541 ppp[953]: tun0: LCP: deflink: SendConfigReq(1) state
= Stopped
May  5 13:45:42 w541 ppp[953]: tun0: LCP:  ACFCOMP[2]
May  5 13:45:42 w541 ppp[953]: tun0: LCP:  PROTOCOMP[2]
May  5 13:45:42 w541 ppp[953]: tun0: LCP:  ACCMAP[6] 0x00000000
May  5 13:45:42 w541 ppp[953]: tun0: LCP:  MRU[4] 1500
May  5 13:45:42 w541 ppp[953]: tun0: LCP:  MAGICNUM[6] 0xe9518ca7
May  5 13:45:42 w541 ppp[953]: tun0: LCP: deflink: SendConfigAck(3) state
= Stopped
May  5 13:45:42 w541 ppp[953]: tun0: LCP:  AUTHPROTO[5] 0xc223 (CHAP 0x05)
May  5 13:45:42 w541 ppp[953]: tun0: LCP:  ACFCOMP[2]
May  5 13:45:42 w541 ppp[953]: tun0: LCP:  PROTOCOMP[2]
May  5 13:45:42 w541 ppp[953]: tun0: LCP:  MRU[4] 1500
May  5 13:45:42 w541 ppp[953]: tun0: LCP:  ACCMAP[6] 0x00000000
May  5 13:45:42 w541 ppp[953]: tun0: LCP:  MAGICNUM[6] 0x56f73a62
May  5 13:45:42 w541 ppp[953]: tun0: LCP: deflink: LayerStart
May  5 13:45:42 w541 ppp[953]: tun0: LCP: deflink: State change Stopped
--> Ack-Sent
May  5 13:45:42 w541 ppp[953]: tun0: LCP: deflink: RecvConfigReq(4) state
= Ack-Sent
May  5 13:45:42 w541 ppp[953]: tun0: LCP:  AUTHPROTO[5] 0xc223 (CHAP 0x05)
May  5 13:45:42 w541 ppp[953]: tun0: LCP:  ACFCOMP[2]
May  5 13:45:42 w541 ppp[953]: tun0: LCP:  PROTOCOMP[2]
May  5 13:45:42 w541 ppp[953]: tun0: LCP:  MRU[4] 1500
May  5 13:45:42 w541 ppp[953]: tun0: LCP:  ACCMAP[6] 0x00000000
May  5 13:45:42 w541 ppp[953]: tun0: LCP:  MAGICNUM[6] 0x56f73a62
May  5 13:45:42 w541 ppp[953]: tun0: LCP: deflink: SendConfigAck(4) state
= Ack-Sent
May  5 13:45:42 w541 ppp[953]: tun0: LCP:  AUTHPROTO[5] 0xc223 (CHAP 0x05)
May  5 13:45:42 w541 ppp[953]: tun0: LCP:  ACFCOMP[2]
May  5 13:45:42 w541 ppp[953]: tun0: LCP:  PROTOCOMP[2]
May  5 13:45:42 w541 ppp[953]: tun0: LCP:  MRU[4] 1500
May  5 13:45:42 w541 ppp[953]: tun0: LCP:  ACCMAP[6] 0x00000000
May  5 13:45:42 w541 ppp[953]: tun0: LCP:  MAGICNUM[6] 0x56f73a62
May  5 13:45:42 w541 ppp[953]: tun0: LCP: deflink: RecvConfigAck(1) state
= Ack-Sent
May  5 13:45:42 w541 ppp[953]: tun0: LCP:  ACFCOMP[2]
May  5 13:45:42 w541 ppp[953]: tun0: LCP:  PROTOCOMP[2]
May  5 13:45:42 w541 ppp[953]: tun0: LCP:  ACCMAP[6] 0x00000000
May  5 13:45:42 w541 ppp[953]: tun0: LCP:  MRU[4] 1500
May  5 13:45:42 w541 ppp[953]: tun0: LCP:  MAGICNUM[6] 0xe9518ca7
May  5 13:45:42 w541 ppp[953]: tun0: LCP: deflink: State change Ack-Sent
--> Opened
May  5 13:45:42 w541 ppp[953]: tun0: LCP: deflink: LayerUp
May  5 13:45:42 w541 ppp[953]: tun0: LCP: deflink: SendIdent(0) state =
Opened
May  5 13:45:42 w541 ppp[953]: tun0: LCP:  MAGICNUM e9518ca7
May  5 13:45:42 w541 ppp[953]: tun0: LCP:  TEXT user-ppp 3.4.2
May  5 13:45:42 w541 ppp[953]: tun0: Phase: bundle: Authenticate
May  5 13:45:42 w541 ppp[953]: tun0: Phase: deflink: his = CHAP 0x05, mine
= none
May  5 13:45:42 w541 ppp[953]: tun0: LCP: deflink: RecvCodeRej(1) state =
Opened
May  5 13:45:42 w541 ppp[953]: tun0: Phase: Chap Input: CHALLENGE (63
bytes from Kermit)
May  5 13:45:42 w541 ppp[953]: tun0: Phase: Chap Output: RESPONSE
(web@telering.at)
May  5 13:45:42 w541 ppp[953]: tun0: Phase: Chap Input: SUCCESS
(Congratulations!)
May  5 13:45:42 w541 ppp[953]: tun0: CCP: FSM: Using "deflink" as a transport
May  5 13:45:42 w541 ppp[953]: tun0: CCP: deflink: State change Initial
--> Closed
May  5 13:45:42 w541 ppp[953]: tun0: CCP: deflink: LayerStart.
May  5 13:45:42 w541 ppp[953]: tun0: CCP: MPPE: Not usable without CHAP81
May  5 13:45:42 w541 ppp[953]: tun0: CCP: deflink: SendConfigReq(1) state
= Closed
May  5 13:45:42 w541 ppp[953]: tun0: CCP:  PRED1[2]
May  5 13:45:42 w541 ppp[953]: tun0: CCP: deflink: State change Closed -->
Req-Sent
May  5 13:45:42 w541 ppp[953]: tun0: Phase: deflink: lcp -> open
May  5 13:45:42 w541 ppp[953]: tun0: Phase: bundle: Network
May  5 13:45:42 w541 ppp[953]: tun0: IPCP: FSM: Using "deflink" as a
transport
May  5 13:45:42 w541 ppp[953]: tun0: IPCP: deflink: State change Initial
--> Closed
May  5 13:45:42 w541 ppp[953]: tun0: IPCP: deflink: LayerStart.
May  5 13:45:42 w541 ppp[953]: tun0: IPCP: deflink: SendConfigReq(1) state
= Closed
May  5 13:45:42 w541 ppp[953]: tun0: IPCP:  IPADDR[6] 127.0.0.1
May  5 13:45:42 w541 ppp[953]: tun0: IPCP:  COMPPROTO[6] 16 VJ slots with
slot compression
May  5 13:45:42 w541 ppp[953]: tun0: IPCP:  PRIDNS[6] 192.168.42.129
May  5 13:45:42 w541 ppp[953]: tun0: IPCP:  SECDNS[6] 255.255.255.255
May  5 13:45:42 w541 ppp[953]: tun0: IPCP: deflink: State change Closed
--> Req-Sent
May  5 13:45:42 w541 ppp[953]: tun0: LCP: deflink: RecvProtocolRej(1)
state = Opened
May  5 13:45:42 w541 ppp[953]: tun0: LCP: deflink: -- Protocol 0x80fd
(Compression Control Protocol) was rejected!
May  5 13:45:42 w541 ppp[953]: tun0: CCP: deflink: State change Req-Sent
--> Stopped
May  5 13:45:42 w541 ppp[953]: tun0: LCP: deflink: RecvTerminateReq(1)
state = Opened
May  5 13:45:42 w541 ppp[953]: tun0: LCP: deflink: LayerDown
May  5 13:45:42 w541 ppp[953]: tun0: LCP: deflink: SendTerminateAck(1)
state = Opened
May  5 13:45:42 w541 ppp[953]: tun0: LCP: deflink: State change Opened -->
Stopping
May  5 13:45:42 w541 ppp[953]: tun0: CCP: deflink: State change Stopped
--> Closed
May  5 13:45:42 w541 ppp[953]: tun0: CCP: deflink: State change Closed -->
Initial
May  5 13:45:42 w541 ppp[953]: tun0: Phase: deflink: open -> lcp
May  5 13:45:42 w541 ppp[953]: tun0: IPCP: deflink: State change Req-Sent
--> Starting
May  5 13:45:42 w541 ppp[953]: tun0: IPCP: deflink: LayerFinish.
May  5 13:45:42 w541 ppp[953]: tun0: IPCP: Connect time: 0 secs: 0 octets
in, 0 octets out
May  5 13:45:42 w541 ppp[953]: tun0: IPCP: 0 packets in, 0 packets out
May  5 13:45:42 w541 ppp[953]: tun0: IPCP:  total 0 bytes/sec, peak 0
bytes/sec on Tue May  5 13:45:42 2015
May  5 13:45:42 w541 ppp[953]: tun0: IPCP: deflink: State change Starting
--> Initial
May  5 13:45:42 w541 ppp[953]: tun0: Phase: bundle: Terminate
May  5 13:45:43 w541 ppp[953]: tun0: Phase: deflink: Carrier lost
May  5 13:45:43 w541 ppp[953]: tun0: LCP: deflink: State change Stopping
--> Starting
May  5 13:45:43 w541 ppp[953]: tun0: LCP: deflink: LayerFinish
May  5 13:45:43 w541 ppp[953]: tun0: LCP: deflink: State change Starting
--> Initial
May  5 13:45:43 w541 ppp[953]: tun0: Phase: deflink: Disconnected!
May  5 13:45:43 w541 ppp[953]: tun0: Phase: deflink: lcp -> logout
May  5 13:45:43 w541 ppp[953]: tun0: Phase: deflink: Disconnected!
May  5 13:45:43 w541 ppp[953]: tun0: Phase: deflink: logout -> hangup
May  5 13:45:43 w541 ppp[953]: tun0: Phase: deflink: Connect time: 27
secs: 377 octets in, 314 octets out
May  5 13:45:43 w541 ppp[953]: tun0: Phase: deflink: 10 packets in, 8
packets out
May  5 13:45:43 w541 ppp[953]: tun0: Phase:  total 25 bytes/sec, peak 137
bytes/sec on Tue May  5 13:45:43 2015
May  5 13:45:43 w541 ppp[953]: tun0: Phase: deflink: hangup -> closed
May  5 13:45:43 w541 ppp[953]: tun0: Phase: bundle: Dead
May  5 13:57:00 w541 ppp[953]: tun0: Command: /dev/ttyv0: quit
May  5 13:57:00 w541 ppp[953]: tun0: Phase: PPP Terminated (normal).

Could someone help me to solve this problem, that I could get a working
FreeBSD workstation ?

Thanks for answers.

Chris





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?0d9cded76411959bf4919c6a373c2734.squirrel>