startup:
# configure mpd users
# configure the console
#set console self 127.0.0.1 5005
#set console open
# configure the web server
#set web self 0.0.0.0 5006
#set web open
#
# Default configuration is "dialup"
default:
load att
att:
create bundle static att
set bundle links B-Link
set bundle enable ipcp
#set bundle enable ipv6cp
set bundle enable compression
set bundle enable encryption
set iface route default
#set iface enable tcpmssfix
set ipcp ranges 0.0.0.0/0 10.0.0.1/0
#set ipcp dns 4.2.2.1
#set ipcp dns 4.2.2.2
set iface enable nat
create link static B-Link modem
set link action bundle att
#set link bandwidth 921600
set modem device /dev/cuaU0.3
set modem speed 921600
set modem script dial-att
set auth authname att
set auth password att
set link keep-alive 6 60
set link max-redial 0
open
dial-att:
print 'AT+CGDCONT=1,"IP","broadband"\r\n'
match OK
print "ATDT*99#\r\n"
match CONNECTED
success
print 'AT'
match OK
print 'ATZ'
match OK
print 'AT+CFUN=1'
match OK
print 'AT+CMEE=2'
match OK
print 'AT+CSQ'
match OK
print 'AT+CGDCONT=1,\\\"IP\\\",\\\"broadband\\\"'
match OK
print 'AT+CGACT?'
match OK
print 'AT+CGATT?'
match OK
print 'AT+CGCLASS?'
match OK
print 'AT+COPS?'
match OK
print 'ATD*99#'
match OK Connected
failure
Connected:
success
Here are my ATT files to save you some time. You will need to change the cuaU0. device to yours and change to your APN.
mpd.conf
Code:startup: # configure mpd users # configure the console #set console self 127.0.0.1 5005 #set console open # configure the web server #set web self 0.0.0.0 5006 #set web open # # Default configuration is "dialup" default: load att att: create bundle static att set bundle links B-Link set bundle enable ipcp #set bundle enable ipv6cp set bundle enable compression set bundle enable encryption set iface route default #set iface enable tcpmssfix set ipcp ranges 0.0.0.0/0 10.0.0.1/0 #set ipcp dns 4.2.2.1 #set ipcp dns 4.2.2.2 set iface enable nat create link static B-Link modem set link action bundle att #set link bandwidth 921600 set modem device /dev/cuaU0.3 set modem speed 921600 set modem script dial-att set auth authname att set auth password att set link keep-alive 6 60 set link max-redial 0 open