Solutions to slow Internet access caused by IPv6 in kernel 2.6

Source: Internet
Author: User
1. Modify modprobe. conf:
Alias net-pf-10 off
Disable ECN: Echo 0>/proc/sys/NET/IPv4/tcp_ecn
2. Change the name of the IPv6 directory of the kernel module to force IPv6 to exclude loading.

Easthero:
We also encountered problems when accessing some websites. The problem is caused by a function called ECN (clearly blocking notification) in Linux 2.6 kernel. ecn allows routers to report network congestion to users, but when ECN is enabled, this will also cause some old firewalls to reject network connections. To disable ECN, we have to add the "net. ipv4.tcp _ ECN = 0" command in the/etc/sysctl. Conf. File.

Chaisave:
The "net. ipv4.tcp _ ECN = 0" command is added to the/etc/sysctl. Conf. File.

Realtang:
I directly used the rmmod-F IPv6 command to remove the IPv6 module, and the world immediately became clean, with the same speed as flying.

Luochong:
I tried to remove alias net-pf-10 IPv6 in/etc/modprobe. d/aliases and update-modules. In this way, the IPv6 module will not be loaded.

Erniu:
There are two authentic Methods
1. Remove IPv6 from modconf.
2. Re-compile the kernel and remove IPv6.

Madbug:
If a friend who modified/etc/modprobe. d/aliases still has IPv6 in lsmod, I guess you didn't execute Update-modules after the modification.

 

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.