我买了一个小型的千兆以太网USB适配器,该适配器在Raspberry Pi 3中可以在OOTB上正常工作,但速度仅为100mbits / s。如何使它全速运行?
ethtool:
# ethtool eth1
Settings for eth1:
Supported ports: [ TP MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full
Supported pause frame use: No
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Advertised pause frame use: Symmetric Receive-only
Advertised auto-negotiation: Yes
Link partner advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Link partner advertised pause frame use: Symmetric
Link partner advertised auto-negotiation: Yes
Speed: 100Mb/s
Duplex: Full
Port: MII
PHYAD: 32
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: pumbg
Wake-on: g
Current message level: 0x00007fff (32767)
drv probe link timer ifdown ifup rx_err tx_err tx_queued intr tx_done rx_status pktdata hw wol
Link detected: yes
lshw:
*-network:2
description: Ethernet interface
physical id: 4
logical name: eth1
serial: 💩💩💩💩
size: 100Mbit/s
capacity: 1Gbit/s
capabilities: ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=r8152 driverversion=v1.08.8 duplex=full ip=192.168.1.5 link=yes multicast=yes port=MII speed=100Mbit/s
lsmod
Module Size Used by
rpcsec_gss_krb5 23752 0
brcmfmac 222874 0
brcmutil 9092 1 brcmfmac
cfg80211 543027 1 brcmfmac
cdc_ether 6354 0
rfkill 20851 1 cfg80211
r8152 37460 0
bcm2835_gpiomem 3940 0
uio_pdrv_genirq 3923 0
uio 10204 1 uio_pdrv_genirq
fixed 3285 0
snd_bcm2835 24427 0
snd_pcm 98501 1 snd_bcm2835
snd_timer 23968 1 snd_pcm
snd 70032 3 snd_timer,snd_bcm2835,snd_pcm
joydev 9988 0
uinput 9125 0
ipv6 408971 32
我首先想到的是,确实支持1000,但未进行广告宣传。也许是因为从USB 3到USB 2的回退也降低到了100mbits / s?
我试过了
# ethtool -s eth1 speed 1000 duplex full
但是没有运气。
适配器品牌是“ rankie”(在亚马逊上很容易找到)。
此外,适配器连接到千兆位交换机。我的NAS已连接到该交换机,并且以1000mbits / s的速度运行而没有问题,因此我怀疑这是问题所在。
最后,以太网适配器是连接到PI的唯一USB设备,因此,即使我不期望全速1000mbps,我也希望能够达到USB2.0的速度
ethtool
。有趣的是,即使不配置速度,使用USB3适配器也将RPi吞吐量从约94 Mbps增加到了约113 Mbps。我听说有人使用正确配置的USB3适配器接近300 Mbps。USB2总线支持的吞吐量远高于100Mbps,尽管您不会获得1Gbps。
lshw
的输出?