Re: problems in ppp negotiating

2011-11-16 Thread Denise H. G.

On 2011/11/16 at 03:25, Matthias Apitz  wrote:
> 
> El día Wednesday, November 16, 2011 a las 01:14:42AM +0800, Denise H. G. 
> escribió:
>> Hi
>> 
>> What is in your /etc/ppp.conf? To better locate your problem, you'd
>> better show us the config file.
> 
> Hello,
> 
> I was thinking in this, but then I realized that the ppp.bad file
> contained it, even the SIM PIN; anyway, here it is:
> 
> 
> # 
> default:
>  set log Phase Chat LCP IPCP CCP tun command
> 
> umts:
> 
>  set device /dev/cuaU0.0 # device name in CURRENT
>  set speed 230400
> 
>  set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \
> \"\" AT OK-AT-OK ATZ OK \
> AT+CFUN=1 OK \
> at+cpin="4708" O \
> AT+COPS=0 OK \
> AT+CGDCONT=1,\\\"IP\\\",\\\"pinternet.interkom.de\\\" OK \
> \\dATDT\\T TIMEOUT 40 CONNECT"
> 
>  set logout "ABORT BUSY ABORT ERROR TIMEOUT 30 \"\" +++ATH O ATH OK"
> 
>  set phone *99*1\#
>  set authname "fonic"
>  set authkey "fonic"
>  set timeout 300
>  set ifaddr 0.0.0.0/0 10.64.64.64/0 255.255.255.0 0.0.0.0

