Browse Source

add a gprs example; from stuart henderson

ok henning
OPENBSD_4_0
jmc 18 years ago
parent
commit
2f52f563ae
1 changed files with 18 additions and 1 deletions
  1. +18
    -1
      src/etc/ppp/ppp.conf.sample

+ 18
- 1
src/etc/ppp/ppp.conf.sample View File

@ -4,7 +4,7 @@
#
# Originally written by Toshiharu OHNO
#
# $OpenBSD: ppp.conf.sample,v 1.21 2002/06/09 06:15:15 todd Exp $
# $OpenBSD: ppp.conf.sample,v 1.22 2006/07/12 07:46:41 jmc Exp $
#
#################################################################
@ -101,6 +101,23 @@ ondemand:
add default HISADDR
enable dns
# To connect via a GPRS device (e.g. a mobile phone), it's often
# necessary to set the access-point name (in this case 'internet')
# which requires quotes in the dial string. This section shows
# the escaping required.
#
gprs:
set device /dev/cuaU0
set dial "ABORT ERROR ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \
\"\" ATZ OK-ATZ-OK AT+CGDCONT=1,\\\"IP\\\",\\\"internet\\\" OK \\dATD\\T TIMEOUT 40 CONNECT"
set phone "*99#"
set speed 115200
set login
set timeout 0
set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
add default HISADDR
enable dns
# Example segments
#
# The following lines may be included as part of your configuration


Loading…
Cancel
Save