Home IT Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ How to disable IPv6 on Ubuntu, Linux Mint, Debian     - Ubuntu 14.10 Install Ubuntu Touch Music App 2.0 (Linux)

- Firewall - Internet Militarization (Linux)

- Vim useful plugin: vundle (Linux)

- Upload the project to GitHub, synchronous remote repository Github (Linux)

- Ubuntu 13.04 configure MyEclipse 10.7 Environment (Linux)

- Linux systems use IP masquerading anti-hacker (Linux)

- Install the Red Hat Container Development Kit on OSX (Server)

- Oracle query start with connect by tree (Database)

- Linux basic introductory tutorial ---- regex basis (Linux)

- CentOS 6.5 using Virtualenv under development environment to build Python3 (Linux)

- Practical top command (Linux)

- VirtualBox CentOS is configured as a local disk mirroring software source (Linux)

- I use the desktop environment in GNU / Linux combination tool (Linux)

- hexdump Linux command (Linux)

- Fatal NI connect error 12170 error in Alert Log (Database)

- Single Instance ASM under CRS-4124, CRS-4000 error handling (Database)

- Linux centos rm directory does not prompt (Linux)

- Ubuntu 14.04 configure JDK1.8.0_25, switchable version (Linux)

- Linux Command study manual - GPG command (Linux)

- Linux (SUSE) mount NTFS mobile hard practice (Linux)

 
         
  How to disable IPv6 on Ubuntu, Linux Mint, Debian
     
  Add Date : 2017-09-10      
         
       
         
  Said IPv4 address depletion, and to the promotion of IPv6, but still have not seen movement, in that case, before it is completely ready, do not let it bother our system better.

IPv6

IPv6 is the next version of the IPv4 addressing scheme is used to assign the digital domain address.

IPv6 supports more than IPv4 addresses. However, it has not been widely supported, it is still in the process of being accepted.

Your system supports IPv6 it?

To support IPv6, you need a lot of things. First you need the system / operating system support IPv6. Ubuntu, Linux Mint, and most modern distributions support it. If you look at the output of ifconfig command, you will see your network interface is assigned an IPv6 address.

$ Ifconfig
eth0 Link encap: EthernetHWaddr00: 1c: c0: f8: 79: ee
inet addr: 192.168.1.2Bcast: 192.168.1.255Mask: 255.255.255.0
inet6 addr: fe80 :: 21c: c0ff: fef8: 79ee / 64Scope: Link
UP BROADCAST RUNNING MULTICAST MTU: 1500Metric: 1
RX packets: 110880 errors: 0 dropped: 0 overruns: 0 frame: 0
TX packets: 111960 errors: 0 dropped: 0 overruns: 0 carrier: 0
collisions: 0 txqueuelen: 1000
RX bytes: 62289395 (62.2 MB) TX bytes: 25169458 (25.1 MB)
Interrupt: 20Memory: e3200000-e3220000
lo Link encap: LocalLoopback
inet addr: 127.0.0.1Mask: 255.0.0.0
inet6 addr ::: 1 / 128Scope: Host
UP LOOPBACK RUNNING MTU: 65536Metric: 1
RX packets: 45258 errors: 0 dropped: 0 overruns: 0 frame: 0
TX packets: 45258 errors: 0 dropped: 0 overruns: 0 carrier: 0
collisions: 0 txqueuelen: 0
RX bytes: 4900560 (4.9 MB) TX bytes: 4900560 (4.9 MB)
Look at the line "inet6 addr".

Next you need a support ipv6 router / modem. In addition, your ISP must also support IPv6.

In addition to checking every part of the network device, it is best to find out whether you can access the site through IPv6.

There are many websites can detect your network connection supports IPv6 Here is an example:. Http: //testmyipv6.com/

Here is IPv6 enabled in the kernel parameters:

$ Sysctl net.ipv6.conf.all.disable_ipv6
net.ipv6.conf.all.disable_ipv6 = 0
$ Sysctl net.ipv6.conf.default.disable_ipv6
net.ipv6.conf.default.disable_ipv6 = 0
$ Sysctl net.ipv6.conf.lo.disable_ipv6
net.ipv6.conf.lo.disable_ipv6 = 0
Also you can check in the proc file

