[讨论]成功用PCMCIA GC85 GPRS拨号,但不完善

包含网卡/无线网的网络问题和ADSL/校园网/宽带拨号支持及代理/共享等网络使用问题
回复
mrlabi
帖子: 12
注册时间: 2008-02-02 8:20
送出感谢: 0
接收感谢: 0

[讨论]成功用PCMCIA GC85 GPRS拨号,但不完善

#1

帖子 mrlabi » 2008-02-20 19:06

方法很简单:
建立一个拨号文件

代码: 全选

sudo gedit /etc/ppp/peers/gc85
把下面代码输入进去
/dev/ttyS2 # TTYS*自己看机器硬件配置
230400

defaultroute # use this interface for the default route
usepeerdns # use their DNS
nodetach # keep pppd in the foreground
crtscts # hardware flow control
lock # lock the serial port
noauth # don't expect authentication from the modem
local # don't use CD or DTR
debug # blah blah blah to STDERR

persist # keep re-connecting when dropped

# this section's not necessary at all, but here it is anyway.
#remotename ' '
user ' '
password ' '
show-password

lcp-echo-interval 0 # don't bother with echo requests, since
# t-mobile doesn't effing bother sending them back!
lcp-echo-failure 0
lcp-restart 1 # one-second resend

connect '/usr/sbin/chat -v -f /etc/ppp/chat-gc85'
disconnect '/usr/sbin/chat -v -f /etc/ppp/chat-gc85-disconnect'
然后

代码: 全选

sudo gedit /etc/ppp/chat-gc85
代码如下
SAY 'trying to connect...\n'
SAY '\n'

ABORT 'NO DIAL TONE' ABORT 'NO ANSWER' ABORT DELAYED

SAY 'Initializing modem\n'

"" AT+cfun=1
OK AT+cfun=1
OK AT+cgreg=1
OK AT

#"" AT+CSQ

SAY '\n'
SAY 'Setting APN\n'

# this context string came straight from t-mobile tier 3 tech support.
# The APN (internet2.voicestream.com) may be internet3 if your account is set
# up for public IP addresses. Mine isn't, so here we are.
#OK AT+CGDCONT=1,"IP","cmnet"

SAY '\n'
SAY 'Dialing...\n'

OK ATD*99***1#
CONNECT " "
在然后

代码: 全选

sudo gedit /etc/ppp/chat-gc85-disconnect
代码如下
"" "\K"
"" "+++ATH0"
SAY "Disconnected."
然后

代码: 全选

pppd call gc85
就可以了

但是,我用这个拨号成功后一般在3分钟左右会出现自动断线的情况,在中端中也没有任何提示。请高手看看是怎么回事?
我的拨号LOG在这里
rying to connect...

Initializing modem

+CGREG: 3

+CGREG: 5
AT+cfun=1
OK
AT+cfun=1
OK
AT+cgreg=1
OK
Setting APN


+CGREG: 5
AT
OK
Dialing...

AT+CSQ
+CSQ: 27,99

OK
AT+CGDCONT=1,"IP","cmnet"
OK
ATDT*99***1#
CONNECTSerial connection established.
using channel 1
Using interface ppp0
Connect: ppp0 <--> /dev/ttyS2
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xc64bf303> <pcomp> <accomp>]
rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0xc64bf303> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x17 <mru 1500> <asyncmap 0x0> <auth pap> <magic 0x299a6> <pcomp> <accomp>]
sent [LCP ConfAck id=0x17 <mru 1500> <asyncmap 0x0> <auth pap> <magic 0x299a6> <pcomp> <accomp>]
sent [PAP AuthReq id=0x1 user=" " password=" "]
rcvd [PAP AuthAck id=0x1 "PAP access OK"]
Remote message: PAP access OK
PAP authentication succeeded
sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
rcvd [IPCP ConfReq id=0x17 <addr 10.1.50.0> <compress VJ 0f 01>]
sent [IPCP ConfAck id=0x17 <addr 10.1.50.0> <compress VJ 0f 01>]
rcvd [LCP ProtRej id=0x18 80 fd 01 01 00 0f 1a 04 78 00 18 04 78 00 15 03 2f]
Protocol-Reject for 'Compression Control Protocol' (0x80fd) received
rcvd [IPCP ConfNak id=0x1 <addr 10.1.50.235> <ms-dns1 221.130.33.60> <ms-dns3 221.130.33.52>]
sent [IPCP ConfReq id=0x2 <compress VJ 0f 01> <addr 10.1.50.235> <ms-dns1 221.130.33.60> <ms-dns3 221.130.33.52>]
rcvd [IPCP ConfAck id=0x2 <compress VJ 0f 01> <addr 10.1.50.235> <ms-dns1 221.130.33.60> <ms-dns3 221.130.33.52>]
not replacing existing default route through eth0
Cannot determine ethernet address for proxy ARP
local IP address 10.1.50.235
remote IP address 10.1.50.0
primary DNS address 221.130.33.60
secondary DNS address 221.130.33.52
Script /etc/ppp/ip-up started (pid 5946)
Script /etc/ppp/ip-up finished (pid 5946), status = 0x0
gyne
帖子: 67
注册时间: 2008-05-05 0:01
送出感谢: 0
接收感谢: 0

#2

帖子 gyne » 2008-05-11 22:08

我也遇到一样的问题,帮顶下。
回复

回到 “网卡问题以及网络和拨号”