[openbeosnetteam] Re: How to do PPP?

> Actually I think I prefer adding some of the flexibility of the unix 
> type
> approaches. Namely we allow for a default, but also named 
> connections, so we
> can call pppconfig work to dial work and pppconfig isp to dial the 
> isp.

That's pretty much what BONE does; "pppconfig up" will just use the 
default script at /etc/dialer/xxx (whereas xxx has changed from version 
to version, AFAIR in the last BONE beta it was boneyard-ppp).
But you can also say something like "pppconfig xyz up" where /etc/
dialer/xyz is used.
The config files read like this:

PPPoE/PPP over serial:

# "ppp_type"            "serial" / "pppoe" / "pptp"
# "device"              path to device on which ppp will be run (e.g. /dev/
ports/serial2)
# "user"                        user name (e.g. bguccione)
# "password"    password (e.g. hefsux)
# (note that if you omit the "user" or "password" settings, pppconfig 
will prompt you for them)

ppp_type pppoe
device /dev/net/tulip/0

and PPP over serial special settings (which aren't necessary for 
PPPoE):

# Additional manditory setting for serial ppp
#
# "modeminit"           modem init string (e.g. atz)
# "phone_number"        phone number to dial (e.g. 9,15551212)
#
# Optional settings:
#
# "portspeed"           port speed setting      (19200, etc)
# "autodial"                    autodial on/off (1/0)
# "retry_count"         number of retry attempts (0 = don't retry)
# "retry_delay"         number of seconds between retry attempts
# "flow_control"                "hw" (rts/cts flow control) / "sw" (xon/xoff 
flow control) / "none"
# "pulse_dial"          pulse dial rather than tone dial (1/0)
# "dial_prefix"         string to be prefixed to the phone number (e.g., 
"9,")
# "scriptfile"                  path to alternate connect scripts (e.g. /etc/
dialer/myscript)
# "connect_timeout"     maximum time for your modem to dial and connect (in 
secs) (e.g. 60)
# "chat_mode"           "auto" (start PPP if chat times out) / "disable" 
(start PPP immediately after connect) / "require" (never start PPP 
until chat has sent username/password)
# "chat_timeout"                maximum "dead air" chat will endure
#
# for example:
#

ppp_type serial
portspeed 115200
modeminit AT&F
dial_prefix 9,
phone_number 5551212
device /dev/ports/lucent

Adios...
   Axel.



Other related posts: