I have an OVH server.
When I install Ubuntu 16.04 or 18.04 or 18.10 on it, the internet speed is 70Mbps download and 4.16Mbps upload.
But when I upgrade to Ubuntu 19.04, the internet speed becomes 400Mbps download and 400Mbps upload (which is the full speed of the server)
I've searched a lot to fix that on 16.04, 18.04, and 18.10 but I failed.
I tried Very slow internet connection on ubuntu 16.04 and https://unix.stackexchange.com/questions/366220/ubuntu-16-04-minimal-extremely-slow-internet-connection but without luck :/
I don't want to use Ubuntu 19.04 because it is pretty new and not everything is supported on it yet.
Thanks!
Best Answer
I fixed it! This is how:
I followed https://www.itzgeek.com/how-tos/linux/debian/how-to-disable-ipv6-on-debian-9-ubuntu-16-04.html (Method 1) to disable IPv6 on my server.
Then I removed the DNS servers from the
/etc/resolv.conf
file by removing thenameserver
lines.Then I installed
network-manager
by using:apt -y install network-manager
Then I disabled other DNS services by fully opting-out from the NetworkManager by typing:
echo -e "[main]\ndns=none" > /etc/NetworkManager/conf.d/no-dns.conf systemctl restart NetworkManager.service rm /etc/resolv.conf
Then I disabled and removed
systemd-resolved
by typing the following:Then I have put the following line in the [main] section of my
/etc/NetworkManager/NetworkManager.conf
file:Then I removed
/etc/resolv.conf
by typing:rm /etc/resolv.conf
Then I finally restarted
network-manager
by typing:sudo service network-manager restart
Now my internet speed is the normal one :)
This also works on Debian.
For CentOS: All what you have to do is to disable IPv6, and remove the
nameserver
lines from/etc/resolv.conf
only.