论坛风格切换切换到宽版
  • 615阅读
  • 6回复

[问题求助]很菜的关于CDMA拨号的请教 [复制链接]

上一主题 下一主题
离线月季.
 
发帖
2168
C币
-198315
威望
440
贡献值
1
银元
-3
铜钱
4978
人人网人气币
0
只看楼主 倒序阅读 使用道具 楼主  发表于: 2009-05-01
很菜的关于CDMA拨号的请教

/usr/sbin/.ppp-on服务器
/usr/sbin/ppp-off . .
/e.tc/ppp/ppp-on-dialer.
都配了且具有可执行属性
运行ppp-on 后无法接入.网络。.
在/var/log/messages.里记录如下:外贸
Jan 17 11:28:55 Bluesky kern.el: CSLIP: code copyright 1989 Regent..s of the University of California              乙肝
Jan .17 11:28:55 Blu.esky kernel: PPP generic driver version 2.4.2           女人
Jan .17 11:28:55 Bluesky pppd[2180]: .pppd 2.4.1 started by root, uid 0.
Jan 17 11:28:56 Bluesky chat[2181]: timeout .se.t to 3 seconds             电子
Jan 17 11:28:56 Bluesky chat[2181]: abort on (\.nBUSY\r).             电子
Jan 17 11:28:56 Bl.uesky chat[2181.]: abort on (\nNO ANSWER\r).
J.an 17 11:28:56 Bluesky cha.t[2181]: abort on (\nRINGING\r\n\r\nRINGING\r)
Jan 17 11:28:56 Bluesk.y chat[2181]: send (rAT^M).    健康
Jan 17 11:28:56 .Bluesky c.hat[2181]: expect (OK)电脑
Jan 17 11:28:.59 Blue.sky chat[2181]: alarm.
Jan 17 11:28.:59 Bluesky chat[218.1]: send (+++)
Jan 17 1.1:28:59 Bluesky chat[2181]: expect (O.K)--- 印刷
Jan 17 11:29:02 Bl.uesky chat[2181.]: alarm             电子
Jan 17 1.1:29:02 Bluesky chat[21.81]: Failed虚拟主机
Jan 17 11:.29:02 Bluesky ppp.d[2180]: Connect script failed.
Jan 17 11:29:03 Bluesky pppd[218.0]: Exit..          婚庆

ppp-on 文件如下:
!/bin/sh
#
# Script to initiate a ppp connec.tion. This is the fir.st part of the--------------彩票
# pair of scripts. This is no.t a secure pair of sc.ripts as the codes域名
# are visible with. the 'ps' command.  However, it is .simple.教育
#
# The.se are. the parameters. Change as needed.投资
TELE.PHONE=#777          .# The telephone number for the connection(广告)
ACCOUNT=**** (隐去)     .   # The account name for logon (as in .'.George Burns')电影
PASSWORD=****(隐去) .     . . # The password for this account (and 'Gracie Allen').
L.OCAL_IP=0.0.0.0        # Local IP address if known. Dynamic =. 0.0.0.0服务器
REMOTE_IP=0.0.0.0        # Remote. IP address if desired. Normally 0.0.0.0.          婚庆
N.ETMASK=255.255.255.0        # The proper n.etmask if needed服务器
#
# Export them so .that they wil.l be available at 'ppp-on-dialer' time..
export TELEPHONE .A.CCOUNT PASSWORD              乙肝
#
# This is the location of the. sc.ript which dials the phone and logs--------------彩票
# i.n.  Please use t.he absolute file name as the $PATH variable is not.
# used on the connect option.  .(To d.o so on a 'root' account would be    健康
# a .security hole so don't as.k.).
#
DIALER_SCRIPT=/etc/.ppp/ppp-o.n-dialer
#
# Initiate the connect.ion           鲜花
#
# I put most of the common opt.ions on this command. Pl.ease, don't.
# forget the 'loc.k' option or .some programs such as mgetty will not电影
# work. The asyncmap a.nd escape .will permit the PPP link to work with            杀毒
# a telnet or rlogin connection. You are welcom..e to make any changes            杀毒
# as desired. Don't .use .the 'defaultroute' option if you currently.
# have a default rout.e .to an ethernet gateway.    健康
#
exec. /usr/sbin/pppd debug lock modem crtscts /dev/ttyS0 38400\.电脑
        asyncmap 20A0000 escape FF kdebug 0 $LOCAL_IPREMOTE_IP \http://upload.bbs.csuboy.com/Mon_1004/126_6830_00bc4ff17adaaa0.gif[/img]学习
        noipdefault netmask $NETMASK de.faultroute c.onnect $DIALER_SCRIPT.

