第一種 [root@hornic ppp]# pppd call gprs timeout set to 15 seconds abort on (DELAYED) abort on (BUSY) abort on (ERROR) abort on (NO DIALTONE) abort on (NO CARRIER) timeout set to 40 seconds send (^MAT^M) expect (OK) AT^M^M OK -- got it send (ATS0=0^M) expect (OK) ^M ATS0=0^M^M OK -- got it send (ATE0V1^M) expect (OK) ^M ATE0V1^M^M OK -- got it send (AT+CGDCONT=1,"IP","INTERNET"^M) expect (OK) ^M ^M OK -- got it send (ATDT*99***1#^M) expect (CONNECT) ^M ^M ERROR -- failed Failed (ERROR) Connect script failed 第二種 [root@hornic ppp]# ./ppp-on BEGIN Serial connection established.ection at any stage! using channel 5 Using interface ppp0 Connect: ppp0 <--> /dev/ttyUSB0 sent [LCP ConfReq id=0x1 ] sent [LCP ConfReq id=0x1 ] sent [LCP ConfReq id=0x1 ] sent [LCP ConfReq id=0x1 ] sent [LCP ConfReq id=0x1 ] sent [LCP ConfReq id=0x1 ] sent [LCP ConfReq id=0x1 ] sent [LCP ConfReq id=0x1 ] sent [LCP ConfReq id=0x1 ] sent [LCP ConfReq id=0x1 ] LCP: timeout sending Config-Requests Connection terminated. Modem hangup