Disable IPV6 in Ubuntu to speed up Internet access

Source: Internet
Author: User
In Ubuntu/Kubuntu, turning tcp_ecn and ipv6 off can speed up Internet access by turning off the tcp_ecnsudosh-c "echo 'echo0 & gt;/proc/sys/net/ipv4/tcp_ecn' & gt;/etc/rcS. d/S60locale "sudochmod + x/etc/rcS. d/S60localesudo/etc/rcS. d/S60locale

Disabling tcp_ecn and ipv6 in Ubuntu/Kubuntu can speed up Internet access.

Disable tcp_ecn

Sudo sh-c "echo 'echo 0>/proc/sys/net/ipv4/tcp_ecn'>
/Etc/rcS. d/S60locale"
Sudo chmod + x/etc/rcS. d/S60locale
Sudo/etc/rcS. d/S60locale

Some sites use poor routers. It is better to access these sites after tcp_ecn is turned off.

Disable ipv6:
Modify/etc/modprobe. d/aliases
Note alias net-pf-10 ipv6
Add a line of alias net-pf-10 off below

After editing/etc/modprobe. d/aliases, run update-modules and reboot.
No more after restart

It is said that the network speed has improved after ipv6 is disabled.
However, some domestic education networks and scientific research networks use ipv6.

The standard practice is to add net. ipv4.tcp _ ecn = 0 to/etc/sysctl. conf.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.