Home IT Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ How to disable IPv6 on Ubuntu, Linux Mint, Debian     - Ubuntu 12.04 installed OpenCV 2.3.1, binary image (Linux)

- VirtualBox 4.3 Can not open a new task for a virtual computer solution (Linux)

- Java, on the dfile.encoding Systemproperty (Programming)

- Android Qemu GPS module (Programming)

- Linux system security reinforcement (Linux)

- CentOS7 installation configuration Redis-3.0.0 (Database)

- Node.js installed on Ubuntu Upstream version (Linux)

- Linux System Getting Started Learning: On Linux how to convert text files to PDF (Linux)

- How to migrate MySQL to MariaDB under linux (Database)

- MySQL restart process can not be taken lightly (Database)

- Disk partition MBR (Linux)

- Nginx request processing (Server)

- The relationship between UNIX and Linux (Linux)

- [Errno 4] IOError: [Errno ftp error] with yum appears as a workaround (Linux)

- Ubuntu 14.04 Solution login interface infinite loop (Linux)

- Cancel Root Command History under Linux (Linux)

- Linux NFS service fixed ports and firewall configuration (Linux)

- Linux RHCS basic maintenance commands (Linux)

- MySQL binlog automatic cleanup script (Database)

- 10 tips daily Docker (Server)

 
         
  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:      
 
- Cobbler automatic mass deployment of CentOS 6 and CentOS 7 (Linux)
- Ubuntu 14.04, 13.10 install OpenCV 2.4.9 (Linux)
- Ubuntu users to install Gnome-Pie 0.6.5 (Linux)
- Linux garbled file delete method (Linux)
- Good wireless network security information spread in the air (Linux)
- Compression software on a simple comparison of zip and gz (Linux)
- Android Dynamic efficiency articles: a brilliant Loading Analysis and Implementation (Programming)
- Add local search to your Android app (Programming)
- The oh-my-zsh into true my zsh (Linux)
- How to restart after a crash Cinnamon (Linux)
- Linux for enterprises to build a firewall (Linux)
- TeamCity continuous integration in the Linux installation (Linux)
- How to create a remote (Linux)
- Automatic Clear date directory shell script (Linux)
- To create someone else can not afford to delete the administrator user (Linux)
- MongoDB collection data migration to MySQL database (Database)
- VirtualBox install Windows 8.1 has encountered an error 0x000000C4 solutions (Linux)
- Check with Hello World Docker installation (Server)
- Install Firefox 28 on Ubuntu, Linux Mint (Linux)
- Java Foundation - Getting Start (Programming)
     
           
     
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.