NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.

Forum Discussion

Ejik2's avatar
Ejik2
Aspirant
May 07, 2025

2.5GBe USB LAN

 I have an old Ultra2 2Gb RAM running 6.10.9 OS. NAS is working great but 1Gb LAN is a bottleneck. I've bought cheap 2.5GBe USB LAN adapter based on realtek chip, attached to USB3 port and installed latest driver - r8152-2.19.2. Installation was successful, 3rd LAN interface appeared, link speed is 2500. But file copy speed is bad - i've got only ~80MB/s on 2.5 link (on native 1G l have ~110MB/s ). Then I connected the adapter to my laptop and got ~ 260MB/s, so the problem is in the NAS, not the adapter. Any suggestions\settings of speed improvement on NAS ?

18 Replies

  • schumaku's avatar
    schumaku
    Guru - Experienced User

    Doesn't help much using such a device on a NAS certainly never intended to be operate on these legacy NAS devices (all Netgear NAS are ...)

    The limitation to about 80 Mb/s was always on the storage side (the HDDs, the Raid - overall the CPU, the memory.

    Some percent more might be reached by using SMB 3.0 transport and jumbo frames - but that does not make any wonders possible.

    • Ejik2's avatar
      Ejik2
      Aspirant

      I've already using smb3 and jumbo frames.  1x native lan reaches ~ 100-110MB/s, 2 x naive lan bonded ~140MB/s. Why with 2.5G it less ?

  • schumaku's avatar
    schumaku
    Guru - Experienced User

    This limitation to about 80 Mb/s vs the "full' Gigabit Ethernet must be somewhere on the USB side of that NAS. Strongly doubt ad-hoc driver installations are possible anyway for various reasons...

    • Ejik2's avatar
      Ejik2
      Aspirant

      Good point... Just tried dd from external HDD connected to USB3 and got ~106 MB/s. Not sure is it HDD or USB limitation, do not have SSD to check...

  • StephenB's avatar
    StephenB
    Guru - Experienced User

    Have you checked the advertised link speed of the interface with ethtool?

    You could try installing iperf on the NAS and a PC - that would let you measure the network throughput independently of the RAID.

    You can also test the RAID throughput using dd ( of=/dev/null for read tests; if=/dev/zero for write tests).  That will give you some idea on how much you might actually gain if you get the 2.5G running at full speed.  Though this wouldn't account for SAMBA, which will slow things down.

    • Ejik2's avatar
      Ejik2
      Aspirant

      Yep, ethtool shows 2500 link speed. Not tested with DD, but with native 2x 1Gb interfaces bonded, round-robin I've got ~140MB/s

  • StephenB's avatar
    StephenB
    Guru - Experienced User

     I have an old Ultra2 2Gb

    Do you have an Ultra 2 (RNDU2000)?  Or an Ultra 2 Plus (RNDP200U)?

    • Ejik2's avatar
      Ejik2
      Aspirant

      Ultra 2 (RNDU2000), just upgraded ram to 2gb 

  • How did you install the driver?  It's going to need kernel support, and the kernel doesn't have any drivers for 2.5GbE devices, AFAIK.  It only natively supports 1GB and below and 10GbE.  I'm suspicious that it's using the native Realtek driver, which is 1GbE max, not what you installed.

  • Do you still have a 1GB interface connected and enabled?  If so, it's likely actually using that interface.  Check what interface the Performance screen show is being used.

    If you need WoL capability, you can connect one 1GB connection but have it disabled.  A WoL to its MAC address will still wake the NAS, but the OS won't try to use it.

    • Ejik2's avatar
      Ejik2
      Aspirant

      nope, i've temporary disconnected 1G for tests 

  • Hi, could you explain how to proccess whole driver installation? You are talking regarding driver compilation.

    There is package you refer to (R8152 package - oficial website driver) and something called DKMS.. last time i tried DKMS (from github project), installed appeared correctly, but no new ethernet adapter appeared. Currently uptodate version is both 2.21.4

    Im noob in this.. modding old outdated linux, like mobs like to say. :-) I have bought cheap RTL8157 5gbe adapter from CableMatters at ebay recently. Connected to the only usb 3.1 at RN312 unit. It appears in usb listed devices, etc. I dont expect miracle, but network transfers speed improvement would be better. This topic gave me hope.

     

    I would add lsusb and other commands info, but currently, just for sure, reinstalling and defaulting whole RNOS after last fail.

    • Ejik2's avatar
      Ejik2
      Aspirant

       

      1) Get hold of the NETGEAR GPL sources for your firmware version from here: https://kb.netgear.com/2649/NETGEAR-Open-Source-Code-for-Programmers-GPL

       

      2) Unpack the file on the ReadyNAS (ideally you'll use the root account for that but preferrably NOT the root home directory. Some directory below /data will be fine

       

      3) Copy the linux-kernel-* source directory for your architecture from the unpacked GPL archive to another place, say /data/kernel

       

      4) Go to that directory and run "make clean && make && make install && make modules_install" (the last one is optional)

       

      5) Create a symlink from the directory to /lib/modules/<your kernel version>

       

      6) Extract the driver, than from the extracted data directory run make; make install

       

  • Guide + info. First it was neccesary to add another (working) source for packages:

    deb [trusted=yes] http://archive.debian.org/debian-security jessie/updates main non-free contrib

    So i could download and install classic: sudo, nano, make, usbutils, latestkeyring, freexiankeyring, kernelplus, then i added linux-image-extra just for sure, and surprisingly also dkms, build-essentials, and linux-headers-amd64 (in this order) were successfuly installed. Then according another I have also installed also bc. Most of packages i dont know purpose or further details. Nevermind.

     

    I have also downladed original debian 4.4.218 (haven't tried yet) and from your recomendation downloaded GPL source WW6.10.9SRC for my current ReadyNAS OS 6. I have RN312 enterprise unit, and if i seen correctly, your Ultra2 has different GPL source files listing for download (just mentioning difference).

    Bus 004 Device 002: ID 0bda:8157 Realtek Semiconductor Corp.

     

    Make driver or attempt to install dkms driver, both still resulted with missing linux-header-4.4.218.x86_64.1 error message.

     

    Then i tried to bash .. linux kernel headers compilation, (4th step of your guide), using in folder linux-4.4.218-x86_64, it took about one half or one hour. Few warnings or stacks bigger then expected byte size, but it finally went whole and completed, I cant judge warnings messages.

     

    Then.. i tried install Realtek driver (8152), there were some faulty bytes or points, altought it did. No new adapter appeared, i dont know what symlink to where (no success). But i have done install of Realtek driver (8152) DKMS from github version and it finnaly completed finished, new adapter appeared. So i connected cable, and it works on 1gbit. Webadmin-network says 1gbit on all adapters even while no cable connected.

     

    So is this the success or not? I have tried setting network adapter speed according driver readme.txt (uname -r says clearly 4.4.218.x86_64.1)

     

    (ethtool -s eth2 autoneg on advertise 0x802f) should do 2,5gbit, seemed command done, but no change (in webadmin).

    for 2,5gbit: ethtool -s eth0 autoneg on advertise 0x80000000002f says invalid command line parameter(s)

    ethtool for 5gbit -s eth2 autoneg on advertise 0x180000000002f (says same, invalid command parameter(s))

    readme says, it should work (0x802f does) for kernel below 4.10, and the other (long hexcodes) for newer kernel than 4.10 but those commands dont work

     

    sudo ethtool -s eth2 speed 5000 duplex full autoneg on - says "cant advertise 5000 duplex full"

    sudo ethtool -s eth2 speed 2500 duplex full autoneg on - seems command done, but no change

    webadmin still showing 1gbit, should i rely on this? i have not yet 5gbit network hub/switch, so i can only connect  5gbit usb-rj usb stick to another, will this work and proove all work is done ok?

     

    • ddewrbbdg's avatar
      ddewrbbdg
      Tutor

      ...  so i have connected pc-nas directly using two 5gbit usb-rj45 sticks (on windows it does 5gbit link) for testing link connection:

      ethtool -s eth2 autoneg on advertise 0x802f

      works and changed link to 2,5gbit... but im capped at 300mbit while testing transfer speeds with iperf..

      > maybe wrong reduction usb-a 3.0 from NAS to usb-c then stick, it is around 300-400mbit cap, which seems to be 2.0usb limit

      the long hex (readme says for kernel above version 4.10)values dont work

      ethtool -s eth2 autoneg on advertise 0x80000000002f      >2,5gbit

      ethtool -s eth2 autoneg on advertise 0x180000000002f     >5gbit

      neither of long hex values does work. also tried something like following lines

      ethtool -s eth2 speed 2500 duplex fulll > works

      ethtool -s eth2 speed 5000 duplex fulll > does not work (cannot advertise speed)

       

      i am expecting usb 3.2 reduction from NAS usb-f port (stick USB-A male, USB-C female) for stick to be delivered within 2 days.

      • ddewrbbdg's avatar
        ddewrbbdg
        Tutor

        Usb stick arrived just right today. It is certified USB 3.2 reduction from USB-A(male) to USB-C(female). And voila :-)!

         

        Tested with iperf2 on both sides (ReadyNAS - Windows 10) and total commander copying very very large file.

        SMB:

        PC > NAS upload approx 180MB/s =+- 1,5Gbit constant transfer / rate

        NAS > PC download approx 130MB/s = +-1,2Gbit constant transfer rate / cap

        FTP:

        about 5 % faster in both directions/ways, no more differencies

         

        Copying is very CPU demanding, 2x2,13Ghz from year2011? Intel Atom D2700 CPU. CPU usage reaches 100% treshold constantly or in frequent peaks. Altough i really dont understand why downloading from NAS is significantly slower then uploading to NAS. I would expect exact opposite. 

         

        Hardware is NVME (3000MB/s) disk at PC and SSD (500MB/s) disk at NAS. I have tried turning off all encryption or data bit verification, data rot protection, control count checking on both sides.

         

        Network link is currently 2,5Gbit, i was unable to find way how to switch to 5Gbit link speed. Transfer speeds were same with iper2 and 120GB chunk data file transfers. Probably CPU limited. Looks like we are chewing ReadyNAS to the max on its last way. Also there is a point and valid reason, why bigger link speed brings no effort or better / faster usage.

         

        "uname -r" says "4.4.218.x86_64.1", which should be linux version, altough i think we used older linux headers, because i was able to install only "linux-headers-am64", which probably brought old 3.16 linux headers, listed by "apt list linux-headers*" EDIT: i was able to install 4.9 headers (from same list), so i remove 3.16 headers and gonna recompile all whole things. Accoring "apt list --manual-installed" now there is only "linux-headers-4.9-amd64" installed. Maybe i will bring another +++ update. I should write book or guide and make it sticky.

         

  • I have made clean reinstall NAS OS and after package installation, i have installed newer linux-headers-5.10-amd64, build-essential, dkms and recompiled linux (directory) 4.4.218.x86_64.1, then installed again dkms driver. I also tried to replace this one by realtek default driver (dkms add, dkms build, dkms install .. commands, all did their job), but it didnt changed anything.

     

    uname -r  for linux version

     

    4.4.218.x86_64.1

     

     

    ehtool speed / link mode manual setting

    (before OS boots, there is 5.0gbit by nature, but not reachable in booted debian linux)

     

    root@NAS:/sda/www/aaa# ethtool -s eth2 autoneg on advertise 0x180000000002f
    ethtool: bad command line argument(s)
    For more information run ethtool -h
    root@NAS:/sda/www/aaa# ethtool -s eth2 speed 5000 autoneg on
    Cannot advertise speed 5000

     

    readme says (but long hex values settings dont work neither): i thought i have kernel above 4.10

     

    - Example of setting speed
    
    	2.5G before kernel v4.10
    	# ethtool -s eth0 autoneg on advertise 0x802f
    
    	2.5G for kernel v4.10 and later
    	# ethtool -s eth0 autoneg on advertise 0x80000000002f
    
    	5G for kernel v4.10 and later (Couldn't be supported before kernel v4.10)
    	# ethtool -s eth0 autoneg on advertise 0x180000000002f
    
    	10G for kernel v4.10 and later (Couldn't be supported before kernel v4.10)
    	# ethtool -s eth0 autoneg on advertise 0x180000000102f
    
    	# ethtool -s eth0 autoneg on advertise 0x002f (1G)
    	# ethtool -s eth0 autoneg on advertise 0x000f (100M full)
    	# ethtool -s eth0 autoneg on advertise 0x0003 (10M full)

     

    some more info regarding os/kernel/driver version

     

    dkms install -m realtek-r8152 -v 2.21.4 --force
    Module realtek-r8152/2.21.4 already installed on kernel 4.4.218.x86_64.1/x86_64

     

    ethtool eth2 info regarding transfer modes.

     

     ethtool eth2
    Settings for eth2:
            Supported ports: [ MII ]
            Supported link modes:   10baseT/Half 10baseT/Full
                                    100baseT/Half 100baseT/Full
                                    1000baseT/Full
                                    2500baseX/Full
            Supported pause frame use: No
            Supports auto-negotiation: Yes
            Advertised link modes:  10baseT/Half 10baseT/Full
                                    100baseT/Half 100baseT/Full
                                    1000baseT/Full
                                    2500baseX/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
                                                 1000baseT/Full
            Link partner advertised pause frame use: No
            Link partner advertised auto-negotiation: Yes
            Speed: 2500Mb/s
            Duplex: Full
            Port: MII
            PHYAD: 32
            Transceiver: internal
            Auto-negotiation: on
            Supports Wake-on: pumbg
            Wake-on: d
            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

     

    2,5gbit link obviously works with stable 180/130MB/s speed (upload to NAS/download from NAS), altought i think those could be improved. If is see correctly (top and htop is a mess), it takes at most half cpu(smbd consumes/utilizes single one core out of 2). I have also turned off SMB3 encryption but no change. There is also possibility to use with SMB Plus addon, choose samba version CIFS 1.0, or 2.0, 2.1, 3.0, 3.0.2, 3.1.1 those values offers SMB Plus addon. Maybe one or more would be less cpu consuming.

NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology! 

Join Us!

ProSupport for Business

Comprehensive support plans for maximum network uptime and business peace of mind.

 

Learn More