l*******s 发帖数: 7316 | 1 我把Linksys WRT1900AC刷了openwrt。
按larry(土哥)的提示装了通过SSH以下软件:
opkg update
opkg install usb-modeswitch kmod-usb-net kmod-usb-net-cdc-ether usbutils
udev
但不知道还需要怎么设置。openwrt的界面真是太简陋了。
另外hotspot上需要改什么设置吗? |
p********y 发帖数: 557 | 2 hotspot上不需要设置,在openwrt luci界面,点interfaces,添加一个interface,
usb0,设置为dhcp。Advanced那里看看是不是usb0设为了wan,firewall里把usb0拖
wan0/wan6那里。好像就行了。然后按Larry的方法,调试速度。 |
l*******s 发帖数: 7316 | 3 没看道usb0,只有eth0,是不是硬件不支持?
【在 p********y 的大作中提到】 : hotspot上不需要设置,在openwrt luci界面,点interfaces,添加一个interface, : usb0,设置为dhcp。Advanced那里看看是不是usb0设为了wan,firewall里把usb0拖 : wan0/wan6那里。好像就行了。然后按Larry的方法,调试速度。
|
l*******s 发帖数: 7316 | 4 照这篇说的用eth1行吗?
https://wiki.openwrt.org/doc/howto/usb.tethering
Use the new usb0 (or for some cases eth1) network device as WAN connection
and set the protocol to DHCP client mode.
下面这些设置是ssh登陆后直接输命令吗?
uci del network.wan
uci set network.wan=interface
uci set network.wan.ifname=usb0
uci set network.wan.proto=dhcp
uci commit network
【在 p********y 的大作中提到】 : hotspot上不需要设置,在openwrt luci界面,点interfaces,添加一个interface, : usb0,设置为dhcp。Advanced那里看看是不是usb0设为了wan,firewall里把usb0拖 : wan0/wan6那里。好像就行了。然后按Larry的方法,调试速度。
|
p********y 发帖数: 557 | 5 应该可以,一样的。我试过了。到Luci界面确认一下。 |
l*******s 发帖数: 7316 | 6 我晚上再试试。
【在 p********y 的大作中提到】 : 应该可以,一样的。我试过了。到Luci界面确认一下。
|
l*******s 发帖数: 7316 | 7 再问一句:要用uci command line 是要先输入下面指令,还是直接就能用?
/lib/config# uci
【在 p********y 的大作中提到】 : 应该可以,一样的。我试过了。到Luci界面确认一下。
|
l***y 发帖数: 126 | 8 You don't have to use the uci commands (you can). Configure the usb0
interface as a wan connection in Luci is very easy. See post above.
However, before you try to do that, make sure the device driver was loaded
properly. If the interface "usb0" is not even registered, no configuration
madness can fix the problem.
Run "lsusb" to make sure pocket wifi is listed as 19d2:1405. If not, power
down, unplug from router, then power up completely BEFORE connecting to the
router usb port (maybe even wait a few seconds after power up). Then check
again with "lsusb".
If it is listed as 1405, run "dmesg" in the terminal to make sure the driver
has been loaded properly. If it is, you will see a message near the end,
and it will mention the newly registered interface "usb0".
【在 l*******s 的大作中提到】 : 照这篇说的用eth1行吗? : https://wiki.openwrt.org/doc/howto/usb.tethering : Use the new usb0 (or for some cases eth1) network device as WAN connection : and set the protocol to DHCP client mode. : 下面这些设置是ssh登陆后直接输命令吗? : uci del network.wan : uci set network.wan=interface : uci set network.wan.ifname=usb0 : uci set network.wan.proto=dhcp : uci commit network
|
l*******s 发帖数: 7316 | 9 多谢。我的没有出现"usb0",看样子要重启试试。
the
driver
【在 l***y 的大作中提到】 : You don't have to use the uci commands (you can). Configure the usb0 : interface as a wan connection in Luci is very easy. See post above. : However, before you try to do that, make sure the device driver was loaded : properly. If the interface "usb0" is not even registered, no configuration : madness can fix the problem. : Run "lsusb" to make sure pocket wifi is listed as 19d2:1405. If not, power : down, unplug from router, then power up completely BEFORE connecting to the : router usb port (maybe even wait a few seconds after power up). Then check : again with "lsusb". : If it is listed as 1405, run "dmesg" in the terminal to make sure the driver
|
S**********4 发帖数: 2 | 10 能请教一下通过SSH以下软件的具体步骤:
我用的是Putty,不知道Pkg对不对,路径设置正确否.谢谢 |
|
|
l*******s 发帖数: 7316 | 11 在openwrt里面turn on ssh.
然后用电脑上用ssh 登录router。然后输入这两个指令。
【在 S**********4 的大作中提到】 : 能请教一下通过SSH以下软件的具体步骤: : 我用的是Putty,不知道Pkg对不对,路径设置正确否.谢谢
|
l*******s 发帖数: 7316 | 12 不太明白那些interface、firewall的是什么意思。
所以不很清楚怎么设。能解释一下吗? 多谢。
虽然不太明白,但瞎试也搞成功了。确实挺快的。
可是重启以后,就又不对了。
有那些软件要放到startup里。
【在 p********y 的大作中提到】 : hotspot上不需要设置,在openwrt luci界面,点interfaces,添加一个interface, : usb0,设置为dhcp。Advanced那里看看是不是usb0设为了wan,firewall里把usb0拖 : wan0/wan6那里。好像就行了。然后按Larry的方法,调试速度。
|
m*****8 发帖数: 16 | 13 照着步骤做, 成功连上了。速度有40M左右,挺好的。
我也和熊大一样重启就不行了,每次都要按照Larry的方法断开重启wifi pocket 然后
再连才行。
还有我发现在use tethering模式下,wifi pocket每隔20多分钟会断开一下,然后自动
重连。直接连它自己的wifi没有这种问题。是我哪里设置错了吗? 你们有这个情况吗
? |
p********y 发帖数: 557 | 14 USBMODE应该在Startup里,其它的好想没什么了。
看看我用luci加的interface,usb0对应名字取的usbmodem(任意命名)
【在 l*******s 的大作中提到】 : 不太明白那些interface、firewall的是什么意思。 : 所以不很清楚怎么设。能解释一下吗? 多谢。 : 虽然不太明白,但瞎试也搞成功了。确实挺快的。 : 可是重启以后,就又不对了。 : 有那些软件要放到startup里。
|
l*******s 发帖数: 7316 | 15 多谢。出现一个问题。怎么把usb interface 设成wan?
我的advance setting 里没看到选项。是缺什么东西了吗?
【在 p********y 的大作中提到】 : USBMODE应该在Startup里,其它的好想没什么了。 : 看看我用luci加的interface,usb0对应名字取的usbmodem(任意命名)
|
l*******s 发帖数: 7316 | 16 这里面哪个选项是设为wan的?
【在 l*******s 的大作中提到】 : 多谢。出现一个问题。怎么把usb interface 设成wan? : 我的advance setting 里没看到选项。是缺什么东西了吗?
|
l*******s 发帖数: 7316 | 17 明白了,不是在advance settings 里。是在firewall settings里选。
【在 l*******s 的大作中提到】 : 这里面哪个选项是设为wan的?
|
l*******s 发帖数: 7316 | 18 刚才重启也行了。
但还是不明白怎么能保证每次都重启都得到19d2:1405 |
p********y 发帖数: 557 | 19 这个好像还没有办法。
Tomato固件没这个问题,即插即用,不用复杂的设置,重启也不影响。只是现在还没找
到一个能流畅用的版本或路由。
【在 l*******s 的大作中提到】 : 刚才重启也行了。 : 但还是不明白怎么能保证每次都重启都得到19d2:1405
|
l*******s 发帖数: 7316 | 20 终于搞好了。
【在 p********y 的大作中提到】 : 这个好像还没有办法。 : Tomato固件没这个问题,即插即用,不用复杂的设置,重启也不影响。只是现在还没找 : 到一个能流畅用的版本或路由。
|
|
|
l***y 发帖数: 126 | 21 I think I found the magic to keep it in 1405 (in OpenWrt 15.05).
1. Install the package kmod-usb-storage (which will also pull in kmod-scsi-
core by dependency).
2. Remove the package usb-modeswitch.
Power off pocket wifi one last time :-), then everything should be up and
running. It will not go back to 1403 any more even if you reboot the router.
Actually, it always starts in 1225, but the usb-storage driver apparently
contains the proper modeswitch message to send to the device to kick it into
1405 every time.
Don't ask me how I found this out. I just wasted too much time on this than
I should have :-).
【在 l*******s 的大作中提到】 : 刚才重启也行了。 : 但还是不明白怎么能保证每次都重启都得到19d2:1405
|
p********y 发帖数: 557 | 22 每次都重启都能得到19d2:1405?
【在 l*******s 的大作中提到】 : 终于搞好了。
|
a9 发帖数: 21638 | 23 我记得好像是在lib下有个文件改一下,使usbmodeswitch一启动就执行。
我是很久前搞的,现在忘了。
【在 l*******s 的大作中提到】 : 刚才重启也行了。 : 但还是不明白怎么能保证每次都重启都得到19d2:1405
|
l*******s 发帖数: 7316 | 24 我发现中间拔掉usb,再插回去就变成1225.
scsi-
router.
into
than
【在 l***y 的大作中提到】 : I think I found the magic to keep it in 1405 (in OpenWrt 15.05). : 1. Install the package kmod-usb-storage (which will also pull in kmod-scsi- : core by dependency). : 2. Remove the package usb-modeswitch. : Power off pocket wifi one last time :-), then everything should be up and : running. It will not go back to 1403 any more even if you reboot the router. : Actually, it always starts in 1225, but the usb-storage driver apparently : contains the proper modeswitch message to send to the device to kick it into : 1405 every time. : Don't ask me how I found this out. I just wasted too much time on this than
|
a9 发帖数: 21638 | 25 这种usb的设备可能有个AT命令是保持模式的。你执行那个命令以后都不用
usbmodeswitch
就可以一直是“1225”
and
apparently
【在 l*******s 的大作中提到】 : 我发现中间拔掉usb,再插回去就变成1225. : : scsi- : router. : into : than
|
l*******s 发帖数: 7316 | 26 我发现4GC的lan地址段是192.168.128.*
你们的router的lan设多少,我设成192.168.200.1 |
p********y 发帖数: 557 | 27 按你的方法该了一下,现在没问题了,多谢!
scsi-
router.
into
than
【在 l***y 的大作中提到】 : I think I found the magic to keep it in 1405 (in OpenWrt 15.05). : 1. Install the package kmod-usb-storage (which will also pull in kmod-scsi- : core by dependency). : 2. Remove the package usb-modeswitch. : Power off pocket wifi one last time :-), then everything should be up and : running. It will not go back to 1403 any more even if you reboot the router. : Actually, it always starts in 1225, but the usb-storage driver apparently : contains the proper modeswitch message to send to the device to kick it into : 1405 every time. : Don't ask me how I found this out. I just wasted too much time on this than
|
p********y 发帖数: 557 | 28 路由的LAN地址段随便设置,没有任何影响的。
【在 l*******s 的大作中提到】 : 我发现4GC的lan地址段是192.168.128.* : 你们的router的lan设多少,我设成192.168.200.1
|
l*******s 发帖数: 7316 | 29 好像如果跟上一级一样的话会有问题。
【在 p********y 的大作中提到】 : 路由的LAN地址段随便设置,没有任何影响的。
|
p********y 发帖数: 557 | 30 POCKET WIFI设置了DHCP服务,路由也设置了DHCP的服务,需要不同的子网。用路由的
DHCP服务是要避开POKET WIFI 10个上网的限制。尤其是路由用USB链接。 |
|
|
l*******s 发帖数: 7316 | 31 好像还是不行。
kmod-usb-storage 本来就装了。
usb-modeswitch卸载后好像不能换到1405.
所以我还是用 usb-modeswitch。
唯一的进展就是把5.0Ghz的wifi设成了wwan,这样成了dual wan。
如果usb除了问题,可以通过wwan连接,只是网速减半。
以前我是用网线连到另一个router是来给这个openwrt装软件的,
但有wwan后,不需要了。
scsi-
router.
into
than
【在 l***y 的大作中提到】 : I think I found the magic to keep it in 1405 (in OpenWrt 15.05). : 1. Install the package kmod-usb-storage (which will also pull in kmod-scsi- : core by dependency). : 2. Remove the package usb-modeswitch. : Power off pocket wifi one last time :-), then everything should be up and : running. It will not go back to 1403 any more even if you reboot the router. : Actually, it always starts in 1225, but the usb-storage driver apparently : contains the proper modeswitch message to send to the device to kick it into : 1405 every time. : Don't ask me how I found this out. I just wasted too much time on this than
|
l***y 发帖数: 126 | 32 有没有重启路由?还有 pocket wifi 也最好 unplug, 再 power off 一次。我的现在
很稳定。
【在 l*******s 的大作中提到】 : 好像还是不行。 : kmod-usb-storage 本来就装了。 : usb-modeswitch卸载后好像不能换到1405. : 所以我还是用 usb-modeswitch。 : 唯一的进展就是把5.0Ghz的wifi设成了wwan,这样成了dual wan。 : 如果usb除了问题,可以通过wwan连接,只是网速减半。 : 以前我是用网线连到另一个router是来给这个openwrt装软件的, : 但有wwan后,不需要了。 : : scsi-
|
l*******s 发帖数: 7316 | 33 搞好了。要断电重启。我原来是在luic点reboot重启的。
现在每次都是1405了。
也就是说, usb-modeswitch在开始的时候不要装。
装下面这些(如果原来没有的话)
kmod-usb-net kmod-usb-net-cdc-ether usbutils udev
kmod-scsi-core kmod-usb-storage
如果有下面的软件,就删掉
kmod-usb-net-rndis,usb-modeswitch
添加usb interface, 选dhcp client,在firewall settings里,点wan就全搞定了。
【在 l***y 的大作中提到】 : 有没有重启路由?还有 pocket wifi 也最好 unplug, 再 power off 一次。我的现在 : 很稳定。
|