# /etc/ppp/pap-secrets
# Secrets for authentication using PAP
# client server secret IP addresses
####### redhat-config-network will overwrite this part!!! (begin) ##########
####### redhat-config-network will overwrite this part!!! (end) ############
card * card
# /etc/ppp/chap-secrets
# Secrets for authentication using CHAP
# client server secret IP addresses
####### redhat-config-network will overwrite this part!!! (begin) ##########
####### redhat-config-network will overwrite this part!!! (end) ############
card * card
# /etc/ppp/peers/unicom
# this is ppp script for use chinaunicom's CDMA data service
#
ttyS1
115200
crtscts
connect '/usr/sbin/chat -v -f /etc/ppp/chat/unicom'
debug
nodetach
ipcp-accept-local
ipcp-accept-remote
defaultroute
user card
# /etc/ppp/peers/unicom
# this is ppp script for use chinaunicom's CDMA data service
#
ttyS1
115200
crtscts
connect '/usr/sbin/chat -v -f /etc/ppp/chat/unicom'
debug
nodetach
ipcp-accept-local
ipcp-accept-remote
defaultroute
user card
[root@Qiu soft]# pppd call unicom &
[root@Qiu soft]# Serial connection established.
using channel 3
Using interface ppp0
Connect: ppp0 <--> /dev/ttyS1
rcvd [LCP ConfReq id="0x1" <asyncmap 0x0> <auth chap MD5> <magic 0x94591900> <pcomp> <accomp>]
sent [LCP ConfReq id="0x1" <asyncmap 0x0> <magic 0xef7706ba> <pcomp> <accomp>]
sent [LCP ConfAck id="0x1" <asyncmap 0x0> <auth chap MD5> <magic 0x94591900> <pcomp> <accomp>]
rcvd [LCP ConfAck id="0x1" <asyncmap 0x0> <magic 0xef7706ba> <pcomp> <accomp>]
rcvd [CHAP Challenge id="0x1" <a76125222fa5f883cdf17a36a51fac491b7cc5cc753b5718e344>, name = ""]
sent [CHAP Response id="0x1" <c2ae53db87f6f888662ebf0953cd837e>, name = "card"]
rcvd [CHAP Success id="0x1" ""]
sent [IPCP ConfReq id="0x1" <addr 0.0.0.0> <compress VJ 0f 01>]
sent [CCP ConfReq id="0x1" <deflate 15> <deflate(old#) 15> <bsd v1 15>]
rcvd [IPCP ConfReq id="0x1" <compress VJ 0f 00> <addr 115.168.76.17>]
sent [IPCP ConfAck id="0x1" <compress VJ 0f 00> <addr 115.168.76.17>]
rcvd [CCP ConfReq id="0x1" < 12 06 00 00 00 01>]
sent [CCP ConfRej id="0x1" < 12 06 00 00 00 01>]
rcvd [IPCP ConfNak id="0x1" <addr 120.41.78.131>]
sent [IPCP ConfReq id="0x2" <addr 120.41.78.131> <compress VJ 0f 01>]
rcvd [CCP ConfRej id="0x1" <deflate 15> <deflate(old#) 15> <bsd v1 15>]
sent [CCP ConfReq id="0x2"]
rcvd [CCP ConfReq id="0x2"]
sent [CCP ConfAck id="0x2"]
rcvd [IPCP ConfAck id="0x2" <addr 120.41.78.131> <compress VJ 0f 01>]
local IP address 120.41.78.131
remote IP address 115.168.76.17
rcvd [CCP ConfAck id="0x2"]
rcvd [CCP TermReq id="0x3"]
CCP terminated by peer
sent [CCP TermAck id="0x3"]
Compression disabled by peer.
[root@Qiu soft]# ping 202.108.22.43 (baidu,没DNS,我没用到)
PING 202.108.22.43 (202.108.22.43): 56 data bytes
64 bytes from 202.108.22.43: seq="0" ttl="52" time="5264".398 ms
64 bytes from 202.108.22.43: seq="1" ttl="52" time="4365".162 ms
64 bytes from 202.108.22.43: seq="2" ttl="52" time="3485".195 ms
64 bytes from 202.108.22.43: seq="3" ttl="52" time="2585".206 ms
64 bytes from 202.108.22.43: seq="4" ttl="52" time="1665".183 ms
64 bytes from 202.108.22.43: seq="5" ttl="52" time="765".202 ms
64 bytes from 202.108.22.43: seq="6" ttl="52" time="605".222 ms
64 bytes from 202.108.22.43: seq="7" ttl="52" time="605".220 ms
64 bytes from 202.108.22.43: seq="8" ttl="52" time="625".222 ms
64 bytes from 202.108.22.43: seq="9" ttl="52" time="605".226 ms