umodem/ppp/3g stopped working after update from 9.0-RELEASE to
9-STABLE
Matthias Apitz
guru at unixarea.de
Fri Jun 29 07:30:21 UTC 2012
El día Friday, June 29, 2012 a las 08:02:17AM +0200, vermaden escribió:
> > I said this already: the /etc/ppp/ppp.conf file you are
> > using is completely broken and the log matches this;
> >
> > what should these AT cmds do in the section of 3g:
> >
> > 3g:
> > set device /dev/cuaU0
> > set speed 38400
> > set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.255 0.0.0.0
> > add default HISADDR
> > term
> > AT+CFUN=1
> > AT+CGDCONT=1,"IP","www.plusgsm.pl"
> > ATD*99#
> >
> > matthias
>
> I did not knew that its broken, I used the '3g'
> profile to connect, like that: # ppp -ddial 3g
>
> It worked very well without errors on 9.0-RELEASE
> and it stopped working after the update to the
> 9-STABLE, what is broken there?
I can't imagine that 9-STABLE delivers such a broken file (already
because the "www.plusgsm.pl" entry in your file); I do not know how you
did the update and if maybe this is the result of some kind of broken
merging; I'm attaching the original file out of SVM (CURRENT) and mine
which have a working entry 'umts'; try to rebuild from both a workin one
by hand;
matthias
--
Matthias Apitz
e <guru at unixarea.de> - 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
-------------- next part --------------
#################################################################
# PPP Sample Configuration File
# Originally written by Toshiharu OHNO
# Simplified 5/14/1999 by wself at cdrom.com
#
# See /usr/share/examples/ppp/ for some examples
#
# $FreeBSD: head/etc/ppp/ppp.conf 203943 2010-02-16 01:07:06Z jkim $
#################################################################
default:
set log Phase Chat LCP IPCP CCP tun command
ident user-ppp VERSION
# Ensure that "device" references the correct serial port
# for your modem. (cuau0 = COM1, cuau1 = COM2)
#
set device /dev/cuau1
set speed 115200
set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \
\"\" AT OK-AT-OK ATE1Q0 OK \\dATDT\\T TIMEOUT 40 CONNECT"
set timeout 180 # 3 minute idle timer (the default)
enable dns # request DNS info (for resolv.conf)
papchap:
#
# edit the next three lines and replace the items in caps with
# the values which have been assigned by your ISP.
#
set phone PHONE_NUM
set authname USERNAME
set authkey PASSWORD
set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
add default HISADDR # Add a (sticky) default route
-------------- next part --------------
#
# $Id: ppp.conf,v 1.1 2011/11/20 06:07:03 guru Exp $
#
# APN (AT+CGDCONT value): pinternet.interkom.de
#
#
#
default:
set log Phase Chat LCP IPCP CCP tun command
umts:
set device /dev/cuaU0.0 # device name in CURRENT
set speed 921600
#
set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \
\"\" AT OK-AT-OK ATZ OK \
AT+CFUN=1 OK \
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"
# NAT (not used by me)
# nat enable yes
# alias enable yes
# nat port tcp 192.168.0.0:ftp ftp
# nat port tcp 192.168.0.0:http http
nat enable yes
nat port udp 127.0.0.1:1024-1030 1024-1030
nat port tcp 127.0.0.1:22 22
set phone *99*1\#
set authname "xxxxx"
set authkey "xxxxx"
set timeout 300
set ifaddr 10.64.64.64/0 10.64.64.64/0 255.255.255.255 0.0.0.0
#
add default HISADDR # Add a (sticky) default route
enable dns
disable ipv6cp
# disable deflate
# disable pred1
More information about the freebsd-questions
mailing list