Forums

Fri
Fri
Offline
Resolved
0 votes
I am trying to use Iperf3 but there is an error "iperf3: error - unable to connect to server: Connection refused"

My ClearOS firewall is off and my laptop firewall is also off.

Do I need to install iperf3 on my ClearOS server? if so how can I do that?
Saturday, March 07 2020, 04:15 AM
Share this post:

Accepted Answer

Saturday, March 07 2020, 08:36 AM - #Permalink
Resolved
0 votes
As a new poster, your first couple of posts get moderated so don't appear immediately.

Yes you need to install it:
yum install iperf3


If your are new to ClearOS, please check if you have an RTL8111/8168/8411 NIC with:
lspci -k | grep Eth -A 3
If you do, don't bother speed testing until you install the better drivers:
yum install kmod-r816*
Then reboot.
The reply is currently minimized Show
Responses (8)
  • Accepted Answer

    Saturday, March 07 2020, 12:46 PM - #Permalink
    Resolved
    1 votes
    Just a simple:
    yum remove kmod-r816*
    will work, or:
    yum remove kmod-r8168 kmod-r8169
    Be very careful when removing apps with yum. If the command tries to remove a load of dependencies which don't obviously belong to the apps you want to remove, stop. You can bring your system to its knees. In this case, it won't remove any dependencies.
    Like
    1
    The reply is currently minimized Show
  • Accepted Answer

    Fri
    Fri
    Offline
    Saturday, March 07 2020, 10:11 AM - #Permalink
    Resolved
    0 votes
    Nick Howitt wrote:

    No. The r8169 is supposed to cover all cards including RTL8169 cards but it does not perform well the an RTL8168 card. The r8169 driver comes in the kernel. The r8168 is supplied by RTL, but for some reason, never gets incorporated in the kernel. The RTL8169 chip is PIC and the RTL818 is PCI-E.

    To revert, uninstall both the kmod-r8168 and kmod-r8169 drivers and reboot.


    I see.

    Is this the right command for that? "yum remove kmod-r8168" and "yum remove kmod-r8169"
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, March 07 2020, 10:07 AM - #Permalink
    Resolved
    1 votes
    ClearOS7 is based on Centos7 so they are very similar and use yum. Think Centos8 moves over to dnf. In ClearOS you run as root user so there is no need to do the "sudo".
    Like
    1
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, March 07 2020, 10:05 AM - #Permalink
    Resolved
    1 votes
    No. The r8169 is supposed to cover all cards including RTL8169 cards but it does not perform well the an RTL8168 card. The r8169 driver comes in the kernel. The r8168 is supplied by RTL, but for some reason, never gets incorporated in the kernel. The RTL8169 chip is PIC and the RTL818 is PCI-E.

    To revert, uninstall both the kmod-r8168 and kmod-r8169 drivers and reboot.
    Like
    1
    The reply is currently minimized Show
  • Accepted Answer

    Fri
    Fri
    Offline
    Saturday, March 07 2020, 10:04 AM - #Permalink
    Resolved
    1 votes
    I have installed the iperf3 upon testing it's working fine.

    Does CentOS and ClearOS have the same command?

    For example. it's also "yum" in the CentOS.

    $ sudo apt install iperf3 #Debian/Ubuntu
    $ sudo yum install iperf3 #RHEL/CentOS
    $ sudo dnf install iperf3 #Fedora 22+
    The reply is currently minimized Show
  • Accepted Answer

    Fri
    Fri
    Offline
    Saturday, March 07 2020, 09:44 AM - #Permalink
    Resolved
    0 votes
    Nick Howitt wrote:

    No the r8169 is not ideal. Install the two I mentioned and reboot and ClearOS will switch to the r8168 driver.


    What is the different of r8168 and r8169. The r8169 is much newer right?

    If I decide to go back to r8169 can I do that?
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, March 07 2020, 09:40 AM - #Permalink
    Resolved
    1 votes
    No the r8169 is not ideal. Install the two I mentioned and reboot and ClearOS will switch to the r8168 driver.
    Like
    1
    The reply is currently minimized Show
  • Accepted Answer

    Fri
    Fri
    Offline
    Saturday, March 07 2020, 09:30 AM - #Permalink
    Resolved
    0 votes
    Nick Howitt wrote:

    As a new poster, your first couple of posts get moderated so don't appear immediately.

    Yes you need to install it:
    yum install iperf3


    If your are new to ClearOS, please check if you have an RTL8111/8168/8411 NIC with:
    lspci -k | grep Eth -A 3
    If you do, don't bother speed testing until you install the better drivers:
    yum install kmod-r816*
    Then reboot.



    01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 0c)
    Subsystem: Gigabyte Technology Co., Ltd Onboard Ethernet
    Kernel driver in use: r8169
    Kernel modules: r8169
    02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 02)
    Subsystem: ASUSTeK Computer Inc. M3A78 Series Motherboard
    Kernel driver in use: r8169
    Kernel modules: r8169

    Is this correct drivers?
    The reply is currently minimized Show
Your Reply