liunx 下pppd 电信拨号上网
配置如下
安装pppd软件()
[root@soldier ~]# yum install ppp-2.4.4-2.el5 -y
配置文件
[root@soldier ~]# cat /etc/ppp/peers/wcdma
#/etc/ppp/peers/wcdma
#This is pppd script, used Huawei EM770W(Union)
/dev/ttyS0 #mode连接的串口
38400
crtscts
modem
debug
nodetach
usepeerdns
defaultroute
user "xxxxx" #电信拨号的用户名
password "xxxxxxx" #面
0.0.0.0:0.0.0.0
connect '/usr/sbin/chat -s -v -f /etc/ppp/wcdma-connect-chat' 转拨的配置文件
[root@soldier ~]# cat /etc/ppp/wcdma-connect-chat
TIMEOUT 5
ABORT "DELAYED"
ABORT "BUSY"
ABORT "ERROR"
ABORT "NO DIALTONE"
ABORT "NO CARRIER"
''
AT
'OK-+++\c-OK' ATH0
TIMEOUT 40 #超时时间 最好大于40秒
'' AT
OK ATDTXXXXXXXXX # XXXXXXXX代表电话号码
CONNECT ''