ppp-on的脚本分析

网络 网络管理
这里我们就来看看ppp-on的内容。看看这个脚本信息如何进行编制。那么具体的代码我们已经整理好呈现给大家了。

在不少编制中,我们都会见到ppp-on脚本的内容。那么这里我们就主要讲解一下这方面的知识吧。前面我们有文章提及过内核PPP的编制,也讲解过Linux下PPP的设置内容。那么这里我们则补充一下ppp-on脚本内容。那么不多说,具体代码如下:

=================================================================
#ppp-on 脚本
#!/bin/sh
TELEPHONE=*99***1#
LOCAL_IP=0.0.0.0
REMOTE_IP=0.0.0.0
NETMASK=255.255.255.0

DIALER_SCRIPT=/etc/ppp/ppp-on-dialer

exec /bin/pppd debug lock modem nocrtscts /dev/ttyS1 9600 \
asyncmap 20A0000 escape FF kdebug 0 $LOCAL_IP:$REMOTE_IP \
noipdefault netmask $NETMASK defaultroute connect $DIALER_SCRIPT
=================================================================
#ppp-on-dialer
#!/bin/sh
exec /bin/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*99***1# \
CONNECT '' \
================================================================
# options
/dev/ttyS1
9600
debug
kdebug 7
nocrtscts
modem
auth
-chap
noipdefault
defaultroute
user john_doe
lock
================================================================
#pap-secrets
# Secrets for authentication using PAP
# client server secret IP addresses
john_doe * "" *
================================================================
#chap-secrets
# Secrets for authentication using CHAP
# client server secret IP addresses
================================================================

责任编辑:佟健 来源: hi.baidu.com
相关推荐

2010-09-03 10:42:02

ppp-on

2010-09-03 11:33:55

PPPPPP-ON

2017-11-30 18:42:22

PythonCPU脚本分析

2010-09-03 14:18:32

ppp脚本

2010-09-06 10:47:00

PPP配置

2010-09-07 15:51:25

PPPPPPoE

2010-09-03 09:50:19

armPPP

2010-08-03 16:17:17

NFS协议

2010-09-03 09:28:55

PPPDDRMultilink

2010-09-03 10:33:38

ppp内核

2019-11-06 16:40:31

awkLinux文本分析工具

2019-03-21 14:30:15

Linux文本分析命令

2013-01-21 09:49:52

云存储云存储成本亚马逊S3

2011-09-02 10:29:30

脚本Linuxperl

2017-10-24 05:45:03

云计算云存储云迁移

2010-09-07 15:39:46

2010-09-03 11:10:04

ppp authent

2010-09-06 14:36:17

PPP Multili

2021-03-06 07:00:00

awk文本分析工具Linux

2020-07-07 10:50:19

Python丄则表达文本
点赞
收藏

51CTO技术栈公众号