先看一下最终结果:
|
[root@localhost helloworld]# iptables -A INPUT -i usb0 -j ACCEPT [root@localhost helloworld]# iptables -A OUTPUT -o usb0 -j ACCEPT [root@localhost helloworld]# ifconfig usb0 192.168.1.6 [root@localhost helloworld]# telnet 192.168.1.2 Trying 192.168.1.2... Connected to 192.168.1.2. Escape character is '^]'.
MontaVista Linux Consumer Electronics Edition 3.0 Linux/armv5tel 2.4.20_mvlcee30-mainstone
(none) login: root Linux 192.168.1.11 2.4.20_mvlcee30-mainstone #7 Fri Feb 13 15:39:51 CST 2004 armv5tel unknown
MontaVista Linux Consumer Electronics Edition 3.0
No directory / Logging in with home = "/". # ls bin dev diska diskb etc ezxlocal home lib mmc proc ram root sbin tmp usr var #
|
步骤解释:
1. 使得你的E680的usb模式有usblan或usb网的选项。(网上很多方法,不知道的自己找找)
2. 配置你的Linux内核(我的内核是2.6.21,好象2.6.12以上都可用)加入下面的模块:
Device Drivers
USB Support
USB Network Adapters
选上所有的模块,特别是
Sharp Zaurus (stock ROMs) and compatible,
这个模块是E680用的。