Try:

  ls -l /sys/class/net/

I get this (yours will be a little different):

lrwxrwxrwx  1 root root 0 Apr 14 18:18 eth0 ->
../../devices/pci0000:00/0000:00:19.0/net/eth0
lrwxrwxrwx  1 root root 0 Apr 14 18:18 lo -> ../../devices/virtual/net/lo

Try cd'ing to the likely looking directory (eth0 in my case), and
doing another ls -l there. You really ought to see the speed file in
there.

If you cat the "speed" file to get the current speed of the interface.

I had the problem like what you are describing once upon a time,
because of a slightly flakey ethernet run that was not training to
gigabit link speed, but 100 Mbps instead. Confirming the link speed is
a good idea, because then you'll know when you fixed it.

On Tue, Apr 27, 2021 at 3:54 PM John Jason Jordan <[email protected]> wrote:
>
> On Tue, 27 Apr 2021 13:16:21 -0700
> Russell Senior <[email protected]> dijo:
>
> >On the computer you are running the 90Mbps test from, check the
> >content the interface's speed file (this example assumes your ethernet
> >interface is eth0):
> >
> >  $ cat /sys/class/net/eth0/speed
> >  1000
>
> Here is the results from ifconfig:
>
> enp0s31f6: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
>         ether f8:75:a4:37:2a:e2  txqueuelen 1000  (Ethernet)
>         RX packets 0  bytes 0 (0.0 B)
>         RX errors 0  dropped 0  overruns 0  frame 0
>         TX packets 0  bytes 0 (0.0 B)
>         TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
>         device interrupt 16  memory 0xeb400000-eb420000
>
> enx3ce1a1c0dbfc: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
>         inet 192.168.1.170  netmask 255.255.255.0  broadcast
> 192.168.1.255 inet6 2602:61:736b:e800:9688:c939:50f2:2556  prefixlen 64
>  scopeid 0x0<global> inet6 2602:61:736b:e800:b5f7:1895:7076:c093
> prefixlen 64  scopeid 0x0<global> inet6 fe80::b4fe:1bed:3935:22a3
> prefixlen 64  scopeid 0x20<link> inet6 2602:61:736b:e800::62e
> prefixlen 128  scopeid 0x0<global> ether 3c:e1:a1:c0:db:fc  txqueuelen
> 1000  (Ethernet) RX packets 155567648  bytes 72723919329 (72.7 GB)
>         RX errors 0  dropped 0  overruns 0  frame 0
>         TX packets 332252370  bytes 317579255790 (317.5 GB)
>         TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
>
> lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
>         inet 127.0.0.1  netmask 255.0.0.0
>         inet6 ::1  prefixlen 128  scopeid 0x10<host>
>         loop  txqueuelen 1000  (Local Loopback)
>         RX packets 3007673  bytes 279744544 (279.7 MB)
>         RX errors 0  dropped 0  overruns 0  frame 0
>         TX packets 3007673  bytes 279744544 (279.7 MB)
>         TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
>
> wg-mullvad: flags=209<UP,POINTOPOINT,RUNNING,NOARP>  mtu 1380
>         inet 10.107.103.171  netmask 255.255.255.255  destination
> 10.107.103.171 inet6 fe80::1656:56a6:9e27:7677  prefixlen 64  scopeid
> 0x20<link> inet6 fc00:bbbb:bbbb:bb01::2c:67aa  prefixlen 128  scopeid
> 0x0<global> unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
> txqueuelen 1000  (UNSPEC) RX packets 1801838  bytes 1267327304 (1.2 GB)
>         RX errors 0  dropped 0  overruns 0  frame 0
>         TX packets 2787973  bytes 1948932988 (1.9 GB)
>         TX errors 0  dropped 68 overruns 0  carrier 0  collisions 0
>
> wlp82s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
>         inet 192.168.1.163  netmask 255.255.255.0  broadcast
> 192.168.1.255 inet6 fe80::1924:77b1:1f35:bc9a  prefixlen 64  scopeid
> 0x20<link> inet6 2602:61:736b:e800::62e  prefixlen 128  scopeid
> 0x0<global> inet6 2602:61:736b:e800:c1af:5e74:77ef:d686  prefixlen 64
> scopeid 0x0<global> inet6 2602:61:736b:e800:f257:5e0a:3a1c:2aaf
> prefixlen 64  scopeid 0x0<global> ether 94:e6:f7:b5:54:37  txqueuelen
> 1000  (Ethernet) RX packets 83460  bytes 18195866 (18.1 MB)
>         RX errors 0  dropped 0  overruns 0  frame 0
>         TX packets 79766  bytes 30914619 (30.9 MB)
>         TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
>
> The 90 Mbps computer is the laptop.
>
> The wg-mullvad above is my vpn.
>
> 192.168.1.170 is the address given to the laptop by the router for
> ethernet, and 192.168.1.163 is for its wifi. In the command 'cat
> /sys/class/net/eth0/speed 1000' I tried changing 'eth0' to wlp82s0 and
> to enx3ce1a1c0dbfc, but each resulted in 'Invalid argument' and 'no
> such file or directory. I must not be doing something right.
> _______________________________________________
> PLUG: https://pdxlinux.org
> PLUG mailing list
> [email protected]
> http://lists.pdxlinux.org/mailman/listinfo/plug
_______________________________________________
PLUG: https://pdxlinux.org
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug

Reply via email to