eth0
연결 속도가 10Mbit, 100Mbit 또는 1Gbit 인지 확인하는 방법 은 무엇입니까? 나는 시도 ethtool
했지만 그것은 말한다 No data available
. 나도 시도했는데 dmesg | grep -i duplex
비어 있습니다.
[root@dioptase ~]# lspci
00:0a.0 Ethernet controller: Digital Equipment Corporation DECchip 21140 [FasterNet] (rev 20)
[root@dioptase ~]# ethtool eth0
Settings for eth0:
No data available
[root@dioptase ~]# ethtool -i eth0
driver: tulip
version: 1.1.15
firmware-version:
bus-info: 0000:00:0a.0
[root@dioptase ~]# ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:15:5D:6F:1E:09
inet addr:192.168.140.106 Bcast:192.168.140.255 Mask:255.255.255.0
inet6 addr: 2a00:1120:0:1002:215:5dff:fe6f:1e09/64 Scope:Global
inet6 addr: fe80::215:5dff:fe6f:1e09/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:95671897 errors:6 dropped:0 overruns:0 frame:6
TX packets:16524440 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:23933711964 (22.2 GiB) TX bytes:19761966217 (18.4 GiB)
Interrupt:9 Base address:0xe000
답변
mii-tool을 사용하지 마십시오. 그것은 몇 년 전에 마지막으로 업데이트되었으며 빠른 이더넷을 통해 아무것도 지원하지 않습니다.
이더넷 속도를 결정할 수있는 몇 가지 방법이 있습니다. 가장 권장되는 것은
cat /sys/class/net/<interface>/speed
출력은 10, 100, 1000 등입니다.
실제로 네트워크 카드에 대해 필요한 거의 모든 데이터를 / sys / class / net //에서 얻을 수 있습니다.
다른 옵션 (왜 당신을 위해 작동하지 않았는지 확실하지 않음)
lspci | grep -iE --color 'network|ethernet'
01 : 00.0 이더넷 컨트롤러 : Intel Corporation I350 기가비트 네트워크 연결 (rev 01)