gprs 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. # /etc/ppp/peers/gprs -- a example for use with a GPRS modem
  2. #
  3. # Change <user name> to the the one supplied by your provider and look
  4. # at /etc/ppp/chat/gprs for some GPRS specific settings. You'll also
  5. # need to add your password to the /etc/ppp/chap-secrets or
  6. # /etc/ppp/pap-secrets files. If the connection doesn't work try
  7. # changing some of the settings below.
  8. #
  9. # You'll also need to modify /etc/ppp/chat/gprs to include any AT
  10. # commands for setting up the GPRS connection and to set the phone
  11. # number to dial.
  12. #
  13. # You can then start/stop a connection with:
  14. # pon gprs
  15. # poff gprs
  16. #
  17. # Refer to the pppd(8) man page for more details.
  18. /dev/ttyGPRS
  19. 115200
  20. connect '/usr/sbin/chat -v -f /etc/ppp/chat/gprs'
  21. disconnect '/usr/sbin/chat -v -f /etc/ppp/chat/disconnect'
  22. user "foobar"
  23. noauth
  24. noipdefault
  25. defaultroute
  26. usepeerdns
  27. noproxyarp
  28. # PPP compression:
  29. # PPP compression may be used between the phone and the pppd, but the
  30. # serial connection is usually not the bottleneck in GPRS, so the
  31. # compression is useless (and with some phones needs to disabled before
  32. # the LCP negotiations succeed).
  33. noaccomp
  34. nobsdcomp
  35. nodeflate
  36. nopcomp
  37. noaccomp
  38. crtscts
  39. modem
  40. # No magic:
  41. # Some phones may require this option.
  42. #nomagic
  43. # Require PAP authentication:
  44. # Some phones may require this option.
  45. #require-pap
  46. # LCP echo requests:
  47. # Some phones don't support LCP echo requests (PPP keep-alives)
  48. # resulting pppd terminating the connection.
  49. lcp-echo-interval 0