"Dave Freeman" writes:
>For example, my ISP uses CHAP after a scripted login.  I have a
>suitable chap-secrets file and also have a suitable chat script. 

Ah, we start pppd with a "remotename $device" argument, so you
want to set up a line in /etc/ppp/chap-secrets that contains a
remotename of (say) ppp0

>-----8<-----
>DEVICE=ppp0
>IPADDR=[static ip of my ppp connection]

Actually, you can leave this blank and let ppp autonegotiate it

>NETMASK=255.255.255.0
>NETWORK=[ip of my isp's terminal server but with .0 at the end]
>BROADCAST=[ip of my isp's terminal server but with .255 at the end]
>GATEWAY=[ip of my isp's terminal server?]

Ditto for these three

>ONBOOT=no
>USERCTL=no
>BOOTPROTO=none
>PERSIST=yes
>MODEMPORT=/dev/ttys0
>LINESPEED=115200
>DEFABORT=yes
>DEFROUTE=yes
>ESCAPECHARS=yes
>HARDFLOWCTL=yes
>PPPOPTIONS=
>PAPNAME=
>REMIP=[ip of my isp's terminal server]

Ditto for this.

>MTU= 
>MRU= 
>DISCONNECTTIMEOUT=5
>RETRYTIMEOUT=60
>-----8<-----
>
>So, stuff left unsaid... if I want an option set by pppd do I leave 
>the option out of this config or give it some sort of default value 
>(like 0.0.0.0 for remote ip)?

Just leave it blank or remove it entirely, they are both the same:
REMIP=
is equivalent to having no REMIP line at all.

>Should this interface be set to 'no' for ONBOOT and USERCTL?

That's up to you.  Do you want it to come up at boot time?  Do
you want arbitrary users to be allowed to bring it up and down?
You probably want both of these off for a diald-controlled
interface, which I recall is what you want.

>If set 
>to 'yes' for ONBOOT will that initiate a dialup during boot?

Yes.

>What PPPOPTIONS are suitable to be added here?  My working slackware 
>copied ppp setup uses the following command line:

They are only rarely necessary.  Only put them in if you find options
that you know you need are missing.

>/usr/bin/pppd debug crtscts defaultroute lock modem persist  \
>              /dev/ttys0 115200 0.0.0.0/0.0.0.0 connect \
>              /etc/ppp/ppp-on-dialer
>
>If I choose to use default values for MTU/MRU should I leave blank 
>entries in my config file or just remove the entries from the config 
>file completely?

Either, they are equivalent.

>In addition, I need a chat script for the scripted part of my login.  
>This is currently in my /etc/ppp/ppp-on-dialer script and consists of 
>some thirteen lines.  The URL above refers to the chat script in 
>these terms:
>
>> /etc/sysconfig/network-scripts/chat-

Oops, there are some unescaped < characters in the html source.  That
should read
   /etc/sysconfig/network-scripts/chat-<device>

>> chat script for PPP or SLIP connection intended to establish the
>> connection. For SLIP devices, a DIP script is written from the chat
>> script; for PPP devices, the chat script is used directly. 
>
>from which I assume that I will need a 
>/etc/sysconfig/network-scripts/chat-ppp0 to contain my chat script 
>but I have no idea of the accepted format.

You can include an absolutely arbitrary chat script, with no restrictions
whatsoever on format.  It's the script, not the shell call to chat.  You
don't want your remote password on the command line; then folks could
read it while you are dialing.  So it is just expect/send pairs.

>Lastly, having been through the scripted login my ISP then runs a 
>CHAP authentication on the connection so I also need a chap-secrets 
>file.  This is currently in /etc/ppp/ and is working.  Where does the 
>chap-secrets file live in a RH5 ppp setup?  Should it also be moved 
>to /etc/sysconfig/network-scripts?

Nope, all the secrets files stay where they are.  Note that remotename
is set to the devicename by the ppp-up script, as noted before.

>In summary, I am assuming that I need the following files:
>
>/etc/sysconfig/ifcfg-ppp0
>/etc/sysconfig/chat-ppp0
>/etc/ppp/chap-secrets

Yup.

>Yep, that _IS_ good news.

Not only that, but at some point in the future it ought to configure
diald as well, though it won't at first.

michaelkjohnson

"Magazines all too frequently lead to books and should be regarded by the
 prudent as the heavy petting of literature."            -- Fran Lebowitz
 Linux Application Development       http://www.redhat.com/~johnsonm/lad/


-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
         To unsubscribe: mail [EMAIL PROTECTED] with 
                       "unsubscribe" as the Subject.

Reply via email to