linux 通过手机上网,Linux系统通过手机GPRS上网设置简介有哪些呢?

Linux通过手机上网

1。安装相关软件

sudo apt-get install wvdial

2。得到GPRS的IP地址

(1)

手机调整到usb lan模式,在手机打开一个网页,让它的GPRS连通

(2)

运行 sudo /sbin/ifconfig

确认usb0存在

(3)

运行 sudo /sbin/ifconfig usb0 192。

168。1。1

配置电脑上的usb0的IP为192。168。1。1

(4)

运行 telnet 192。168。1。2

telnet到手机,其中192。168。1。2为手机usb lan的IP,如下

$ telnet 192。168。

1。2

Trying 192。168。1。2。。。

Connected to 192。168。1。2。

Escape character is '^]'。

MontaVista(R) Linux(R) Consumer Electronics Edition 3。

1

Linux/armv5tel 2。4。20_mvlcee31-mainstone_pxa27x

(none) login: root

MontaVista(R) Linux(R) Consumer Electronics Edition 3。

1

No directory /root!

Logging in with home = "/"。

# ifconfig

gprsv2 Link encap:Point-to-Point Protocol

inet addr:10。

9。139。175 P-t-P:10。112。112。112 Mask:255。255。255。255

UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1

RX packets:0 errors:0 dropped:0 overruns:0 frame:0

TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:50

RX bytes:8991 (8。

7 Kb) TX bytes:5117 (4。9 Kb)

lo Link encap:Local Loopback

inet addr:127。0。0。1 Mask:255。0。0。0

UP LOOPBACK RUNNING MTU:16436 Metric:1

RX packets:24 errors:0 dropped:0 overruns:0 frame:0

TX packets:24 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:0

RX bytes:1392 (1。

3 Kb) TX bytes:1392 (1。3 Kb)

gprsv2 Link encap:Point-to-Point Protocol

inet addr:10。10。88。48 P-t-P:10。112。112。112 Mask:255。

255。255。255

UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1

RX packets:0 errors:0 dropped:0 overruns:0 frame:0

TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:50

RX bytes:1025 (1。

0 Kb) TX bytes:1023 (1023。0 b)

# exit

Connection closed by foreign host。

$

(5)

(4)得到gprsv2的IP为10。10。88。48,记录下来

3。

为pppd添加GPRS IP

(1)

运行 sudo gedit /etc/ppp/options。

全部

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值