The line above might be the problem. If you dial mode is NOT `auto', you
don't need `set ifaddr' thing, according to the manual of `ppp(8)'. Or
you are using `auto' mode to dial up, give it try to use:

set ifaddr 10.64.64.64/0 10.64.64.64/0 255.255.255.255 0.0.0.0

This part of the ppp configuration is about using IPCP protocal to
negotiate IP address. And your attached ppp logs have IPCP errors.
Anyway, I am not sure if this would help or not. Just give it try.

Regards.

>  add default HISADDR# Add a (sticky) default route
>  enable dns
>  disable ipv6cp
> -- 
> Matthias Apitz
> e  - w http://www.unixarea.de/
> UNIX since V7 on PDP-11, UNIX on mainframe since ESER 1055 (IBM /370)
> UNIX on x86 since SVR4.2 UnixWare 2.1.2, FreeBSD since 2.2.5
>  



-- 
Hindsight is an exact science.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: problems in ppp negotiating

2011-11-15 Thread Matthias Apitz
El día Wednesday, November 16, 2011 a las 01:14:42AM +0800, Denise H. G. 
escribió:

> Hi
> 
>   What is in your /etc/ppp.conf? To better locate your problem, you'd
>   better show us the config file.

Hello,

I was thinking in this, but then I realized that the ppp.bad file
contained it, even the SIM PIN; anyway, here it is:


# 
default:
 set log Phase Chat LCP IPCP CCP tun command

umts:

 set device /dev/cuaU0.0 # device name in CURRENT
 set speed 230400

 set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \
\"\" AT OK-AT-OK ATZ OK \
AT+CFUN=1 OK \
at+cpin="4708" O \
AT+COPS=0 OK \
AT+CGDCONT=1,\\\"IP\\\",\\\"pinternet.interkom.de\\\" OK \
\\dATDT\\T TIMEOUT 40 CONNECT"

 set logout "ABORT BUSY ABORT ERROR TIMEOUT 30 \"\" +++ATH O ATH OK"

 set phone *99*1\#
 set authname "fonic"
 set authkey "fonic"
 set timeout 300
 set ifaddr 0.0.0.0/0 10.64.64.64/0 255.255.255.0 0.0.0.0
 add default HISADDR# Add a (sticky) default route
 enable dns
 disable ipv6cp
-- 
Matthias Apitz
e  - w http://www.unixarea.de/
UNIX since V7 on PDP-11, UNIX on mainframe since ESER 1055 (IBM /370)
UNIX on x86 since SVR4.2 UnixWare 2.1.2, FreeBSD since 2.2.5
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: problems in ppp negotiating

2011-11-15 Thread Denise H. G.
Hi

  What is in your /etc/ppp.conf? To better locate your problem, you'd
  better show us the config file.

Regards!

-- 
Hindsight is an exact science.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


problems in ppp negotiating

2011-11-15 Thread Matthias Apitz

Hello,

I'm using ppp(8) to connect my netbook to my UMTS ISP, which works
reasonable well; from time to time I encounter the situation that it is
unwilling to negotiate with the peer, it stops with:

Nov 15 12:28:41 tiny ppp[1370]: tun6: Phase: deflink: Too many IPCP REQs 
sent - abandoning negotiation

this is for any attempt during some minutes (or even hours) and then it
connects without any change on my ppp.conf;

I'm attaching a log of ppp.bad and one of ppp.good; any ideas what I
could do in my config?

Thanks

matthias
-- 
Matthias Apitz
e  - w http://www.unixarea.de/
UNIX since V7 on PDP-11, UNIX on mainframe since ESER 1055 (IBM /370)
UNIX on x86 since SVR4.2 UnixWare 2.1.2, FreeBSD since 2.2.5
Nov 15 12:28:52 tiny ppp[1370]: tun6: Phase: bundle: Establish
Nov 15 12:28:52 tiny ppp[1370]: tun6: Phase: deflink: closed -> opening
Nov 15 12:28:52 tiny ppp[1370]: tun6: Phase: deflink: Connected!
Nov 15 12:28:52 tiny ppp[1370]: tun6: Phase: deflink: opening -> dial
Nov 15 12:28:52 tiny ppp[1370]: tun6: Chat: Phone: *99*1#
Nov 15 12:28:52 tiny ppp[1370]: tun6: Chat: deflink: Dial attempt 1 of 1
Nov 15 12:28:52 tiny ppp[1370]: tun6: Chat: Send: AT^M
Nov 15 12:28:52 tiny ppp[1370]: tun6: Chat: Expect(5): OK
Nov 15 12:28:52 tiny ppp[1370]: tun6: Chat: Received: AT^M^M
Nov 15 12:28:52 tiny ppp[1370]: tun6: Chat: Received: OK^M
Nov 15 12:28:52 tiny ppp[1370]: tun6: Chat: Send: ATZ^M
Nov 15 12:28:52 tiny ppp[1370]: tun6: Chat: Expect(5): OK
Nov 15 12:28:52 tiny ppp[1370]: tun6: Chat: Received: ATZ^M^M
Nov 15 12:28:52 tiny ppp[1370]: tun6: Chat: Received: OK^M
Nov 15 12:28:52 tiny ppp[1370]: tun6: Chat: Send: AT+CFUN=1^M
Nov 15 12:28:52 tiny ppp[1370]: tun6: Chat: Expect(5): OK
Nov 15 12:28:52 tiny ppp[1370]: tun6: Chat: Received: AT+CFUN=1^M^M
Nov 15 12:28:52 tiny ppp[1370]: tun6: Chat: Received: OK^M
Nov 15 12:28:52 tiny ppp[1370]: tun6: Chat: Send: at+cpin=4708^M
Nov 15 12:28:52 tiny ppp[1370]: tun6: Chat: Expect(5): O
Nov 15 12:28:52 tiny ppp[1370]: tun6: Chat: Received: at+cpin=4708^M^M
Nov 15 12:28:52 tiny ppp[1370]: tun6: Chat: Received: +CME ERROR: operation not 
allowed^M
Nov 15 12:28:52 tiny ppp[1370]: tun6: Chat: Send: AT+COPS=0^M
Nov 15 12:28:52 tiny ppp[1370]: tun6: Chat: Expect(5): OK
Nov 15 12:28:52 tiny ppp[1370]: tun6: Chat: Received: AT+COPS=0^M^M
Nov 15 12:28:52 tiny ppp[1370]: tun6: Chat: Received: OK^M
Nov 15 12:28:52 tiny ppp[1370]: tun6: Chat: Send: 
AT+CGDCONT=1,"IP","pinternet.interkom.de"^M
Nov 15 12:28:52 tiny ppp[1370]: tun6: Chat: Expect(5): OK
Nov 15 12:28:52 tiny ppp[1370]: tun6: Chat: Received: 
AT+CGDCONT=1,"IP","pinternet.interkom.de"^M^M
Nov 15 12:28:52 tiny ppp[1370]: tun6: Chat: Received: OK^M
Nov 15 12:28:52 tiny ppp[1370]: tun6: Chat: Send: ATDT*99*1#^M
Nov 15 12:28:54 tiny ppp[1370]: tun6: Chat: Expect(40): CONNECT
Nov 15 12:28:54 tiny ppp[1370]: tun6: Chat: Received: ATDT*99*1#^M^M
Nov 15 12:28:54 tiny ppp[1370]: tun6: Chat: Received: CONNECT^M
Nov 15 12:28:54 tiny ppp[1370]: tun6: Phase: deflink: dial -> carrier
Nov 15 12:28:55 tiny ppp[1370]: tun6: Phase: deflink: /dev/cuaU0.0 doesn't 
support CD
Nov 15 12:28:55 tiny ppp[1370]: tun6: Phase: deflink: carrier -> login
Nov 15 12:28:55 tiny ppp[1370]: tun6: Phase: deflink: login -> lcp
Nov 15 12:28:55 tiny ppp[1370]: tun6: LCP: FSM: Using "deflink" as a transport
Nov 15 12:28:55 tiny ppp[1370]: tun6: LCP: deflink: State change Initial --> 
Closed
Nov 15 12:28:55 tiny ppp[1370]: tun6: LCP: deflink: State change Closed --> 
Stopped
Nov 15 12:28:56 tiny ppp[1370]: tun6: LCP: deflink: LayerStart
Nov 15 12:28:56 tiny ppp[1370]: tun6: LCP: deflink: SendConfigReq(3) state = 
Stopped
Nov 15 12:28:56 tiny ppp[1370]: tun6: LCP:  ACFCOMP[2]
Nov 15 12:28:56 tiny ppp[1370]: tun6: LCP:  PROTOCOMP[2]
Nov 15 12:28:56 tiny ppp[1370]: tun6: LCP:  ACCMAP[6] 0x
Nov 15 12:28:56 tiny ppp[1370]: tun6: LCP:  MRU[4] 1500
Nov 15 12:28:56 tiny ppp[1370]: tun6: LCP:  MAGICNUM[6] 0xed29985d
Nov 15 12:28:56 tiny ppp[1370]: tun6: LCP: deflink: State change Stopped --> 
Req-Sent
Nov 15 12:28:56 tiny ppp[1370]: tun6: LCP: deflink: RecvConfigReq(3) state = 
Req-Sent
Nov 15 12:28:56 tiny ppp[1370]: tun6: LCP:  ACCMAP[6] 0x
Nov 15 12:28:56 tiny ppp[1370]: tun6: LCP:  AUTHPROTO[5] 0xc223 (CHAP 0x05)
Nov 15 12:28:56 tiny ppp[1370]: tun6: LCP:  MAGICNUM[6] 0x0a97f2dc
Nov 15 12:28:56 tiny ppp[1370]: tun6: LCP:  PROTOCOMP[2]
Nov 15 12:28:56 tiny ppp[1370]: tun6: LCP:  ACFCOMP[2]
Nov 15 12:28:56 tiny ppp[1370]: tun6: LCP: deflink: SendConfigAck(3) state = 
Req-Sent
Nov 15 12:28:56 tiny ppp[1370]: tun6: LCP:  ACCMAP[6] 0x
Nov 15 12:28:56 tiny ppp[1370]: tun6: LCP:  AUTHPROTO[5] 0xc223 (CHAP 0x05)
Nov 15 12:28:56 tiny ppp[1370]: tun6: LCP:  MAGICNUM[6] 0x0a97f2dc
Nov 15 12:28:56 tiny ppp[1370]: tun6: LCP:  PROTOCOMP[2]
Nov 15 12:28:56 tiny ppp[1370]: tun6: LCP:  ACFCOMP[2]
Nov 15 12:28:56 tiny ppp[1370]: tun6: LCP: deflink: State change Req-Sent --> 
Ack-Sent
Nov 15 12:28:56 tiny ppp[1370]: tun6: LCP: deflink: RecvConfigAck(3) s