Sử dụng Ethtool và Mini-tool (Xem và thiết lập các thông số cho card mạng)
1. Xem thông tin card mạng:
Trích dẫn:
|
[root@gateway ~]# ethtool eth0
Settings for eth0:
Supported ports: [ TP MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Advertised auto-negotiation: No
Speed: 10Mb/s
Duplex: Full
Port: MII
PHYAD: 32
Transceiver: internal
Auto-negotiation: off
Supports Wake-on: pumbg
Wake-on: d
Current message level: 0x00000007 (7)
Link detected: yes
|
2. Xem Driver card mạng:
Trích dẫn:
|
[root@gateway ~]# ethtool -i eth0
driver: 8139too
version: 0.9.27
firmware-version:
bus-info: 0000:01:07.0
[root@gateway ~]#
|
3. Set tốc độ cho card mạng:
[root@gateway ~]#
ethtool -s eth0 speed 10 (or 100 or 1000)
4. Set tốc độ cho card mạng (permanently on Radhat - CentOS)
Trích dẫn:
|
Open the file:
# vi /etc/sysconfig/network-scripts/ifcfg-eth0
Thêm vào dòng bên dưới
ETHTOOL_OPTS="speed 100 duplex full autoneg off"
khởi động lại dịch vụ:
# /etc/init.d/network restart
|
5. Set tốc độ cho card mạng (permanently on Debian, Ubuntu)
Click Here
6. Restart chế độ "autonegotiation"
You don’t have to reboot Linux box, all you have to do is type the following command :
# ethtool -r eth0
Or you can use mii-tool (outdated, use ethtool only)
# mii-tool -r eth0
Output:
# tail -f /var/log/messages
Mã:
|
Jul 16 09:34:25 smtp1 kernel: e1000: eth0: e1000_watchdog_task: NIC Link is Up 10 Mbps Full Duplex
Jul 16 09:34:25 smtp1 kernel: e1000: eth0: e1000_watchdog_task: 10/100 speed |
Done!
Chúc thành công!
