[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: ifcfg-pp0 Help



Fred J. Keller wrote:
> 
> Redhat uses this file to start a PPP connection.  I have looked at
> the file and have not been able to determine where the various
> keywords are defined.  Some are self explanitory, but others need
> further explanation.  I have searched the man pages and do not find
> any explanatin.
> 
> Could someone please point me in the right direction.
> 
> Thanks in advance,
> 
> Fred
 
Fred-o,

	Here is the best direction I can point you in:  Successful ppp init
scripts, using the SysV init style of other networking options. (with
the ifup devX) (i.e. : 'ifup eth0', or 'ifdown eth0') Seem to require 3
components: 2 scripts, and 1 module.  You may either have ppp in the
kernel, or as a module, however it does not appear that the module
autoloaded on my system. (Without configuring it that way).  On my home
system I have ppp linked right into the kernel.  So it does not matter. 
The two scripts are 'ifcfg-ppp0', and 'chat-ppp0'.  Now, of course you
have have several of this ppp0,ppp1,ppp2... etc.  But here are two
protoypes.

Here is [prototype] 'ifcfg-ppp0', which belongs in
'/etc/sysconfig/network-scripts' with 660 permissions.  This was
generated by Redhat's Netcfg (tm).
Aside from line speed, and perhaps port, I don't think there is too much
you need to change.
<snip>
PERSIST=yes
DEFROUTE=yes
ONBOOT=no
INITSTRING=ATZ
MODEMPORT=/dev/modem
LINESPEED=115200
ESCAPECHARS=no
DEFABORT=yes
HARDFLOWCTL=yes
DEVICE=ppp0
PPPOPTIONS=
DEBUG=no
PAPNAME=
REMIP=
IPADDR=
BOOTPROTO=none
MTU=1006
MRU=1500
DISCONNECTTIMEOUT=45
RETRYTIMEOUT=60
USERCTL=no
<snip>
====================================

OK Now, this is the Dial Script for PPP, called 'chat-ppp0', also in
'/etc/sysconfig/network-scripts'. 
<snip>
'ABORT' 'BUSY'
'ABORT' 'ERROR'
'ABORT' 'NO CARRIER'
'ABORT' 'NO DIALTONE'
'ABORT' 'Invalid Login'
'ABORT' 'Login incorrect'
'' 'ATZ'
'OK' 'ATDT555-1212'
'CONNECT' ''
'ogin:' 'myaccount'
'ord:' 'mypassword'
'TIMEOUT' '5'
'~--' 
<snip>


====================================

Hope this helps.


js



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]