It's actually the other way round. It's that Realtek doesn't provide functional drivers for FreeBSD, the operating system underpinning FreeNAS. This is a well-known and well-documented situation.
I already checked the hardware which FreeBSD 11.2 supported:
"The
re(4) driver supports RealTek RTL8139C+, RTL8169, RTL816xS, RTL811xS, RTL8168, RTL810xE and RTL8111 based Fast Ethernet and Gigabit Ethernet adapters including: "You will find FreeBSD support RTL8111. And my mainboard isPCIE*1 Gigabit Lan 10/100/1000Mbps with Realtek RTL 8111GR.
And I checked with my NIC performance:
This is from freenas, acting as server:
Accepted connection from 192.168.0.187, port 63902
[ 5] local 192.168.0.46 port 5201 connected to 192.168.0.187 port 63903
[ ID] Interval Transfer Bitrate
[ 5] 0.00-1.00 sec 2.35 MBytes 19.7 Mbits/sec
[ 5] 1.00-2.00 sec 2.96 MBytes 24.8 Mbits/sec
[ 5] 2.00-3.00 sec 2.87 MBytes 24.1 Mbits/sec
[ 5] 3.00-4.00 sec 2.78 MBytes 23.3 Mbits/sec
[ 5] 4.00-5.00 sec 2.92 MBytes 24.5 Mbits/sec
[ 5] 5.00-6.00 sec 2.96 MBytes 24.9 Mbits/sec
[ 5] 6.00-7.00 sec 3.02 MBytes 25.3 Mbits/sec
[ 5] 7.00-8.00 sec 2.62 MBytes 22.0 Mbits/sec
[ 5] 8.00-9.00 sec 2.65 MBytes 22.2 Mbits/sec
[ 5] 9.00-10.00 sec 2.93 MBytes 24.6 Mbits/sec
[ 5] 10.00-10.17 sec 481 KBytes 23.7 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval Transfer Bitrate
[ 5] 0.00-10.17 sec 28.5 MBytes 23.5 Mbits/sec receiver
And this is from my laptop, acting as client:
JacobdeMacBook-Air:downloads jacob$ /Users/jacob/Downloads/iperf3 -c 192.168.0.46
Connecting to host 192.168.0.46, port 5201
[ 4] local 192.168.0.187 port 63903 connected to 192.168.0.46 port 5201
[ ID] Interval Transfer Bandwidth
[ 4] 0.00-1.00 sec 2.86 MBytes 23.9 Mbits/sec
[ 4] 1.00-2.00 sec 2.94 MBytes 24.7 Mbits/sec
[ 4] 2.00-3.00 sec 2.88 MBytes 24.1 Mbits/sec
[ 4] 3.00-4.00 sec 2.84 MBytes 23.8 Mbits/sec
[ 4] 4.00-5.00 sec 2.89 MBytes 24.3 Mbits/sec
[ 4] 5.00-6.00 sec 2.97 MBytes 25.0 Mbits/sec
[ 4] 6.00-7.00 sec 2.99 MBytes 25.0 Mbits/sec
[ 4] 7.00-8.00 sec 2.50 MBytes 21.0 Mbits/sec
[ 4] 8.00-9.00 sec 2.80 MBytes 23.5 Mbits/sec
[ 4] 9.00-10.00 sec 2.94 MBytes 24.6 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval Transfer Bandwidth
[ 4] 0.00-10.00 sec 28.6 MBytes 24.0 Mbits/sec sender
[ 4] 0.00-10.00 sec 28.5 MBytes 23.9 Mbits/sec receiver
iperf Done.
JacobdeMacBook-Air:downloads jacob$ /Users/jacob/Downloads/iperf3 -c 192.168.0.46 -u
Connecting to host 192.168.0.46, port 5201
[ 4] local 192.168.0.187 port 49523 connected to 192.168.0.46 port 5201
[ ID] Interval Transfer Bandwidth Total Datagrams
[ 4] 0.00-1.00 sec 128 KBytes 1.04 Mbits/sec 16
[ 4] 1.00-2.00 sec 128 KBytes 1.05 Mbits/sec 16
[ 4] 2.00-3.00 sec 128 KBytes 1.05 Mbits/sec 16
[ 4] 3.00-4.01 sec 128 KBytes 1.05 Mbits/sec 16
[ 4] 4.01-5.00 sec 128 KBytes 1.05 Mbits/sec 16
[ 4] 5.00-6.01 sec 128 KBytes 1.05 Mbits/sec 16
[ 4] 6.01-7.01 sec 128 KBytes 1.05 Mbits/sec 16
[ 4] 7.01-8.00 sec 128 KBytes 1.05 Mbits/sec 16
[ 4] 8.00-9.00 sec 128 KBytes 1.05 Mbits/sec 16
[ 4] 9.00-10.00 sec 128 KBytes 1.05 Mbits/sec 16
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams
[ 4] 0.00-10.00 sec 1.25 MBytes 1.05 Mbits/sec 1.785 ms 0/159 (0%)
[ 4] Sent 159 datagrams
iperf Done.
dmesg:
re0: <RealTek 8168/8111 B/C/CP/D/DP/E/F/G PCIe Gigabit Ethernet> port 0xe000-0xe0ff mem 0x91204000-0x91204fff,0x91200000-0x91203fff irq 22 at device 0.0 on pci1
re0: Using 1 MSI-X message
re0: Chip rev. 0x4c000000
re0: MAC rev. 0x00000000
miibus0: <MII bus> on re0
rgephy0: <RTL8251 1000BASE-T media interface> PHY 1 on miibus0
rgephy0: none, 10baseT, 10baseT-FDX, 10baseT-FDX-flow, 100baseTX, 100baseTX-FDX, 100baseTX-FDX-flow, 1000baseT-FDX, 1000baseT-FDX-master, 1000baseT-FDX-flow, 1000baseT-FDX-flow-master, auto, auto-flow
re0: Using defaults for TSO: 65518/35/2048
re0: Ethernet address: (delected by myself because it's confidential)
Would you please check it, my NIC is OK or not? Great thanks.