I was having issues again with the unexpected slowness of my internet access. This time turns out due to failure in ethernet auto-negotiation. My PC's ethernet interface is 2.5 Gbps, as well MoCA adapter that is connected to it. It was working fine, until yesterday, where I got only 90's Mbps on SpeedTest.
There is cool PowerShell command to display the link speed: Get-NetAdapter.
We can create a DOS shell wrapper, so invoking this from a regular DOS prompt would work.
For example, I put this command in a file called "getnet.ps1". I created another DOS script called "getnet.cmd" with the content of it just calling getps1.ps1:
In getnet.ps1:
Get-NetAdapter
In getnet.cmd:
call getnet.ps1
For example:
C:\Users\anon\bin>type getnet.cmd
call getnet.ps1
C:\Users\lshih\bin>getnet
C:\Users\lshih\bin>call getnet.ps1
Name InterfaceDescription ifIndex Status MacAddress LinkSpeed
---- -------------------- ------- ------ ---------- ---------
Bluetooth Network Conn... Bluetooth Device (Personal Area Netw... 27 Disconnected 38-FC-98-13-E9-2A 3 Mbps
2.5 GigE LAN Realtek Gaming 2.5GbE Family Contr...#2 21 Up 04-42-1A-0C-2C-C4 2.5 Gbps
vEthernet (2.5 GigE LAN) Hyper-V Virtual Ethernet Adapter 16 Up 00-15-5D-76-F1-69 10 Gbps
vEthernet (1 GigE LAN) Hyper-V Virtual Ethernet Adapter #3 52 Up 00-15-5D-D2-5B-EB 10 Gbps
1 GigE LAN Intel(R) I211 Gigabit Network Conn...#2 14 Up 04-42-1A-0C-2C-C3 1 Gbps
vEthernet (VirtualBox ... Hyper-V Virtual Ethernet Adapter #2 40 Up 00-15-5D-F1-53-24 10 Gbps
VirtualBox Host-Only N... VirtualBox Host-Only Ethernet Adapter 7 Up 0A-00-27-00-00-07 1 Gbps
vEthernet (WSL) Hyper-V Virtual Ethernet Adapter #4 75 Up 00-15-5D-9C-4E-D0 10 Gbps