The IPV6 program is banned under Ubuntu

Source: Internet
Author: User

Disabling IPV6-Scenario 1

Edit File-/etc/sysctl.conf

    1. $ sudo gedit / etc / Sysctl . conf

Add the following line at the end of the file.

  1. # IPV6 Disabled

  2. Net . IPv6 . conf . All . Disable_ipv6 = 1

  3. Net . IPv6 . conf . default . Disable_ipv6 = 1

  4. Net . IPv6 . conf . Lo . Disable_ipv6 = 1

Save and close

Restart Sysctl

    1. $ sudo sysctl - P

Check the output of ifconfig again, there should be no IPv6 address.

  1. $ ifconfig

  2. eth0 Link EnCap : Ethernet HWaddr , : xx : - : 5f : - : 8b

  3. inet Addr : 192.168 . 1.3 Bcast : 192.168 . 1.255 Mask : 255.255 . 255.0

  4. Up broadcast RUNNING multicast MTU : the Metric : 1

  5. RX Packets : 1346 Errors : 0 dropped : 0 Overruns : 0 Frame : 0

  6. TX Packets : 965 Errors : 0 dropped : 0 Overruns : 0 Carrier : 0

  7. Collisions : 0 Txqueuelen : +

  8. RX bytes : 1501691 (1.5 MB) TX bytes : 104883 (104.8 KB)

If not, try restarting the system and checking ifconfig again

disabling Ipv6-grub Scenarios

IPV6 can also be disabled by editing the Grub configuration file.

    1. $ sudo gedit / etc / default / Grub

Look for lines that contain "GRUBcmdlineLINUX" and edit as follows:

    1. Grub_cmdline_linux = "Ipv6.disable=1"

You can also add a variable named "GRUBcmdlineLinux_default", which is also useful. Save and close the file to regenerate the grub configuration.

    1. $ sudo update - GRUB2

Reboot, now IPV6 should have been disabled.


This article is from "peter-unscrupulousness Youth" blog, please be sure to keep this source http://petervip.blog.51cto.com/3790959/1688343

The IPV6 program is banned under Ubuntu

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.