Re: [问题] Linux系统连接光世代100M

楼主: sigurose (胜利玫瑰。)   2014-06-10 15:21:17
※ 引述《csyow (Yow)》之铭言:
: 请问有人用过 Linux 系统连光世代吗?
: 我是用 CentOS 5.8 (Kernel 2.6.18-308)
: 原本使用光世代20M都很正常,速度也都有到
: 可是前阵子升级到100M,测速时发现只有40M
: 同一条线使用 XP 测速则可超过80M
: 所以应该是 Linux 系统设定的问题....
: 看到有人说要改
: MTU=1492
: MRU=1492
: 我把 ppp0 跟 eth0 都改成 1492
: 但还是没有超过40M....
: 问中华电信客服则说他们没有 Linux 相关的设定
: 请问有人知道 Linux 还要改什么设定吗?
Cent OS5 可以开启电脑的 /etc/rc.local 档案,将下面的指令写入/etc/rc.local 中,
让 eth1 设置为100Mbps全双工,关闭 auto。存盘后重开机会自动执行,再测试看看速度
是否有改善。
#ethtool -s eth0 autoneg off
#ethtool -s eth0 speed 100
#ethtool -s eth0 duplex full
#ethtool eth0
Settings for eth0:
Supported ports: [ TP ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full
Advertised auto-negotiation: No
Speed: 100Mb/s
Duplex: Full
Port: Twisted Pair
PHYAD: 0
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: g
Wake-on: d
Current message level: 0×00000037 (55)
Link detected: yes

Links booklink

Contact Us: admin [ a t ] ucptt.com