Friday, 14 August 2020

100M only for Realtek USB Driver ?

 [root@ESXi01:~] esxcli network nic list

Name    PCI Device    Driver  Admin Status  Link Status  Speed  Duplex  MAC Address         MTU  Description

------  ------------  ------  ------------  -----------  -----  ------  -----------------  ----  -----------

vmnic0  0000:00:1f.6  ne1000  Up            Up            1000  Full    1c:69:7a:6b:a3:e5  1500  Intel Corporation Ethernet Connection (10) I219-V

vusb0   Pseudo        cdce    Up            Up             100  Full    00:e0:4c:68:05:48  1500  Realtek USB 101001000 LAN




If see the above, my USB network port is only at 100GB... 

The solution is provided here:

Installer can be found here:

Note, when installing, you need to put the zip file in / or else you will get this error:

[root@ESXi01:/vmfs] cd volumes/XPG\ SX8200\ PRO/software/
[root@ESXi01:/vmfs/volumes/5f1c7304-77d00f04-ad0f-1c697a6ba3e5/software] esxcli software vib install -d ./ESXi700-VMKUSB-NIC-FLING-34491022-component-15873236.zip
 [MetadataDownloadError]
 Could not download from depot at zip:/var/log/vmware/ESXi700-VMKUSB-NIC-FLING-34491022-component-15873236.zip?index.xml, skipping (('zip:/var/log/vmware/ESXi700-VMKUSB-NIC-FLING-34491022-component-15873236.zip?index.xml', '', "Error extracting index.xml from /var/log/vmware/ESXi700-VMKUSB-NIC-FLING-34491022-component-15873236.zip: [Errno 2] No such file or directory: '/var/log/vmware/ESXi700-VMKUSB-NIC-FLING-34491022-component-15873236.zip'"))
        url = zip:/var/log/vmware/ESXi700-VMKUSB-NIC-FLING-34491022-component-15873236.zip?index.xml
 Please refer to the log file for more details.




If if you in /, it will work:
[root@ESXi01:/vmfs/volumes/5f1c7304-77d00f04-ad0f-1c697a6ba3e5/software] esxcli software vib install -d /ESXi700-VMKUSB-NIC-FLING-34491022-component-15873236.zip
Installation Result
   Message: The update completed successfully, but the system needs to be rebooted for the changes to be effective.
   Reboot Required: true
   VIBs Installed: VMW_bootbank_vmkusb-nic-fling_0.1-4vmw.700.1.0.34491022
   VIBs Removed:
   VIBs Skipped:



You need to use esxcli again to configure the virtual switch after each reboot.

To do so, you can modify the /etc/rc.local.d/local.sh script. By default this script is not doing anything, you can copy this shell script inside:

VDS_NAME="DSwitch 2-VLAN10"
VDS_PORT_ID=12
vusb1_status=$(esxcli network nic get -n vusb1 | grep 'Link Status' | awk '{print $NF}')
count=0
while [[ $count -lt 20 && "${vusb1_status}" != "Up" ]]
do
    sleep 10
    count=$(( $count + 1 ))
    vusb0_status=$(esxcli network nic get -n vusb1 | grep 'Link Status' | awk '{print $NF}')
done
if [ "${vusb1_status}" = "Up" ]; then
    esxcfg-vswitch -P vusb1 -V ${VDS_PORT_ID} "${VDS_NAME}"
fi
You need to configure:

VDS_NAME ===> This is the name of your Distributed Switch
VDS_PORT_ID ===> This is the uplink port number
vusb# ===> This is the network card you want to configure (I have 2, so the script configure 2 “vusb: vusb0 and vusb1)
A last reboot to verify it’s working and your set!




