debian下使用ZTE的联通3G上网卡

公司发的3G卡有大半年没有用过了,主要是平时很少外出。今天测试了一下再debian下进行拨号配置,其实还是比较简单的。
主要参考了网上现有的文章。 只需要安装 wvdial, usb-modeswitch就可以了。
然后进行一下简单的配置,以下是我使用的配置文件
# cat wvdial.conf
[Dialer Defaults]
Init = AT+CGDCONT=1,”IP”,”uninet”
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init6 = AT+CFUN =1
Modem Type = Analog Modem
Baud = 115200
New PPPD = yes
Modem = /dev/ttyUSB2
ISDN = 0
Phone = *99#
Username = any
Auto DNS = 0
Password = any
New PPPD = yes
Idle Seconds = 300
Stupid Mode = 1

其实每一项的含义都可以man wvdial.conf查看的,比如Stupid Mode就是

Stupid Mode
When wvdial is in Stupid Mode, it does not attempt to interpret any prompts from the terminal server.
It starts pppd immediately after the modem connects. Apparently there are ISP’s that actually give you
a login prompt, but work only if you start PPP, rather than logging in. Go figure. Stupid Mode is
(naturally) disabled by default.
之前我没有添加这个配置,启动wvdial后就会处于等待的状态,配置这个选项后启动就立即进行拨号了。

此条目发表在Admin, System分类目录。将固定链接加入收藏夹。

发表评论