Categories
Ubuntu

Enable 2.5G and 10G network in Ubuntu 24.10

I have ASUS motherboard that support both 2.5G and 10G LAN Network. Connected with CAT6 with 10Gbps capacity. However, the default Ubuntu limit the transfer speed into 100Mbps.

To solve this problem, here are few steps to do

  1. Edit Grub /etc/default/grub and add pcie_aspm=off for example
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash pcie_aspm=off ipv6.disable=1"

Make sure to reboot your Ubuntu OS.

2. Check your network speed using sudo lshw -c network

sudo lshw -c network
  *-network                 
       description: Ethernet interface ...
       size: 1Gbit/s
       capacity: 1Gbit/s
  *-network
      ...
       size: 100Mbit/s
       capacity: 1Gbit/s
       

Its showed here that my second LAN being capped by 100Mbit/s

3. Then change the speed. In my case, I use 2500 and my network card in enp7s0. You can change this with users. Check using ifconfig

sudo ethtool -s enp7s0 speed 2500 duplex full autoneg on

Voila! Enjoy the new speed!

sudo ethtool enp7s0 | grep -i speed                                                  
	Speed: 1000Mb/s

Leave a Reply

Your email address will not be published. Required fields are marked *