Disable IPv6 in Ubuntu 9.04

Source: Internet
Author: User

From: http://www.ubuntu-tw.org/modules/newbb/viewtopic.php? Post_id = 93209

Recently, 9.04 always shows no connection. ifconfig shows a lot of inet6 after eth0, which is probably caused by IPv6.

So:

$ Sudo VI/etc/sysctl. conf

Add at the end

Net. ipv6.conf. eth0.disable _ IPv6 = 1

My Nic is eth0.

 

See the following description:

 

 

/Proc/sys/NET/IPv6/CONF/LO/disable_ipv6

In this case, you can use the cat command to view the number 0 and set it to 1.
Because IPv6 has been merged into the kernel, you can see the related settings on the proc plane.

There are many preset methods, some of which use Echo 1> [router interface]/case Name authentication
In this way, you have to fight once every time you start the machine.
Therefore, the second method is extended, and a sequence is set on the area of the RCS. d operator to parse the script that runs this command.
The 3rd method is to set the sysctl. conf Protocol case, which is also the most common practice.
Location in
/Etc/sysctl. conf
This case can be set to many, including packet forwarding during Nat.
To set
/Proc/sys/NET/IPv6/CONF/LO/disable_ipv6
This example is added to the sysctl. conf example.

Net. ipv6.conf. Lo. disable_ipv6 = 1

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.