|
|
MTU值,默认是1500,可以用ifconfig看到...
比如我的::
- [root@linuxserver hgkrt]# /sbin/ifconfig
- eth0 Link encap:Ethernet HWaddr 00:50:FC:54:AB:AB
- UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
- RX packets:56833718 errors:0 dropped:0 overruns:0 frame:0
- TX packets:90763535 errors:0 dropped:0 overruns:12 carrier:0
- collisions:0 txqueuelen:100
- RX bytes:461864903 (440.4 Mb) TX bytes:2847993793 (2716.0 Mb)
- Interrupt:5 Base address:0xa000
- eth1 Link encap:Ethernet HWaddr 00:00:E8:88:65:C0
- inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
- UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
- RX packets:4034372 errors:0 dropped:0 overruns:0 frame:0
- TX packets:4917143 errors:0 dropped:0 overruns:17 carrier:0
- collisions:0 txqueuelen:100
- RX bytes:2679188095 (2555.0 Mb) TX bytes:1145334736 (1092.2 Mb)
- Interrupt:5 Base address:0xc000
- 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:786 errors:0 dropped:0 overruns:0 frame:0
- TX packets:786 errors:0 dropped:0 overruns:0 carrier:0
- collisions:0 txqueuelen:0
- RX bytes:60776 (59.3 Kb) TX bytes:60776 (59.3 Kb)
- ppp0 Link encap:Point-to-Point Protocol
- inet addr:219.117.47.5 P-t-P:219.117.33.186 Mask:255.255.255.255
- UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1454 Metric:1
- RX packets:186707 errors:0 dropped:0 overruns:0 frame:0
- TX packets:297646 errors:0 dropped:0 overruns:0 carrier:0
- collisions:0 txqueuelen:3
- RX bytes:41441838 (39.5 Mb) TX bytes:402158930 (383.5 Mb)
复制代码
但是不是所有的ISP提供的服务都是1500的MTU...需要通过测试来得到你的ISP提供的MTU值...
可以到这里来测试你的MTU值...
http://www.broadland.jp/mtu.html
然后使用ifconfig eth0(假设你的网络出口设备) mtu 你的测试值
就可以了..
比如说我的::
- #/sbin/ifconfig eth0 mtu 1452
复制代码
另外,我的ppp0的mtu是1454,我想给他也改了,但是没成...好像无法去改...执行改动命令后,ppp0就断线了...
windows的话,需要使用工具或是修改注册表(麻烦)来进行... |
|