华为ET127在CentOS5.x下面安装

1. 安装vmdial

$ sudo yum install vmdial

 

2. 安装usb_modeswitch

http://www.draisberghof.de/usb_modeswitch/ 可以搜索rpm包下载后安装


3. 编写udev rules文件

$ sudo cat /etc/udev/rules.d/10-huawei-et127.rules
ACTION=="add", BUS=="usb", SYSFS{modalias}=="usb:v12D1*", RUN+="/usr/sbin/usb_modeswitch -v 0x12d1 -p 0x1da1 -H 1"
BUS=="usb", SYSFS{modalias}=="usb:v12D1p1D09*", KERNEL=="ttyACM*", SYSFS{bInterfaceNumber}=="01", SYSFS{bInterfaceProtocol}=="01", NAME="ttyUSB_utps_modem"
BUS=="usb", SYSFS{modalias}=="usb:v12D1p1D09*", KERNEL=="ttyACM*", SYSFS{bInterfaceNumber}=="03", SYSFS{bInterfaceProtocol}=="01", NAME="ttyUSB_utps_mms"
BUS=="usb", SYSFS{modalias}=="usb:v12D1p1D09*", KERNEL=="ttyACM*", SYSFS{bInterfaceNumber}=="05", SYSFS{bInterfaceProtocol}=="01", NAME="ttyUSB_utps_pcui"

4.生成/etc/wvdial.conf
$ sudo wvdialconf /etc/wvdial.conf
$ sudo cat /etc/wvdial.conf

[Dialer Defaults]
Modem = /dev/ttyUSB_utps_mms
Baud = 460800
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init3 = AT+CGDCONT=1,"ip","cmnet"
ISDN = 0
Modem Type = Analog Modem
Phone = *99***1#
Username = any
Password = any

你可能感兴趣的:(centos)