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

[问题求助]请教,PPP拨号问题 [复制链接]

上一主题 下一主题
离线lj80117.
 
发帖
2080
C币
-140273
威望
384
贡献值
1
银元
-3
铜钱
4627
人人网人气币
0
只看楼主 倒序阅读 使用道具 楼主  发表于: 2009-05-01
我的猫已经.安装好了,用minicom拨号没有问题,就是不能建立PPP连接,为什么.?--------------彩票

chat .-f. 脚本名   chat程序没有任何反映.

请看我的脚本有没有问题

ppp-off
#!/bin/sh
#####.############.#####################################################(广告)
#
# Determine .the. device to be terminated.服务器
#
if .[ "$1" = "" ]; then教育
        .DEVICE=ppp0(广告)
else
    .    DEVICE=$1.
fi

###########################.###########.################################            杀毒
#
# If the pp.p0 pid file is present then the program is running. Stop i.t.    美容
if [ -r /var/r.un/$DEVICE.pid ]; the.n[成人用品]
        ki.ll -INT `cat /var/r.un/$DEVICE.pid`投资
#
# If the kill did not work then there is no p.rocess running fo.r this.
# pid. It may also .mean that the l.ock file will be left. You may wish电脑
# to del.ete the lock file at the same tim.e..
  .     . if [ ! "$?" = "0" ]; then外贸
                rm -f. /var/run/$DEVICE.p.id.
  .              echo "ERROR: .Removed stale pid file"外贸
       .         exit 1.
        fi
#
# Success.. Let pppd clea.n up its own junk.电影
        echo "PP link to $DEVICE terminated."http://upload.bbs.csuboy.com/Mon_1004/126_7067_4f4b5a14d6d2379.gif[/img]           建材
        exit 0
fi
#
# The ppp proc..ess is not running for ppp0教育
echo "ERROR: PPP link is not active. on $DEVI.CE".
exit 1


ppp-on

#!/bin/sh
#
# Script to initiate .a ppp connection. This is the first part of t.he学习
# pair of .scripts. This is not a secure p.air of scripts as the codes          婚庆
# are visible with the 'ps' command.  .Howeve.r, it is simple.[成人用品]
#
#. These are the par.ameters. Change as needed.           女人
TELEPHONE=96163                # The t.elephone number for t.he connection.
ACCOUNT=96163                # The acc.ount name for logon (as in. 'Geo.rge Burns')             电子
PASSWOR.D=96163             .   # The password for this account (and 'Gracie Allen.').
LOC.AL_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 desi.red. Normally 0.0.0.0域名
NETMASK=255.255.255..0        .# The proper netmask if needed域名
#
# Export them so that they will be avai.lable at 'ppp-on-di.aler' time.<性病>
expor.t TELEPHONE ACCOUNT PASSWORD.             汽车
#
# This is the. location of the scrip.t which dials the phone and logs.
# .in.  Pleas.e use the absolute file name as the $PATH variable is not             汽车
# us.ed on the connect op.tion.  (To do so on a 'root' account would be电脑
# .a security hole so don.'t ask.).
#
D.IALER_SCRI.PT=/etc/ppp/ppp-on-dialer    健康
#
# Initiate the connecti.on           女人
#
# I put most of the common options on this command.. Please, do.n't    健康
# forget the 'lock' option. or some programs such as mgetty will not.<性病>
# work. The asyncmap and escape will p.ermit the. PPP link to work with             电子
# a telnet or rlogin connecti.on. You ar.e welcome to make any changes.
# as desired. Don't use t.he 'defaultroute' option if you curre.ntly.
# have a d.efault route to an ethe.rnet gateway.虚拟主机
#
exec /usr/sbin/pppd debug lock modem. crtscts /dev/.modem 57600 \    外汇
        asyncmap 20A0000 escape FF kdebug 0 $LOCAL_IPREMOTE_IP \http://upload.bbs.csuboy.com/Mon_1004/126_7067_00bc4ff17adaaa0.gif[/img]           建材
    .    noipdefault netmask $NETMASK defaultroute connect $DIA.LER_SCRIPT教育


ppp-on-dialer
#!/bin/sh
#
# This is part 2 of the p.pp-on script. It will perform the con.nection投资
# proto.col .for the desired connection..
#
exec chat -v              .                          .        \外贸
.       TIMEOUT  .              3                                \           女人
        ABORT                '\n.BUSY\r'                .        \虚拟主机
        ABORT                '\.nNO ANSWER\r'                      .  \.
        ABORT                '\nRINGIN..G\r\n\r\nRINGING\r'        \电影
  .      ''                \rAT                           .     \虚拟主机
  ..      'OK-+++\c-OK'        ATH0                                \.
        TIMEOUT        .        30                              .  \(        游戏          )
        OK   .             ATDT.$TELEPHONE                        \.
        CONNECT                ''              .              .    \学习
       . ogin:--ogin:        $ACCOUNT                   .     \--------------彩票
        assword:  .      $PASSWORD.                        \    外汇

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

精彩

感动

搞笑

开心

愤怒

无聊

灌水
离线huandream1.
发帖
1997
C币
-559569
威望
361
贡献值
5
银元
-1
铜钱
4513
人人网人气币
0
只看该作者 沙发  发表于: 2010-04-13
帮帮忙啊各位老大

离线yueyehan.
发帖
2105
C币
-235151
威望
397
贡献值
1
银元
-3
铜钱
4728
人人网人气币
0
只看该作者 板凳  发表于: 2010-04-13
这个问题这么难吗?

离线涵冰.
发帖
2063
C币
-235248
威望
379
贡献值
1
银元
-1
铜钱
4644
人人网人气币
0
只看该作者 地板  发表于: 2010-04-13
直接执行chat "atdt163" 也没有任何反映,将冒号去到也没用。why?

离线期他待~~.
发帖
1934
C币
-235561
威望
376
贡献值
1
银元
-2
铜钱
4359
人人网人气币
0
只看该作者 4楼 发表于: 2010-04-13
没人知道吗?

离线computerfs.
发帖
2136
C币
5128
威望
390
贡献值
1
银元
-2
铜钱
4676
人人网人气币
0
只看该作者 5楼 发表于: 2010-04-13
等我把Linux装好了,去试试,然后告诉你why?
以前我是可以的

发帖
1937
C币
-140796
威望
351
贡献值
1
银元
-1
铜钱
4356
人人网人气币
0
只看该作者 6楼 发表于: 2010-04-13
我用的不是minicom,我直接用redhat自带的rp-pppoe来拨号。没有什么问题,我正在写一篇文档。你可以参照它来操作。
快速回复
限100 字节
如果您在写长篇帖子又不马上发表,建议存为草稿
 
上一个 下一个