电缆调制解调器互联网可用之前,我在公司有一个AT&T移动3G USB插件。DSL出线时,这是我的待命。
我发现使其工作最简单的方法是在安装Ubuntu时将其插入计算机。这就是我们在旅途中需要互联网时需要做的事情,并且需要从ubuntu中的POS应用程序运行人们的信用卡。我记得在路上使用的Ubuntu是10.04 ...?
当它在工作时,这些是使它联机的神奇步骤……SSH进入防火墙ubuntu服务器(编辑:刚刚选中,防火墙为9.04):
root@wall:~# cat do_this_for_3g.txt
nohup pppd call gsm &
# Then after DSL works, to kill the 3G...
ps aux | grep pppd
# root 18716 0.0 0.0 7528 888 pts/0 R+ 12:08 0:00 grep pppd
# root 23021 0.0 0.1 21668 1316 pts/0 S Mar15 0:00 pppd call gsm
kill 23021
/etc/init.d/networking restart
注意,这gsm_chat
是一个脚本/etc/ppp/peers
:
root@wall:/etc/ppp/peers# cat gsm_chat
# Connection script for Sierra Wireless GSM/UMTS modems
# Note: This demo script is setup to work on the Cingular EDGE network
#
SAY 'Starting Sierra Wireless GSM connect script...\n'
SAY '\n'
#######################################
SAY 'Setting the abort string\n'
SAY '\n'
# Abort String ------------------------------
ABORT 'NO DIAL TONE' ABORT 'NO ANSWER' ABORT 'NO CARRIER' ABORT DELAYED
#######################################
SAY 'Initializing modem\n'
# Modem Initialization
'' AT
OK ATZ
#######################################
SAY '\n'
SAY 'Setting APN\n'
# Access Point Name (APN)
# Incorrect APN or CGDCONT can often cause errors in connection.
# Below are a bunch of different popular APNs
#REG:\s1 AT+cgdcont=1,"IP","proxy"
#OK 'AT+CGDCONT=0,"IP","proxy"'
#OK 'AT+CGDCONT=1,"IP","proxy"'
#OK 'AT+CGDCONT=2,"IP","proxy"'
#OK 'AT+CGDCONT=0,"IP","ISP.CINGULAR"'
OK 'AT+CGDCONT=1,"IP","ISP.CINGULAR"'
#OK 'AT+CGDCONT=2,"IP","ISP.CINGULAR"'
#######################################
SAY '\n'
SAY 'Dialing...\n'
# Dial the ISP, this is the common Cingular dial string
OK ATD*99#
CONNECT ''
iwconfig
后的modprobe
命令?dmesg | grep -i sierra
插入卡后的输出是什么?