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
================================================================

 

责任编辑:佟健 来源: 百度空间
相关推荐

2010-09-06 14:14:32

ppp-on

2010-09-03 11:33:55

PPPPPP-ON

2010-09-03 14:18:32

ppp脚本

2010-09-03 09:50:19

armPPP

2010-09-07 15:39:46

2010-09-06 10:56:54

2010-09-09 17:27:43

PPP Multili

2010-09-06 12:37:11

pppLCP

2010-09-03 10:04:51

PPP Multili

2010-09-03 11:10:04

ppp authent

2010-09-06 14:32:55

CISCO PPP配置

2010-09-28 13:53:52

2010-09-06 14:36:17

PPP Multili

2010-09-03 11:15:02

CHAPppp

2010-09-03 09:13:53

2010-09-09 17:31:15

ppp authent

2010-09-06 14:26:51

pppCHAP

2010-09-06 10:47:00

PPP配置

2010-09-06 09:50:15

PPP封装

2010-09-06 10:34:56

PPP协议
点赞
收藏

51CTO技术栈公众号