openwrt 3G无线上网卡拨号--以华为EC189为例

http://blog.csdn.net/crazyleen/article/details/21986541


3G无线上网卡拨号--以华为EC189为例

USB 3G网卡默认模式为闪存设备,使用usb-modeswitch切换3G网卡为usbserial模式,最终使用pppd拨号上网。

内核配置

只需选上pppusbserial

DeviceDrivers --->

[*] Network device support-->

<*> PPP (point-to-point protocol) support

[*] PPP multilink support (EXPERIMENTAL)

[*] PPP filtering

<*> PPP support for async serial ports

<*> PPP support for sync tty ports

<*> PPP Deflate compression

<*> PPP BSD-Compress compression

<*> PPP MPPE compression (encryption) (EXPERIMENTAL)

[*]USB support --->

<*> USB Serial Converter support --->

[*] USB Generic Serial Driver

<*> USB driver for GSM and CDMA modems


openwrt所需软件

ppp

chat

comgt

libpthread

librt

libusb-1.0

usb-modeswitch

zlib

openwrt配置文件

网络配置文件/etc/config/network

configinterface wan

optionifname 'ppp0'

optionservice 'evdo'

optiondevice '/dev/ttyUSB0'

optionusername 'ctnet@mycdma.cn'

optionpassword 'vnet.mobi'

optionproto 3g

optionauto 1

chat配置文件/etc/chatscripts/evdo.chat

ABORT BUSY

ABORT 'NO CARRIER'

ABORT ERROR

REPORT CONNECT

TIMEOUT10

'' AT

'OK-+++\c-OK'ATH0

TIMEOUT40

'' AT

OK 'ATDT#777'

CONNECT''


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值