找回密码
 注册

QQ登录

只需一步,快速开始

查看: 8520|回复: 2

rg100a 刷 openwrt 如何改 MTU 值

[复制链接]
发表于 2009-12-14 13:29:10 | 显示全部楼层 |阅读模式
本帖最后由 jjhjeep 于 2009-12-14 13:58 编辑

rg100a-aa 刷 openwrt 后  上网速度 变慢。百度了一把,好像是MTU值的问题,但不知怎么 改rg100的 MTU值,
改了自己的xP 网卡的MTU=1496值后,上网速度正常。想请教rg100 怎么改MTU值?(rg100a 上面 还接有 一路由器。)

rg100a系统信息
固件版本     OpenWrt Kamikaze - With X-Wrt Extensions bleeding edge, r16934
内核版本 Linux 2.6.27.26 #1 Mon Jul 20 20:36:30 CST 2009
MAC地址 00:11:22:33:44:79
设备 unidentified
主板 bcm63xx/96358VW2 (0x6358/0x00A1)
用户名 admin

Web mgt. console Webif²
版本r4771

看rg100的 网口信息 显示 是: MTU:是1500

root@OpenWrt:~# ifconfig -a
br-lan    Link encap:Ethernet  HWaddr 00:11:22:33:44:7A  
          inet addr:192.168.2.1  Bcast:192.168.2.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST MTU:1500  Metric:1
          RX packets:2707 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3188 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:348899 (340.7 KiB)  TX bytes:2339427 (2.2 MiB)
eth0      Link encap:Ethernet  HWaddr 00:11:22:33:44:79  
          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)
          Interrupt:16
eth1      Link encap:Ethernet  HWaddr 00:11:22:33:44:7A  
          UP BROADCAST RUNNING MULTICAST MTU:1500  Metric:1
          RX packets:11154 errors:16 dropped:0 overruns:0 frame:16
          TX packets:5530 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:3502674 (3.3 MiB)  TX bytes:2682010 (2.5 MiB)
          Interrupt:14
eth1.0    Link encap:Ethernet  HWaddr 00:11:22:33:44:7A  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2707 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3188 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:359727 (351.2 KiB)  TX bytes:2352179 (2.2 MiB)
eth1.1    Link encap:Ethernet  HWaddr 00:11:22:33:44:7A  
          inet addr:172.16.2.210  Bcast:172.16.2.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:8407 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2342 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:5
          RX bytes:2983773 (2.8 MiB)  TX bytes:329831 (322.1 KiB)
imq0      Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  
          UP RUNNING NOARP  MTU:16000  Metric:1
          RX packets:3660 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3609 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:5
          RX bytes:2395751 (2.2 MiB)  TX bytes:2339828 (2.2 MiB)
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:1 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:89 (89.0 B)  TX bytes:89 (89.0 B)
wlan0     Link encap:Ethernet  HWaddr 00:11:22:33:44:7B  
          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)

显示MTU为:1500  

1468+28字节 =1496字节  不到 1500字节

而另一台电脑 直接 接 在 网关 是 172.16.2.1 的 路由器上面 ping 172.16.2.1 -f -l 1472 为最大
1472+28=1500字节。(网关为172.16.2.1  的路由器 MTU 是 1500字节 正常)

rg100a 的 MTU 值 变成了 1496字节, 比 上一级路由器 172.16.2.1  的MTU值1500 少了。


不知 我的理解 正确否? 请教 大家。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

×
 楼主| 发表于 2009-12-14 21:40:13 | 显示全部楼层
在论坛里面,看到这位发的贴,知道怎么改了。https://www.chinadsl.net/viewthre ... p;extra=&page=4
config interface wan
    option ifname    'eth1.1'
#    option proto    dhcp
    option proto    pppoe
    option username  你的用户名
    option password 你的密码
    option keepalive 10
    option dns    '208.67.222.222'
    option 'macaddr' '你的mac'
    option mtu    1430
发表于 2009-12-15 09:20:51 | 显示全部楼层
改 mtu1492 了
*滑块验证:
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|小黑屋|宽带技术网 |网站地图 粤公网安备44152102000001号

GMT+8, 2025-5-20 02:41 , Processed in 0.036651 second(s), 3 queries , Redis On.

Powered by Discuz! X3.5 Licensed

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表