求助华为et127 3g网卡在linuxdeepin上安装(已解决)
Tofloor
poster avatar
dwdcth
deepin
2012-12-18 19:34
Author
华为et127,自带linux驱动和管理软件,安装顺利,
使用自带的软件或是usb_modeswitch都可以连上移动,可是上不来网,如图:
et1.png
使用ifconfig查看
ppp0      Link encap:点对点协议  
          inet 地址:10.150.33.164  点对点:192.200.1.21  掩码:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  跃点数:1
          接收数据包:53 错误:0 丢弃:0 过载:0 帧数:0
          发送数据包:59 错误:0 丢弃:0 过载:0 载波:0
          碰撞:0 发送队列长度:3
          接收字节:8061 (8.0 KB)  发送字节:5188 (5.1 KB)
后来route add default gw 10.150.33.164 把默认网关设为了
10.150.33.164,并sudo ifconfig eth0 down关掉有线后,只能ping通百度的ip,
ping不通域名.
我已经搜索了,大部分是用usb_modeswitch+wvdial,或者gnome-ppp,这些我
都试了,都只能连上移动,但不能上网,我觉得可能是路由或dns的问题,希望大神
帮助!


这个问题困扰了我好几天了,现在终于解决了,现在分享给使用3g网卡的同学:
第一种: deepin可以直接识别,不用说了
第二种:usb-modeswitch和wvdial/gnome-ppp/网卡自带拨号程序,或者不要usb-modeswitch
usb-modeswitch用来让系统识别3g网卡为modem,如果可以识别不需要了.
wvdial/gnome-ppp为拨号程序,因为3g网卡,实际就是猫.

下面说一下第二种的配置:
可以按照
http://zhidao.baidu.com/question/320409484.html
先让3g网卡链接上移动网络,但此时还不能上网
这时要先断开有线网:sudo ifconfig eth0 down
设置默认网关为使用sudo wvdial获取的local IP address
如local IP address  10.140.162.111,
sudo route add default gw 10.150.129.135
最后重启网络sudo /etc/init.d/networking restart
本来到这一步就可以了,可是可恶的ubuntu12.04把dns设置改了,这就是
我直接发帖说的那个情况,本来我如果坚信是dns的问题,估计早解决了,可是
我怀疑是3g网卡驱动的问题,一直在找驱动方向的解决办法,还用驱动精灵把
et127 windows下的驱动提取了,用ndiswrapper安装,还把deepin搞黑屏了
幸好重启后没事.

1.首先检查dns文件
ls -l /etc/resolv.conf
如果/etc/resolv.conf指向/run/resolvconf/resolv.conf则此步跳过
否则,sudo rm /etc/resolv.conf,然后sudo ln -s /run/resolvconf/resolv.conf /etc/resolv.conf 建立软链接
2.编辑dns文件
sudo vi /etc/resolv.conf
nameserver 221.130.33.60
nameserver 221.130.33.52
这里的ip为dns服务器,地址为使用sudo wvdial获取的primary DNS address
和secondary DNS address
之后使用sudo /etc/init.d/resolvconf restart
3.重启网络
sudo /etc/init.d/networking restart

这样就可以上网了.

以后使用3g网卡时,就只需要
sudo wvdial   #拨号
sudo ifconfig eth0 down #断开有些
sudo route add default gw x.x.x.x #设置网关
如果deepin没有识别3g网卡为modem则还需要在一开始时sudo usb_modeswitch -W 切换模式
Reply Favorite View the author
All Replies
cxbii
deepin
2012-12-18 19:38
#1
表示没用过..不清楚
Reply View the author
dwdcth
deepin
2012-12-18 19:41
#2
还是挺感谢的!
Reply View the author
FEI17
deepin
2012-12-18 23:00
#3
华为et127,自带linux驱动和管理软件,安装顺利,
使用自带的软件或是usb_modeswitch都可以连上移动,可是上不来网,如图:
et1.png
使用ifconfig查看
ppp0      Link encap:点对点协议  
          inet 地址:10.150.33.164  点对点:192.200.1.21  掩码:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  跃点数:1
          接收数据包:53 错误:0 丢弃:0 过载:0 帧数:0
          发送数据包:59 错误:0 丢弃:0 过载:0 载波:0
          碰撞:0 发送队列长度:3
          接收字节:8061 (8.0 KB)  发送字节:5188 (5.1 KB)
后来route add default gw 10.150.33.164 把默认网关设为了
10.150.33.164,并sudo ifconfig eth0 down关掉有线后,只能ping通百度的ip,
ping不通域名.
我已经搜索了,大部分是用usb_modeswitch+wvdial,或者gnome-ppp,这些我
都试了,都只能连上移动,但不能上网,我觉得可能是路由或dns的问题,希望大神
帮助!

连上这个网卡后 看看是否在ld下面可以找到你的网卡 若是可以找到的话 直接连接就可以了
用户名和密码google一下就知道
不要用自带的 我的ZET用自带的也不行
Reply View the author
dwdcth
deepin
2012-12-18 23:11
#4
找不到阿
Reply View the author
daixiaojian
deepin
2012-12-19 04:11
#5
我用的是华为EC122,你参考一下吧。

移动宽带设置:
编号:#777
用户名:[email protected]
密码:vnet.mobi

用的是linux自带的驱动。
Reply View the author
dwdcth
deepin
2012-12-20 18:19
#6
可是deepin不带et127的驱动阿!
Reply View the author
135******32
deepin
2012-12-22 17:44
#7
恭喜楼主搞定
Reply View the author
cxbii
deepin
2012-12-22 20:33
#8
关系楼主!
标记一下,合适的话加入wiki,希望楼主同意~
Reply View the author