Home IT Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ How to disable IPv6 on Ubuntu, Linux Mint, Debian     - Through Oracle to help restore MySQL data problems (Database)

- Java proxy mode (Programming)

- Use Makeself Create installation file (Linux)

- Linux landing problem (Linux)

- Linux port mapping system (routing and forwarding) (Server)

- Difference between TCP and UDP protocols (Linux)

- Puppet 3.x installed on Debian 7 (Server)

- C language header file defines a global variable (Programming)

- shell script: the number of characters in the text to print no more than 6 words (Programming)

- TeamCity continuous integration in the Linux installation (Linux)

- Linux for enterprises to build a firewall (Linux)

- Linux installation and error under codeblocks exclude [Ubuntu 10.04] (Linux)

- Use Mop monitor stock prices at the Linux command line (Linux)

- Digital jQuery scrolling effect (Programming)

- Linux platform NTOP Installation and Configuration (Linux)

- How to disable UEFI to install Linux on Win8 (Linux)

- CentOS7 method to upgrade the kernel to 3.18 (Linux)

- HomeKit User Interface Guidelines (Linux)

- CentOS 6.5 installation using a data recovery software extundelete (Linux)

- Linux Shell debugging (Programming)

 
         
  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:      
 
- Good wireless network security information spread in the air (Linux)
- Oracle through the alarm log view and inspect the main library, physical and snapshot standby database (Database)
- PostgreSQL-XL installation and deployment (Database)
- Configuring xdebug debugging environment in Ubuntu 14.04 under the PhpStorm (Linux)
- Smooth upgrade to OpenSSH 6.1 Procedure (Linux)
- Ubuntu 14.04 users how to install VLC 2.2.0 (Linux)
- Experts teach you how to identify the actual functional differences between the firewall (Linux)
- RegExp object implements regular match --JavaScript (Programming)
- Installation Mesos + Marathon + Zookeeper under CentOS 7 (Server)
- Linux Systemd-- To start / stop / restart services in RHEL / CentOS 7 (Linux)
- To protect the temporary files for Linux security (Linux)
- DB2 Version SQLJ to access Oracle Server (Database)
- Role Object of registerNatives () method (Programming)
- AWR Report (Database)
- Ubuntu 15.04 / 14.04 install Ubuntu After Install 2.6 (Linux)
- The Hill sorting algorithm (Programming)
- Linux Operating System Security Study (Linux)
- MySQL EXPLAIN SQL output description (Database)
- How to manage start-up applications in Ubuntu (Linux)
- Ubuntu system process is bound CPU core (Linux)
     
           
     
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.