免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1544 | 回复: 7
打印 上一主题 下一主题

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

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2003-12-06 22:07 |只看该作者 |倒序浏览
我的猫已经安装好了,用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 ppp0 pid file is present then the program is running. Stop it.
if [ -r /var/run/$DEVICE.pid ]; then
        kill -INT `cat /var/run/$DEVICE.pid`
#
# If the kill did not work then there is no process running for this
# pid. It may also mean that the lock file will be left. You may wish
# to delete the lock file at the same time.
        if [ ! "$?" = "0" ]; then
                rm -f /var/run/$DEVICE.pid
                echo "ERROR: Removed stale pid file"
                exit 1
        fi
#
# Success. Let pppd clean up its own junk.
        echo "PP link to $DEVICE terminated."
        exit 0
fi
#
# The ppp process is not running for ppp0
echo "ERROR: PPP link is not active on $DEVICE"
exit 1


ppp-on

#!/bin/sh
#
# Script to initiate a ppp connection. This is the first part of the
# pair of scripts. This is not a secure pair of scripts as the codes
# are visible with the 'ps' command.  However, it is simple.
#
# These are the parameters. Change as needed.
TELEPHONE=96163                # The telephone number for the connection
ACCOUNT=96163                # The account name for logon (as in 'George Burns')
PASSWORD=96163                # The password for this account (and 'Gracie Allen')
LOCAL_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
NETMASK=255.255.255.0        # The proper netmask if needed
#
# Export them so that they will be available at 'ppp-on-dialer' time.
export TELEPHONE ACCOUNT PASSWORD
#
# This is the location of the script which dials the phone and logs
# in.  Please use the absolute file name as the $PATH variable is not
# used on the connect option.  (To do so on a 'root' account would be
# a security hole so don't ask.)
#
DIALER_SCRIPT=/etc/ppp/ppp-on-dialer
#
# Initiate the connection
#
# I put most of the common options on this command. Please, don't
# forget the 'lock' option or some programs such as mgetty will not
# work. The asyncmap and escape will permit the PPP link to work with
# a telnet or rlogin connection. You are welcome to make any changes
# as desired. Don't use the 'defaultroute' option if you currently
# have a default route to an ethernet gateway.
#
exec /usr/sbin/pppd debug lock modem crtscts /dev/modem 57600 \
        asyncmap 20A0000 escape FF kdebug 0 $LOCAL_IPREMOTE_IP \
        noipdefault netmask $NETMASK defaultroute connect $DIALER_SCRIPT


ppp-on-dialer
#!/bin/sh
#
# This is part 2 of the ppp-on script. It will perform the connection
# protocol for the desired 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:        $ACCOUNT                        \
        assword:        $PASSWORD                        \

论坛徽章:
0
2 [报告]
发表于 2003-12-07 13:03 |只看该作者

请教,PPP拨号问题

帮帮忙啊各位老大

论坛徽章:
0
3 [报告]
发表于 2003-12-07 22:16 |只看该作者

请教,PPP拨号问题

这个问题这么难吗?

论坛徽章:
0
4 [报告]
发表于 2003-12-08 10:27 |只看该作者

请教,PPP拨号问题

直接执行chat "atdt163" 也没有任何反映,将冒号去到也没用。why?

论坛徽章:
0
5 [报告]
发表于 2003-12-08 15:05 |只看该作者

请教,PPP拨号问题

没人知道吗?

论坛徽章:
0
6 [报告]
发表于 2003-12-08 17:09 |只看该作者

请教,PPP拨号问题

等我把Linux装好了,去试试,然后告诉你why?
以前我是可以的

论坛徽章:
0
7 [报告]
发表于 2003-12-13 15:14 |只看该作者

请教,PPP拨号问题

谢谢

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
8 [报告]
发表于 2003-12-13 18:13 |只看该作者

请教,PPP拨号问题

我用的不是minicom,我直接用redhat自带的rp-pppoe来拨号。没有什么问题,我正在写一篇文档。你可以参照它来操作。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP