行云无鸣

2010-06-16

3G网卡(CDMA2000)在Linux下拨号

Filed under: 乱语 — 标签:, , , — hellyguo @ 20:26

我的3G无线网卡是电信附送的EC1260,在Windows下和MAC OS X下都能正常运行。在Debian下,通过其自带的华为拨号软件,刚开始非常顺利。某次我更新Debian后,无线网卡无法被拨号器认出,重装拨号器也无效。不得以,只能在VM上的Windows下用3G网卡上网,非常不爽。
知道肯定有命令行命令直接处理,但一直忘记查。这次,记得了,查到了一个比较方便的拨号软件:wvdial。
安装
$ sudo apt-get install wvdial
使用
插上无线网卡后
$ sudo wvdialconf
生成一份基本配置/etc/wvdial.conf
根据自身情况编辑此文件
$ sudo vi /etc/wvdial.conf
这份是我编辑好的:

[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = Analog Modem
Baud = 9600
New PPPD = yes
Modem = /dev/ttyUSB0
ISDN = 0
; Phone = <Target Phone Number>
Phone = #777
; Password = <Your Password>
Password = vnet.mobi
; Username = <Your Login Name>
Username = ctnet@mycdma.cn
Dial Prefix =
Dial Attempts = 1
Dial Command = ATM1L3DT
Ask Password = off
Auto Reconnect = on
Abort on Busy = off
Carrier Check = no
Check Def Route = on
Abort on No Dialtone = on
Stupid Mode = on
Idle Seconds = 0
Auto DNS = on

拨号命令:
$ sudo wvdial
退出方式:
在当前窗口上按Ctrl+C

%d 博主赞过: