关于linux ppp 拨号问题
我是在FC3,内核2.6.9。我把附件里的文件放到相应该的目录提示如二楼,修改了options提示如三楼,能连接得上网络,并分配得了IP的DNS,然后不到几秒就自动断开了,是何问题导致呢?在这请各位高手指点。 现在是这样:# pppd file /etc/ppp/peers/gprs
Press CTRLC to close the connection at any stage!
defining PDP context...
rAT
OK
ATE1
OK
AT+CMEE=2
OK
AT+CGDCONT=1
OK
AT+CGDCONT=1,,"cmnet",,0,0
OK
waiting for connect...
ATD*99#
CONNECT
Connected.
If the following ppp negotiations fail,
try restarting the phone.
Serial connection established.
using channel 1
Using interface ppp0
Connect: ppp0 <> /dev/ircomm0
sent
rcvd
sent
rcvd
sent
rcvd
sent
sent
sent
rcvd
Remote message: Login OK
PAP authentication succeeded
sent
sent
sent
rcvd
sent
rcvd
sent
rcvd
localIP address 10.16.130.35
remote IP address 192.200.1.21
primary DNS address 211.136.17.107
secondary DNS address 211.136.18.171
Script /etc/ppp/ipup started (pid 3582)
Script /etc/ppp/ipup finished (pid 3582), status = 0x0
rcvd
Script /etc/ppp/ipdown started (pid 3589)
sent
sent
Script /etc/ppp/ipdown finished (pid 3589), status = 0x0
rcvd
sent
sent
rcvd
sent
sent
rcvd
sent
sent
rcvd
sent
sent
rcvd
LCP terminated by peer (No network protocols running)
sent
rcvd
Connection terminated.
Connect time 0.3 minutes.
Sent 138 bytes, received 64 bytes.
Sending break to the modem
+++ATH
OK
PDP context detached
AT+CGATT
disconnect script failed
Connect time 0.3 minutes.
Sent 138 bytes, received 64 bytes.
# # pppd file /etc/ppp/peers/gprs
Press CTRL-C to close the connection at any stage!
defining PDP context...
rAT
OK
ATE1
OK
AT+CMEE=2
OK
AT+CGDCONT=1
OK
AT+CGDCO,0,0
OK
waiting for connect...
ATD*99#
CONNECT
Connected.
If the following ppp negotiations fail,
try restarting the phone.
Serial connection established.
using channel 2
Using interface ppp0
Connect: ppp0 <--> /dev/ircomm0
sent
rcvd
sent
rcvd
sent
rcvd
sent
sent
sent
rcvd
Remote message: Login OK
PAP authentication succeeded
sent
sent
sent
rcvd
sent
rcvd
sent
rcvd
localIP address 10.16.174.189
remote IP address 192.200.1.21
primary DNS address 211.136.17.107
secondary DNS address 211.136.18.171
Script /etc/ppp/ip-up started (pid 3631)
Script /etc/ppp/ip-up finished (pid 3631), status = 0x0
rcvd
Script /etc/ppp/ip-down started (pid 3638)
sent
sent
rcvd
sent
rcvd
localIP address 10.16.174.189
remote IP address 192.200.1.21
primary DNS address 211.136.17.107
secondary DNS address 211.136.18.171
Script /etc/ppp/ip-down finished (pid 3638), status = 0x0
Script /etc/ppp/ip-up started (pid 3651)
Script /etc/ppp/ip-up finished (pid 3651), status = 0x0
rcvd
Script /etc/ppp/ip-down started (pid 3658)
sent
sent
Script /etc/ppp/ip-down finished (pid 3658), status = 0x0
sent
rcvd
sent
sent
rcvd
sent
sent
rcvd
sent
rcvd
sent
sent
rcvd
sent
rcvd
localIP address 10.16.174.189
remote IP address 192.200.1.21
primary DNS address 211.136.17.107
secondary DNS address 211.136.18.171
Script /etc/ppp/ip-up started (pid 3671)
Script /etc/ppp/ip-up finished (pid 3671), status = 0x0
rcvd
Script /etc/ppp/ip-down started (pid 3678)
sent
sent
rcvd
sent
rcvd
localIP address 10.16.174.189
remote IP address 192.200.1.21
primary DNS address 211.136.17.107
secondary DNS address 211.136.18.171
Script /etc/ppp/ip-down finished (pid 3678), status = 0x0
Script /etc/ppp/ip-up started (pid 3691)
Script /etc/ppp/ip-up finished (pid 3691), status = 0x0
rcvd
Script /etc/ppp/ip-down started (pid 3698)
sent
sent
Script /etc/ppp/ip-down finished (pid 3698), status = 0x0
rcvd
sent
sent
rcvd
sent
sent
rcvd
sent
sent
rcvd
LCP terminated by peer (No network protocols running)
sent
rcvd
Connection terminated.
Connect time 0.7 minutes.
Sent 548 bytes, received 266 bytes.
Sending break to the modem
+++ATHFailed
disconnect script failed
Connect time 0.7 minutes.
Sent 548 bytes, received 266 bytes.
# 现在在option加入ipcp-accept-local
ipcp-accept-remote,提示如下:
# pppd file /etc/ppp/peers/gprs
Press CTRL-C to close the connection at any stage!
defining PDP context...
rAT
OK
ATE1
OK
AT+CMEE=2
OK
AT+CGDCONT=1
OK
AT+CGDCO,0,0
OK
waiting for connect...
ATD*99#
CONNECT
Connected.
If the following ppp negotiations fail,
try restarting the phone.
Serial connection established.
using channel 2
Using interface ppp0
Connect: ppp0 <--> /dev/ircomm0
sent
rcvd
sent
rcvd
sent
rcvd
sent
sent
sent
rcvd
Remote message: Login OK
PAP authentication succeeded
sent
sent
sent
rcvd
sent
rcvd
sent
rcvd
localIP address 10.16.174.189
remote IP address 192.200.1.21
primary DNS address 211.136.17.107
secondary DNS address 211.136.18.171
Script /etc/ppp/ip-up started (pid 3631)
Script /etc/ppp/ip-up finished (pid 3631), status = 0x0
rcvd
Script /etc/ppp/ip-down started (pid 3638)
sent
sent
rcvd
sent
rcvd
localIP address 10.16.174.189
remote IP address 192.200.1.21
primary DNS address 211.136.17.107
secondary DNS address 211.136.18.171
Script /etc/ppp/ip-down finished (pid 3638), status = 0x0
Script /etc/ppp/ip-up started (pid 3651)
Script /etc/ppp/ip-up finished (pid 3651), status = 0x0
rcvd
Script /etc/ppp/ip-down started (pid 3658)
sent
sent
Script /etc/ppp/ip-down finished (pid 3658), status = 0x0
sent
rcvd
sent
sent
rcvd
sent
sent
rcvd
sent
rcvd
sent
sent
rcvd
sent
rcvd
localIP address 10.16.174.189
remote IP address 192.200.1.21
primary DNS address 211.136.17.107
secondary DNS address 211.136.18.171
Script /etc/ppp/ip-up started (pid 3671)
Script /etc/ppp/ip-up finished (pid 3671), status = 0x0
rcvd
Script /etc/ppp/ip-down started (pid 3678)
sent
sent
rcvd
sent
rcvd
localIP address 10.16.174.189
remote IP address 192.200.1.21
primary DNS address 211.136.17.107
secondary DNS address 211.136.18.171
Script /etc/ppp/ip-down finished (pid 3678), status = 0x0
Script /etc/ppp/ip-up started (pid 3691)
Script /etc/ppp/ip-up finished (pid 3691), status = 0x0
rcvd
Script /etc/ppp/ip-down started (pid 3698)
sent
sent
Script /etc/ppp/ip-down finished (pid 3698), status = 0x0
rcvd
sent
sent
rcvd
sent
sent
rcvd
sent
sent
rcvd
LCP terminated by peer (No network protocols running)
sent
rcvd
Connection terminated.
Connect time 0.7 minutes.
Sent 548 bytes, received 266 bytes.
Sending break to the modem
+++ATHFailed
disconnect script failed
Connect time 0.7 minutes.
Sent 548 bytes, received 266 bytes.
# 自己支持,希望各位高手指点。好早实现我的自由梦....
页:
[1]