I am not sure why but it took some time (about 3hrs) before my vusb0 got up to 1000MB/s:
[root@ESXi01:~] esxcli network nic list
Name    PCI Device    Driver  Admin Status  Link Status  Speed  Duplex  MAC Address         MTU  Description
------  ------------  ------  ------------  -----------  -----  ------  -----------------  ----  -----------
vmnic0  0000:00:1f.6  ne1000  Up            Up            1000  Full    1c:69:7a:6b:a3:e5  1500  Intel Corporation Ethernet Connection (10) I219-V
vusb0   Pseudo        uether  Up            Up            1000  Full    00:e0:4c:68:05:48  1500  Realtek USB 101001000 LAN
[root@ESXi01:~] esxcli network nic get -n vusb0 | grep 'Link Status' | awk '{print $NF}'
Up
[root@ESXi01:~] esxcfg-nics --list
Name    PCI          Driver      Link Speed      Duplex MAC Address       MTU    Description
vmnic0  0000:00:1f.6 ne1000      Up   1000Mbps   Full   1c:69:7a:6b:a3:e5 1500   Intel Corporation Ethernet Connection (10) I219-V
vusb0   Pseudo       uether      Up   1000Mbps   Full   00:e0:4c:68:05:48 1500   Realtek USB 101001000 LAN



This is what I get at the beginining:
[root@ESXi01:~] esxcli network nic list
Name    PCI Device    Driver  Admin Status  Link Status  Speed  Duplex  MAC Address         MTU  Description
------  ------------  ------  ------------  -----------  -----  ------  -----------------  ----  -----------
vmnic0  0000:00:1f.6  ne1000  Up            Up            1000  Full    1c:69:7a:6b:a3:e5  1500  Intel Corporation Ethernet Connection (10) I219-V
vusb0   Pseudo        uether  Up            Up             100  Full    00:e0:4c:68:05:48  1500  Realtek USB 101001000 LAN
[root@ESXi01:~] esxcfg-nics --list
Name    PCI          Driver      Link Speed      Duplex MAC Address       MTU    Description
vmnic0  0000:00:1f.6 ne1000      Up   1000Mbps   Full   1c:69:7a:6b:a3:e5 1500   Intel Corporation Ethernet Connection (10) I219-V
vusb0   Pseudo       uether      Up   100Mbps    Full   00:e0:4c:68:05:48 1500   Realtek USB 101001000 LA


OK.. I found out that the trick is to take out and out back the network cable and the speed will go up to 1000MB/s .. weird.. see below (before and after):
[root@ESXi01:~]  esxcli network nic list
Name    PCI Device    Driver  Admin Status  Link Status  Speed  Duplex  MAC Address         MTU  Description
------  ------------  ------  ------------  -----------  -----  ------  -----------------  ----  -----------
vmnic0  0000:00:1f.6  ne1000  Up            Up            1000  Full    1c:69:7a:6b:a3:e5  1500  Intel Corporation Ethernet Connection (10) I219-V
vusb0   Pseudo        uether  Up            Up             100  Full    00:e0:4c:68:05:48  1500  Realtek USB 101001000 LAN
[root@ESXi01:~]  esxcli network nic list
Name    PCI Device    Driver  Admin Status  Link Status  Speed  Duplex  MAC Address         MTU  Description
------  ------------  ------  ------------  -----------  -----  ------  -----------------  ----  -----------
vmnic0  0000:00:1f.6  ne1000  Up            Up            1000  Full    1c:69:7a:6b:a3:e5  1500  Intel Corporation Ethernet Connection (10) I219-V
vusb0   Pseudo        uether  Up            Up            1000  Full    00:e0:4c:68:05:48  1500  Realtek USB 101001000 LAN




Any for Frost Canyon there are additional instructions:

1 comment:

  1. [root@ESXi01:/vmfs/volumes/5f1c7304-77d00f04-ad0f-1c697a6ba3e5/software] esxcli network nic get -n vusb0
    Advertised Auto Negotiation: false
    Advertised Link Modes: 100None/Full
    Auto Negotiation: false
    Cable Type:
    Current Message Level: -1
    Driver Info:
    Bus Info: 0000:00:00:0
    Driver: cdce
    Firmware Version: NA
    Version: 1.0.0.0
    Link Detected: true
    Link Status: Up
    Name: vusb0
    PHYAddress: 0
    Pause Autonegotiate: false
    Pause RX: false
    Pause TX: false
    Supported Ports:
    Supports Auto Negotiation: false
    Supports Pause: false
    Supports Wakeon: false
    Transceiver:
    Virtual Address: 00:50:56:51:01:35
    Wakeon: None

    ReplyDelete