ppp-o.n-dialer如下:虚拟主机
#!/bin/sh
#
# This is part 2 of t.he pp.p-on script. It will perform the connection电影
# protocol for the. des.ired connection.投资
#
exec chat -v  .                   .                           \           鲜花
        TIMEOUT                3                   . .            \            杀毒
        ABORT                '\nBUSY\r' .   .                    \健康
        ABORT    .            '\nNO ANSWER\r'          .              \.
        ABORT.                '.\nRINGING\r\n\r\nRINGING\r'        \    美容
        ''                \rAT           .                    . \    健康
        'OK-+++\c-OK'        ATH0                  .              .\--------------彩票
        .TIMEOUT                30                              .  \           鲜花
        OK               . ATDT$TELEPHONE                  .      \.
        .CONNECT                ''        .                        \            杀毒
   .     ogin:--ogin:        $ACCOU.NT                        \服务器
        assw.or.d:        $PASSWORD.




联通接入号码是#777
我怀疑是/u.sr/sbin/ppp-on中  TELEPHON.E=#777  的"#"号把接入号码当成注释了~~请问是这样吗?如果是怎样解决.~~希望高手给予指点,谢谢             汽车

评价一下你浏览此帖子的感受

精彩

感动

搞笑

开心

愤怒

无聊

灌水
发帖
1977
C币
-152657
威望
342
贡献值
1
银元
0
铜钱
4441
人人网人气币
0
只看该作者 沙发  发表于: 2010-04-13
在线等.....

离线mycoolfeng.
发帖
1957
C币
-627507
威望
342
贡献值
4
银元
-1
铜钱
4265
人人网人气币
0
只看该作者 板凳  发表于: 2010-04-13
加个引号试试.

离线efanlove.
发帖
2177
C币
-60029
威望
435
贡献值
1
银元
0
铜钱
5043
人人网人气币
0
只看该作者 地板  发表于: 2010-04-13
单引号双引号我都试过的,不行~~~

离线ppcynt.
发帖
1965
C币
-61033
威望
340
贡献值
1
银元
-4
铜钱
4335
人人网人气币
0
只看该作者 4楼 发表于: 2010-04-13
用反斜杠试过没有?

发帖
2053
C币
-60690
威望
400
贡献值
1
银元
0
铜钱
4618
人人网人气币
0
只看该作者 5楼 发表于: 2010-04-13
TELEPHONE=\#777这样试一下  

特服号居然是#开头的,真是够BT的,第一次见到

离线twttwt.
发帖
2015
C币
-60598
威望
373
贡献值
1
银元
-1
铜钱
4450
人人网人气币
0
只看该作者 6楼 发表于: 2010-04-13
能想的我都试过,  \#777  还是把#号后面的认为是注释
“#777” 和'#777' 倒是不会认成注释,但var/log/messages报的错误一样
ppp-on后连停顿都没有,马上就跳出下一个命令行....用ADSL拨号都会停顿一会儿的呀~~   CDMA连接没有问题,同一台机器我在WINDOWS下拨通了的,晕呀

快速回复
限100 字节
如果您在写长篇帖子又不马上发表,建议存为草稿
 
上一个 下一个