summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason McIntyre <jmc@cvs.openbsd.org>2006-07-12 07:46:42 +0000
committerJason McIntyre <jmc@cvs.openbsd.org>2006-07-12 07:46:42 +0000
commit09701e4edaafcfd2c1a83c31bf12d0815041c8b5 (patch)
tree1d92bd4d0a9b8c49bbc39f57e74f6be389e5ec67
parent5399afb75ee6826d6ce3b48287de19206aa34372 (diff)
add a gprs example; from stuart henderson
ok henning
-rw-r--r--etc/ppp/ppp.conf.sample19
1 files changed, 18 insertions, 1 deletions
diff --git a/etc/ppp/ppp.conf.sample b/etc/ppp/ppp.conf.sample
index 1b0b4211876..4e2def8d8db 100644
--- a/etc/ppp/ppp.conf.sample
+++ b/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