Score:0

Network card without needing to install drivers

ve flag

We're looking for a network card that works without it having to be installed via drivers.

Ubuntu Version: Ubuntu 20.04.2 LTS

Kernel version: Linux version 5.4.0-73-generic (buildd@lcy01-amd64-019) (gcc version 9.3.0 (Ubuntu 9.3.0-17ubuntu1~20.04)) #82-Ubuntu SMP Wed Apr 14 17:39:42 UTC 2021

I've been struggling to get a Realtek NIC to work on the server. Every server reboot it updates the kernel and removes the NIC from the server making it unavailable.

I was thinking some options would be the INTEL EXPI9404PTL PRO/1000 PT series.

Are those baked into the 5.4.0 kernel?

UPDATE:

Here is a lookup for current NIC in the server:

  *-network
       description: Ethernet interface
       product: RTL8125 2.5GbE Controller
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0
       bus info: pci@0000:08:00.0
       logical name: enp8s0
       version: 05
       serial: a8:a1:59:2d:9d:d0
       size: 1Gbit/s
       capacity: 2500Mbit/s
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd 2500bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=r8125 driverversion=9.005.01-NAPI duplex=full ip=192.168.1.100 latency=0 link=yes multicast=yes port=twisted pair speed=1Gbit/s
       resources: irq:33 ioport:f000(size=256) memory:fc500000-fc50ffff memory:fc510000-fc513fff

UPDATE:

Output of: dkms status

synosnap, 0.10.15, 5.4.0-73-generic, x86_64: installed

UPDATE:

We did a bit of research and it seems Intel Gigabit CT PCI-E Network Adapter EXPI9301CTBLK to be the most compatible with linux kernel. I'll report back when we install it.

user535733 avatar
cn flag
Most NICs are baked into the kernel. A few manufacturers don't. For equipment that has been tested with Ubuntu, see http://ubuntu.com/certified
heynnema avatar
ru flag
Doesn't the server have its own NIC?
ve flag
@heynnema this is a hand-built 1U server with ASRock B550M STEEL LEGEND motherboard. It has a Dragon RTL8125BG NIC. I have spent about a week of time just trying to get it to stay after a reboot. My last fix was to turn off Live Update on Ubuntu just so kernel does not update without my triggering an update.
ve flag
URL for motherboard: https://www.newegg.ca/asrock-b550m-steel-legend/p/N82E16813157940?Description=b550f&cm_re=b550f-_-13-157-940-_-Product
heynnema avatar
ru flag
Is the RTL8125BG seen by Ubuntu? Edit your question and show me `sudo lshw -C network`.
heynnema avatar
ru flag
It's being seen. Doesn't it work?
ve flag
@heynnema yes after I re-install drivers by hand it's visible. But getting it to reinstall after each update has been impossible so far.
heynnema avatar
ru flag
Are you using a DKMS driver? Show me `dkms status`.
ve flag
@heynnema yes it works, but only when I manually install and connect my monitor and keyboard to it :) the issue is the reboot of the server - once reboot starts the kernel gets updated and drivers get kicked off.
heynnema avatar
ru flag
There's no DKMS driver installed. Where/how/why did you get your driver from? Didn't Ubuntu support the NIC without your driver? Do you have access to a Ubuntu Live 21.04? Can you make one?
ve flag
@heynnema this was taken from the Realtek page: https://www.realtek.com/en/component/zoo/category/network-interface-controllers-10-100-1000m-gigabit-ethernet-usb-3-0-software
ve flag
I'm not sure what you mean by Ubuntu Live 21.04. You want me to boot into a live CD?
heynnema avatar
ru flag
Yes, boot to a Live DVD/USB version 21.04 and see if the ethernet works. The Realtek driver is not DKMS, so you'd have to rebuild it after every kernel update.
ve flag
@heynnema ah I cant stop the server right now, there's a bunch of DEV stuff happening on it and it would stop couple of people working on it. I think we'll go for a Intel Gigabit CT PCI-E Network Adapter EXPI9301CTBLK - from all the threads I read about it, it seems to be plug-and-play.
heynnema avatar
ru flag
If 21.04 supports the RTL8125 out of the box, wouldn't that be a better choice? Did you also update netplan for the NIC?
ve flag
That would mean I would have to do an upgrade to the server that has a Magento 2 install with PHP / MYSQL and so on. I don't want to get into that process right now as hands are already full with other work.
chili555 avatar
cn flag
@heynnema Please check here: https://github.com/awesometic/realtek-r8125-dkms
heynnema avatar
ru flag
@KalvinKlien Hey, chili555 found a dkms driver for you!
heynnema avatar
ru flag
@chili555 Thanks! Good find. Write that as an answer.
Score:2
cn flag

Please do:

sudo apt update
sudo apt install dkms git
git clone https://github.com/awesometic/realtek-r8125-dkms.git
cd realtek-r8125-dkms
sudo ./dkms-install.sh

You should be all set.

heynnema avatar
ru flag
You should do the dkms install with sudo ./dkms-install.sh, no? dkms is already there.
chili555 avatar
cn flag
Soory for my mis-step. Corrected. Thanks for the catch, @heynnema
heynnema avatar
ru flag
What a team :-). You can remove the dkms install too, as they already have it installed. Add a reboot or a modprobe.
chili555 avatar
cn flag
@heynnema I try to never take chances; hence update, dkms, git.
ve flag
Thanks! I already ordered the Intel NIC, but once it arrives and I can get the team off the DEV server for upgrades I will try this. For now I will accept as the answer. Should be in a couple of days.
ve flag
@chili555 will this stick after the kernel update?
heynnema avatar
ru flag
@KalvinKlien Yes, dkms drivers stick after a kernel update.
heynnema avatar
ru flag
@KalvinKlien Remember to re-enable Software Updates. And reboot after the driver install.
ve flag
@heynnema just now I need to remember how I did it :) Its a CLI-only machine so the fun of Web Developer delving into server administration never ends :)
ve flag
@heynnema and chili555 thanks for all the help!
chili555 avatar
cn flag
We strive to please! We're glad to help.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.