Linux: How to dealt with unstable network connection


This is a guide for troubleshooting an unstable network (Ethernet) issue I experienced while using Lubuntu. The problem occurred with occasional disconnections, requiring me to manually reconnect each time.

Environment

  • Ubuntu 16.04 LTS
  • Lev-15FX088-i7-VE, Stl-13FH051-P-CE (Pc-Koubou PC)
  • Ethernet controller: Qualcomm Atheros Killer E2400 Gigabit Ethernet Controller (rev 10)

Background

I was using the company’s LAN connection, but the network occasionally got disconnected, forcing me to reconnect each time. To find a permanent solution, I investigated the issue.

Investigation Results

I used the dmesg command for investigation, but I couldn’t find anything particularly unusual. Then, I executed tail -f /var/log/syslog to monitor the log, and found the following output:

Although I’m not an expert in Linux, I thought disabling IPv6 might resolve the issue.

Solution

First, I added the following three lines to /etc/sysctl.conf:

Then, I executed sudo sysctl -p to apply the changes, effectively disabling IPv6.

Reference: How to disable IPv6 in Ubuntu 14.04?