summaryrefslogtreecommitdiff
path: root/etc/ppp
diff options
context:
space:
mode:
Diffstat (limited to 'etc/ppp')
-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