Home IT Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ How to disable IPv6 on Ubuntu, Linux Mint, Debian     - Compare several ways to transfer files between Linux hosts (Linux)

- Oracle 11g + RAC + RHEL6.5 + udev + ASM + PSU installation summary (Database)

- Realization of Linux operating system illegal IP censorship (Linux)

- LAMP and LNMP automated installation scripts (Server)

- Command filter MySQL slow query log (Database)

- Ubuntu 15.04 install Complete Guide (Linux)

- Installation and configuration under Linux SVN server - Backup - Recovery - Scheduled Tasks (Server)

- Install the latest ATI / Nvidia graphics driver on Ubuntu (Linux)

- MySQL Installation Troubleshooting (Database)

- Development environment to build MEAN In Ubuntu 15.10 (Server)

- CentOS environment prepared crontab scheduled tasks (Linux)

- Xshell key authentication mechanism using a remote login Linux (Linux)

- How to achieve the MySQL Oracle table associated with the two operations update (Database)

- Source encountered problems and solutions when installing SaltStack (Server)

- Linux command execution order control and pipeline (Linux)

- Close common port to protect server security (Linux)

- Linux, set and view environment variables (Linux)

- Ubuntu How to install and upgrade Linux Kernel 3.15 (Linux)

- Ubuntu install Avast antivirus software (Programming)

- Oracle local user login authentication fails ORA-01031 insufficient privileges (Database)

 
         
  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 LVM Logical Volume Management to resize partitions (Linux)
- Talk Packages (Linux)
- Apache Linux firewall reverse proxy configuration (Linux)
- Linux crontab use (Linux)
- Linux Operating System Security Study (Linux)
- Linux shell in back quotes (`) Application (Linux)
- Use matplotlib scientific drawing in Linux (Linux)
- Oracle 11g partition maintenance (two) - Coalescing Partitions (Database)
- Management DB2 logs (Database)
- Memcached distributed caching (Server)
- Make Linux more secure server tips (Linux)
- AngularJS (Programming)
- Oracle: RETURNING clause (Database)
- To delete the directory and all specified files under the Mac (Linux)
- HDFS Distributed File System Resource Manager Developer summary (Server)
- MySQL Tutorial: Philosophical Reflections on the unauthenticated user (Database)
- How to monitor Linux system performance Nmon (Linux)
- To install the Ubuntu Touch emulator on Ubuntu (Linux)
- PostgreSQL use pgpool achieve high availability (Database)
- Free compiler install MySQL-5.6.14 (Database)
     
           
     
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.