$ Cat / proc / sys / net / ipv6 / conf / all / disable_ipv6
0
Note that the control variable is the IPv6 "Disable." So set 1 will disable IPv6.

If it does not disable IPv6 support on

If your network device does not support IPv6, it is best to disable them all. why? As this will cause the domain name query latency in the network connection unnecessarily trying to connect to the IPv6 address can cause delays and so on.

I have encountered such a problem like apt-get command occasionally failed attempts to connect to the IPv6 address and then retrieve the IPv4 address. Look at the following output.

$ Sudo apt-get update
Ign http://archive.canonical.com trusty InRelease
Ign http://archive.canonical.com raring InRelease
Err http://archive.canonical.com trusty Release.gpg
Can not initiate the connection to archive.canonical.com:80(2001:67c:1360:8c01::1b).- connect (101: Networkis unreachable) [IP: 2001: 67c: 1360: 8c01 :: 1b80]
Err http://archive.canonical.com raring Release.gpg
Can not initiate the connection to archive.canonical.com:80(2001:67c:1360:8c01::1b).- connect (101: Networkis unreachable) [IP: 2001: 67c: 1360: 8c01 :: 1b80]
.....
Errors like this in the recent Ubuntu more frequently, perhaps it tries to use IPv6 addresses more frequently than before.

I also noticed similar problems in other applications, such as Hexchat, Google Chrome will also sometimes take longer in the domain name query time.

So the best solution is to completely disable IPv6 to get rid of these things. This only requires a little configuration, but can help you solve a lot of problems on your system. Users can even accelerate this reaction network.

Disable IPv6 - Scenario 1

Edit the file - /etc/sysctl.conf

$ Sudo gedit /etc/sysctl.conf
In the end of the file add the following lines.

# IPv6 disabled
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
Save and Close

Restart sysctl

$ Sudo sysctl -p
Check ifconfig output again, there should be no IPv6 address of.

$ Ifconfig
eth0 Link encap: EthernetHWaddr08: 00: 27: 5f: 28: 8b
inet addr: 192.168.1.3Bcast: 192.168.1.255Mask: 255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU: 1500Metric: 1
RX packets: 1346 errors: 0 dropped: 0 overruns: 0 frame: 0
TX packets: 965 errors: 0 dropped: 0 overruns: 0 carrier: 0
collisions: 0 txqueuelen: 1000
RX bytes: 1501691 (1.5 MB) TX bytes: 104883 (104.8 KB)
If not, try again to restart the system and check the ifconfig

Disable IPv6 - GRUB program

IPv6 can also be disabled by editing the grub configuration file.

$ Sudo gedit / etc / default / grub
Find the line that contains "GRUBCMDLINELINUX" and edited as follows:

GRUB_CMDLINE_LINUX = "ipv6.disable = 1"
The same can be added to a variable named "GRUBCMDLINELINUX_DEFAULT", which is also useful. Save and close the file, regenerate the grub configuration.

$ Sudo update-grub2
Reboot, IPv6 should now have been disabled.
     
         
       
         
  More:      
 
- Linux basic introductory tutorial ---- Software Installation under Linux (Linux)
- Hadoop 0.23 compile common errors (Server)
- Two kinds of agents of Spring AOP (Programming)
- Django url () function Detailed (Programming)
- MySQL restart process can not be taken lightly (Database)
- MySQL innodb_table_stats table does not exist solution (Database)
- LVM mirrored logical volume to achieve (Linux)
- Install RAID 6 (Striping double distributed parity) (Linux)
- Android Studio quick overview of Gradle (Programming)
- Learn about EditText little depth (Programming)
- Use Visual Studio 2015 to develop Android program (Programming)
- CentOS 6.x and CentOS7 installation RPMforge (Linux)
- To install the latest version of the EPEL on CentOS 5.x or 6.x (Linux)
- Git / Github use notes (Linux)
- Ubuntu 14.04 to install Blender 2.71 (Linux)
- Install OpenGL development environment in Fedora and Ubuntu (Linux)
- CentOS7 iptables (Linux)
- MySQL partition table Comments (Database)
- 25 Git Usage Tips (Linux)
- X security settings in Ubuntu (Linux)
     
           
     
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.