4,465
社区成员




debug
logfile /var/log/pppd.log
lock
/dev/ttyUSB0
115200
user "card"
password "card"
crtscts
connect '/usr/sbin/chat -v -t3 -f td-connect-chat'
disconnect '/usr/sbin/chat -s -v -f td-disconnect-chat'
show-password
usepeerdns
noauth
noipdefault
novj
novjccomp
noccp
defaultroute
ipcp-accept-local
ipcp-accept-remote
ABORT 'NO CARRIER'
ABORT 'ERROR'
ABORT 'NO DIALTONE'
ABORT 'BUSY'
ABORT 'NO ANSWER'
REPORT CONNECT
TIMEOUT 10
"" "ATZ"
OK "ATE0V1"
OK "ATS0=0"
OK 'AT+CGDCONT=1,"IP","$USE_APN"'
OK "AT+CFUN=1"
TIMEOUT 30
OK "ATD*98*1#"
CONNECT ' '
root@syler1-desktop:/etc/ppp/peers# pppd connect 'chat -v "" "AT" "" "ATDT*99***1# CONNECT"' user any password any /dev/ttyUSB0 115200 nodetach crtscts show-password debug usepeerdns defaultroute
Script chat -v "" "AT" "" "ATDT*99***1# CONNECT" finished (pid 1875), status = 0x0
Serial connection established.
using channel 36
Using interface ppp0
Connect: ppp0 <--> /dev/ttyUSB0
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xff706eae> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x36 <mru 1500> <asyncmap 0xffffffff> <auth pap> <magic 0x11223344> <pcomp> <accomp>]
sent [LCP ConfAck id=0x36 <mru 1500> <asyncmap 0xffffffff> <auth pap> <magic 0x11223344> <pcomp> <accomp>]
rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0xff706eae> <pcomp> <accomp>]
sent [LCP EchoReq id=0x0 magic=0xff706eae]
sent [PAP AuthReq id=0x1 user="any" password="any"]
rcvd [LCP EchoRep id=0x0 magic=0x11223344]
rcvd [PAP AuthAck id=0x1 "Welcome"]
Remote message: Welcome
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-dns2 0.0.0.0>]
rcvd [LCP ProtRej id=0x37 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 [LCP TermReq id=0x38]
LCP terminated by peer
sent [LCP TermAck id=0x38]
Connection terminated.
Modem hangup
/*注:这些是一行,为了清晰显示所以分开*/
pppd connect 'chat -v "" "AT" "" "ATH0" "" "AT+CFUN=1" "" "AT+CGDCONT=1,IP,CMNET" ""
"ATDT*99***1# CONNECT"' user any password any /dev/ttyUSB0 115200 nodetach crtscts
show-password debug defaultroute usepeerdns ipcp-accept-local ipcp-accept-remote
noccp
"" "AT+CFUN=1"
root@desktop:/etc/ppp/peers# pppd connect 'chat -v "" "AT" "" "ATH0" "" "AT+CFUN=1" "" "AT+CGDCONT=1,IP,CMNET" "" "ATDT*99***1# CONNECT"' user any password any /dev/ttyUSB0 115200 nodetach crtscts show-password debug defaultroute usepeerdns ipcp-accept-local ipcp-accept-remote noccp
Script chat -v "" "AT" "" "ATH0" "" "AT+CFUN=1" "" "AT+CGDCONT=1,IP,CMNET" "" "ATDT*99***1# CONNECT" finished (pid 5611), status = 0x0
Serial connection established.
using channel 71
Using interface ppp0
Connect: ppp0 <--> /dev/ttyUSB0
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xd5725bcd> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0xe <mru 1500> <asyncmap 0xffffffff> <auth pap> <magic 0x11223344> <pcomp> <accomp>]
sent [LCP ConfAck id=0xe <mru 1500> <asyncmap 0xffffffff> <auth pap> <magic 0x11223344> <pcomp> <accomp>]
rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0xd5725bcd> <pcomp> <accomp>]
sent [LCP EchoReq id=0x0 magic=0xd5725bcd]
sent [PAP AuthReq id=0x1 user="any" password="any"]
rcvd [LCP EchoRep id=0x0 magic=0x11223344]
rcvd [PAP AuthAck id=0x1 "Welcome"]
Remote message: Welcome
PAP authentication succeeded
sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
rcvd [IPCP ConfReq id=0xf <addr 192.168.0.1>]
sent [IPCP ConfAck id=0xf <addr 192.168.0.1>]
rcvd [IPCP ConfRej id=0x1 <compress VJ 0f 01> <ms-dns2 0.0.0.0>]
sent [IPCP ConfReq id=0x2 <addr 0.0.0.0> <ms-dns1 0.0.0.0>]
rcvd [IPCP ConfNak id=0x2 <addr 10.141.31.178> <ms-dns1 221.130.33.60>]
sent [IPCP ConfReq id=0x3 <addr 10.141.31.178> <ms-dns1 221.130.33.60>]
rcvd [IPCP ConfAck id=0x3 <addr 10.141.31.178> <ms-dns1 221.130.33.60>]
Cannot determine ethernet address for proxy ARP
local IP address 10.141.31.178
remote IP address 192.168.0.1
primary DNS address 221.130.33.60
Script /etc/ppp/ip-up started (pid 5616)
Script /etc/ppp/ip-up finished (pid 5616), status = 0x0