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