From 2f52f563aea06d86c3a97452d65c7351307dcd68 Mon Sep 17 00:00:00 2001 From: jmc <> Date: Wed, 12 Jul 2006 07:46:41 +0000 Subject: [PATCH] add a gprs example; from stuart henderson ok henning --- src/etc/ppp/ppp.conf.sample | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/src/etc/ppp/ppp.conf.sample b/src/etc/ppp/ppp.conf.sample index 1b0b4211..4e2def8d 100644 --- a/src/etc/ppp/ppp.conf.sample +++ b/src/etc/ppp/ppp.conf.sample @@ -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