主要参考了网上现有的文章。 只需要安装 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.

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