这几天,一直在研究如何通过usb来让联通版上网,论坛里也出现一同研究这个问题的帖子:
大家请看:
http://bbs.weiphone.com/read-htm-tid-674467.html
http://bbs.weiphone.com/read-htm-tid-544715.html
一个是不越狱,一个是越狱,方法差不多。
我也一开始尝试通过这个方法也成功了,但有点美中不足的是:
有些不是http的协议的程序还是费3G流量。
而且如果不使用autoproxy的方式,每次都要重启手机,使用了autoproxy总有点心理阴影,感觉一开始上网有点慢,就是第一次打开网页有点慢,不知道是不是我心里感觉的问题。
有人说都有usb了,还用什么手机上网,旁边就有电脑啊,(论坛出现了不和谐的声音),请你搬凳子坐好,听我讲:我们玩手机,就是一个玩,玩手机非要在一个没有电脑的地方玩?
还有,你既然这么说,请问你有wifi的地方,也差不多有电脑了,你还要手机上网干嘛,请把你的wifi也去掉…..
好了,废话不多说了,现在说说方法:
方法和以通过代理的方法差不多,主要通过usb或者蓝牙共享的方式和电脑建立一个小的局域网:
iPhone的IP:192.168.20.1 电脑的IP:192.168.20.2
为了不让你的电脑走3G的网络,你可以手工设置一下电脑上的那个IP,把网关部分去掉。
然后就是在你的电脑上架设一个路由器,你可以使用xp自带的”网络共享”,设置好了以后,再去改那个apple的网卡的IP,因为设置以后,xp会自动把那个网卡的地址设为:192.168.0.1,我们是要把它改成192.168.20.2
或者可以下载一些专门的路由小软件,比如我这里使用的;”Sinfor NAT” ,免费软件。
弄好了以后,这是第一步。
然后ssh连到你的iPhone,用192.168.20.1这个IP地址连
然后上传附件,并运行。就可以通过USB上网了。
完成了:
有几个问题,希望大家能一起讨论一下:
我是使用:
route add -net 1.0.0.0 192.168.20.2 255.0.0.0
route add -net 2.0.0.0 192.168.20.2 255.0.0.0……
route add -net 254.0.0.0 192.168.20.2 255.0.0.0
route add -net 255.0.0.0 192.168.20.2 255.0.0.0
更改默认路由是不行的,但我手工更改一个a或者c地址也是可以的。
于是我就把 1.0.0.0.0/8-255.0.0.0/8所以路由加了一下,这里浪费了我很多时间,百思不得其解,最后没有办法弄了这一个笨方法。
我是这样分析的:因为我更改了/etc/resolv.conf 这里的dns服务器,但ping的时候,发现并没有使用这里的dns服务器,而使用dig这个命令(你可以安装bind,就自带这个命令了)是使得这里的dns设置的,这就是让我不解之一了,所以我怀疑,如果是我更忙了默认路由,就会造成dns解析失效(网通DNS是禁止非自己的IP过来的请求解析的),不过这也不能解释我更改了路由后,直接访问IP也不行。
以下是有一些可能有用的命令,请参考:
route add –host 目的地IP 网关
route add –net 目的地网段 网关
route change
route delete (注意,删除时使用 route delete 8.0.0.0 这样的方式)
route change default
netstat –rn 显示路由表
注意的是:ping 命令不可靠,可以使用wget 来测试。
更详细的请参考:
http://developer.apple.com/mac/library/….man8/route.8.html

anket doldur para kazan
October 24, 2011 at 2:25 am
Great website…
[...]we like to honor many other internet sites on the web, even if they aren’t linked to us, by linking to them. Under are some webpages worth checking out[...]……
anket doldur para kazan
October 24, 2011 at 3:18 am
Awesome website…
[...]the time to read or visit the content or sites we have linked to below the[...]……
filipino recipes
October 24, 2011 at 3:38 am
Great website…
[...]we like to honor many other internet sites on the web, even if they aren’t linked to us, by linking to them. Under are some webpages worth checking out[...]……
anket doldur para kazan
October 24, 2011 at 4:09 am
Gems form the internet…
[...]very few websites that happen to be detailed below, from our point of view are undoubtedly well worth checking out[...]……
bingo online
October 24, 2011 at 5:06 am
Online Article……
[...]The information mentioned in the article are some of the best available [...]……
make money now online free
October 24, 2011 at 6:02 am
Related……
[...]just beneath, are numerous totally not related sites to ours, however, they are surely worth going over[...]……
single people meet
October 24, 2011 at 6:33 am
Related……
[...]just beneath, are numerous totally not related sites to ours, however, they are surely worth going over[...]……
Relationship Problems
October 24, 2011 at 7:51 am
Gems form the internet…
[...]very few websites that happen to be detailed below, from our point of view are undoubtedly well worth checking out[...]……
black ops cheats
October 24, 2011 at 2:08 pm
Online Article……
[...]The information mentioned in the article are some of the best available [...]……
zynga poker chips for sale
October 24, 2011 at 6:16 pm
Recent Blogroll Additions……
[...]usually posts some very interesting stuff like this. If you’re new to this site[...]……
memory games
December 14, 2011 at 9:40 pm
Sources…
[...]check below, are some totally unrelated websites to ours, however, they are most trustworthy sources that we use[...]……
sesame street let make music
December 15, 2011 at 5:22 am
Links…
[...]Sites of interest we have a link to[...]……
Denver Computer Support Service
December 15, 2011 at 5:54 pm
Recent Blogroll Additions……
[...]usually posts some very interesting stuff like this. If you’re new to this site[...]……
fossil sonnenbrillen
December 16, 2011 at 7:40 am
Online Article……
[...]The information mentioned in the article are some of the best available [...]……
AMG Services Scott Tucker
December 16, 2011 at 7:34 pm
Awesome website…
[...]the time to read or visit the content or sites we have linked to below the[...]……
exhaust tips
December 18, 2011 at 2:10 am
Visitor recommendations…
[...]one of our visitors recently recommended the following website[...]……