This provides a guide to adding a second ethernet (in this case 2.5GbE) to a Dell Optiplex Small Form Factor via the M2 slot. The involves replacing the M2 wireless card if it is installed.
Having a second network interface allows the Optiplex to be used as a gateway using opnsense or similar. If the Optiplex has a vPro enabled CPU it can be remotely managed using IME on the onboard 1GbE interface.
CC BY-SA: https://creativecommons.org/licenses/by-sa/4.0/
Fund me here: https://ko-fi.com/richardatlateralblast
This requires a M.2 A and E Intel i225V B3 i226V 2.5G Ethernet, e.g:
https://www.aliexpress.com/item/1005007273213520.html
As mentioned this involves removing the existing M2 2230 card if it exists. This is often a wireless chipset. If the chipstet is vPro enabled with IME, this will remove the ability to connect to the IME interface via wireless. The spare slot on the back will be used to mount the RJ45 interface connector.
If a 2.5in drive is installed, the drive will need to be removed to get to the slot.
Once the drive is removed, the slot can be accessed. If there is a card in the M2 slot it will need to be removed.
Now the M2 card, the slot cover, and antenna needs to be removed:
You will need to remove the connector to install the M2 card:
Once the M2 card is intalled the RJ45 connector can be attached and the cable routed:
Once complete we can put the case back on and use the new interface:
Tools like ethtool may report the interface as 1GbE, but as we can see from dmesg, the kernel driver sees it as 2.5GbE:
Depending on the age of the Optiplex, you should be able to get 2Gb or better throughput:
This was achieved on a Intel i5 based Optiplex: