Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2388764
  • 博文数量: 384
  • 博客积分: 10193
  • 博客等级: 上将
  • 技术积分: 3785
  • 用 户 组: 普通用户
  • 注册时间: 2005-06-09 18:02
文章分类

全部博文(384)

文章存档

2011年(10)

2010年(29)

2009年(39)

2008年(36)

2007年(43)

2006年(198)

2005年(29)

分类: LINUX

2006-08-08 00:54:40

在Linux下虽然可以使用<<Linux下telnet到E680i>>的办法联接到小i, 但是使用过程中却经常无缘无故的中断. 并且在Linux机器上ifconfig的结果中frame的值比较大:

usb0      Link encap:Ethernet  HWaddr 3E:5D:E9:F6:BB:29
          inet addr:192.168.1.5  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::3c5d:e9ff:fef6:bb29/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1400  Metric:1
          RX packets:199 errors:18 dropped:0 overruns:0 frame:18
          TX packets:272 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:13697 (13.3 KiB)  TX bytes:19410 (18.9 KiB)

可设置Linux主机的mtu为1400, 并设置小i的txqueuelen为1000来绕过这一问题. 在Linux机器上运行命令

ip link set usb0 mtu 1400

telnet到小i后运行命令

ip link set usbl0 txqueuelen 1000

小i本身不带ip命令, 需要从下载.

在Linux机器上的运行过程如下:

blueice:~# ifconfig usb0
usb0      Link encap:Ethernet  HWaddr 8A:20:27:42:C1:C8
          BROADCAST 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:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

blueice:~# ip link set usb0 mtu 1400
blueice:~# ifconfig usb0
usb0      Link encap:Ethernet  HWaddr 8A:20:27:42:C1:C8
          BROADCAST MULTICAST  MTU:1400  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:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

在小i上的操作过程如下:

blueice:~# 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 /root!
Logging in with home = "/".
# ifconfig -a
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:51539607564 errors:0 dropped:0 overruns:0 frame:0
          TX packets:51539607564 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:3710851744608 (864.0 b)  TX bytes:0 (0.3221224608 
阅读(3418) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~