rg100a 刷 openwrt 如何改 MTU 值
本帖最后由 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:EthernetHWaddr 00:11:22:33:44:7A
inet addr:192.168.2.1Bcast:192.168.2.255Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500Metric: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:EthernetHWaddr 00:11:22:33:44:79
BROADCAST MULTICASTMTU:1500Metric: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:EthernetHWaddr 00:11:22:33:44:7A
UP BROADCAST RUNNING MULTICAST MTU:1500Metric: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:EthernetHWaddr 00:11:22:33:44:7A
UP BROADCAST RUNNING MULTICASTMTU:1500Metric: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:EthernetHWaddr 00:11:22:33:44:7A
inet addr:172.16.2.210Bcast:172.16.2.255Mask:255.255.255.0
UP BROADCAST RUNNING MULTICASTMTU:1500Metric: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:UNSPECHWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
UP RUNNING NOARPMTU:16000Metric: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.1Mask:255.0.0.0
UP LOOPBACK RUNNINGMTU:16436Metric: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:EthernetHWaddr 00:11:22:33:44:7B
BROADCAST MULTICASTMTU:1500Metric: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 少了。
不知 我的理解 正确否? 请教 大家。 在论坛里面,看到这位发的贴,知道怎么改了。https://www.chinadsl.net/viewthread.php?tid=33692&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 改 mtu1492 了
页:
[1]