欢迎来到天天文库
浏览记录
ID:40557901
大小:76.72 KB
页数:6页
时间:2019-08-04
《Linux系统通过手机GPRS上网设置》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、Linux通过手机上网1.安装相关软件sudoapt-getinstallwvdial2.得到GPRS的IP地址(1)手机调整到usblan模式,在手机打开一个网页,让它的GPRS连通(2)运行sudo/sbin/ifconfig确认usb0存在(3)运行sudo/sbin/ifconfigusb0192.168.1.1配置电脑上的usb0的IP为192.168.1.1(4)运行telnet192.168.1.2telnet到手机,其中192.168.1.2为手机usblan的IP,如下$telnet192.168.1.2Trying192.168.1.2...Connected
2、to192.168.1.2.Escapecharacteris'^]'.MontaVista(R)Linux(R)ConsumerElectronicsEdition3.1Linux/armv5tel2.4.20_mvlcee31-mainstone_pxa27x(none)login:rootMontaVista(R)Linux(R)ConsumerElectronicsEdition3.1Nodirectory/root!Logginginwithhome="/".#ifconfig gprsv2 Linkencap:Point-to-PointProtocol
3、 inetaddr:10.9.139.175P-t-P:10.112.112.112Mask:255.255.255.255 UPPOINTOPOINTRUNNINGNOARPMULTICASTMTU:1500Metric:1 RXpackets:0errors:0dropped:0overruns:0frame:0 TXpackets:0errors:0dropped:0overruns:0carrier:0 collisions:0txqueuelen:50 RXbytes:8991(8.
4、7Kb)TXbytes:5117(4.9Kb)lo Linkencap:LocalLoopback inetaddr:127.0.0.1Mask:255.0.0.0 UPLOOPBACKRUNNINGMTU:16436Metric:1 RXpackets:24errors:0dropped:0overruns:0frame:0 TXpackets:24errors:0dropped:0overruns:0carrier:0 collisions:0txqueuelen:0
5、RXbytes:1392(1.3Kb)TXbytes:1392(1.3Kb)gprsv2 Linkencap:Point-to-PointProtocol inetaddr:10.10.88.48P-t-P:10.112.112.112Mask:255.255.255.255 UPPOINTOPOINTRUNNINGNOARPMULTICASTMTU:1500Metric:1 RXpackets:0errors:0dropped:0overruns:0frame:0 TXpackets:0errors:0drop
6、ped:0overruns:0carrier:0 collisions:0txqueuelen:50 RXbytes:1025(1.0Kb)TXbytes:1023(1023.0b)#exitConnectionclosedbyforeignhost.$(5)由(4)得到gprsv2的IP为10.10.88.48,记录下来3.为pppd添加GPRSIP(1)运行sudogedit/etc/ppp/options在options文件的最后一行添加如下两行内容novj:10.10.88.48其中10.10.88.48为2.(5)所得到的GPRSIP地址
7、4.配置/etc/wvdial.conf并连接上网(1)关掉手机的网页,确认手机上的GPRS连接已经断开(2)手机调整到usbmodem模式(3)运行wvdialconf检测手机的modem连接是否正常,程序自动创建/etc/wvdial.conf文件,正确情况如下$wvdialconfEditing`/etc/wvdial.conf'.Scanningyourserialportsforamodem.WvModem<*1>:Cannotsetinformationforseri
此文档下载收益归作者所有