Linux: Set up a Intel 82574L PRO/1000 CT Desktop Network Adapter with netplan

Frank Baier
2 min readOct 19, 2021
© Nathan Dumlao at unsplash.com

I bought a new Intel EXPI9301CT PRO/1000 CT network adapter at Amazon. With a few steps it is possible to use this Intel Gigabit Network Adapter at home with elementary 6.0 [Ubuntu 20.04].

I’m using the kernel 5.11.16 with elementary OS 6.0. I had to add the module e1000e at /etc/modules.

Next I created a new file inside the /etc/modprobe.d/ folder.

sudo nano e1000e.conf

Inside of this file I used a few parameters to change the network card settings.

alias eth0 e1000e
options e1000e InterruptThrottleRate=0 RxIntDelay=0 RxAbsIntDelay=0 TxIntDelay=0 TxAbsIntDelay=0 IntMode=2 SmartPowerDownEnable=0 CrcStripping=1 WriteProtectNVM=1

With the next step I made the change for the kernel to load the new settings with the reboot.

sudo update-initramfs -u -k all

After each reboot I want to use settings for the network adapter which are possible with the tool ethtool. And for that I will use the systemd-networkd.service and the networkd-dispatcher.service with netplan.

systemctl enable systemd-networkd.service
systemctl start systemd-networkd.service
systemctl status systemd-networkd.service
systemctl enable networkd-dispatcher.service
systemctl start networkd-dispatcher.service
systemctl status networkd-dispatcher.service

With these two services up and running I create a new file inside the /etc/networkd-dispatcher/routable.d/ folder.

sudo nano /etc/networkd-dispatcher/routable.d/50-ifup-hooks

These are my settings inside the file for the TCP Offloading, the TCP Autonegotiation and the TCP Ring Size Buffer.

#!/bin/bashethtool -K eth0 rx off tx off gso off gro off rxvlan off txvlan off
ethtool -A eth0 rx off tx off
ethtool -G eth0 rx 4096 tx 4096

After I created the 50-ifup-hooks file, I had to change the permission to execute to file.

sudo chmod +x /etc/networkd-dispatcher/routable.d/50-ifup-hooks

After each reboot the network adapter should run with the settings from the e1000e.conf file and the netplan 50-ifup-hooks file.

--

--

Frank Baier

Server Engineer | Performance/System/Data Analyst