{"id":24003,"date":"2024-01-31T13:20:30","date_gmt":"2024-01-31T13:20:30","guid":{"rendered":"https:\/\/linuxways.net\/?p=24003"},"modified":"2024-01-31T13:25:33","modified_gmt":"2024-01-31T13:25:33","slug":"disable-ipv6-debian-12","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/debian\/disable-ipv6-debian-12\/","title":{"rendered":"How to Disable IPv6 on Debian 12"},"content":{"rendered":"<p>The <strong>IP<\/strong> address also known as <strong>Internet Protocol <\/strong>is a unique identification number that is assigned to every Internet-connected device and allows devices to receive and send information over the Internet. Without an IP address of devices, Internet access would not be possible. There are mainly two types of IP addresses used by the system: <strong>IPv4 <\/strong>(32-bit) and <strong>IPv6 <\/strong>(128-bit).<\/p>\n<p>The latest version of Internet Protocol known as <strong>IPv6<\/strong> (<strong>Internet Protocol Version 6<\/strong>) is used to identify devices on networks. It is supported and enabled on Mac, Linux, and Windows devices. On Debian 12, it is enabled by default. However, in some cases, Debian users want to disable it because some hardware, software, and network connected devices are incompatible with <strong>IPv6<\/strong>. Thus, causing issues and may not work properly on your system.<\/p>\n<p>The main purpose of this guide is to demonstrate the steps to disable <strong>IPv6<\/strong> on Debian 12.<\/p>\n<h2><strong>Quick Outline<\/strong><\/h2>\n<ul>\n<li><a href=\"#post-24003-_heading=h.30j0zll\"><strong>What is IPv6<\/strong><\/a><\/li>\n<li><a href=\"#post-24003-_heading=h.t9t094r1tlg\"><strong>Is it Safe to Disable IPv6 on Debian 12<\/strong><\/a><\/li>\n<li><a href=\"#post-24003-_heading=h.4rbg07lzho3w\"><strong>How to Verify IPv6 Status on Debian 12<\/strong><\/a><\/li>\n<li><a href=\"#post-24003-_heading=h.8es7rsbthvrq\"><strong>How to Disable IPv6 on Debian 12<\/strong><\/a><\/li>\n<li><a href=\"#post-24003-_heading=h.kcwemcszrdwd\"><strong>How to Temporarily Disable IPv6 on Debian 12<\/strong><\/a><\/li>\n<li><a href=\"#post-24003-_heading=h.tv75peg3ivdc\"><strong>Conclusion<\/strong><\/a><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h2><a id=\"post-24003-_heading=h.30j0zll\"><\/a><strong>What is IPv6<\/strong><\/h2>\n<p><strong>IPv6<\/strong> is an advanced form of <strong>IPv4 <\/strong>and is more unique and longer compared to <strong>IPv4<\/strong>. It has eight sets of four hexadecimal numbers, with colons rather than full stops between them. It is more efficient and provides auto-configuration, simplified package headers, and advanced security features.<\/p>\n<p>&nbsp;<\/p>\n<h2><a id=\"post-24003-_heading=h.t9t094r1tlg\"><\/a><strong>Is it Safe to Disable IPv6 on Debian 12<\/strong><\/h2>\n<p>Yes, it is safe to disable <strong>IPv6 <\/strong>as there might be some reasons users want to only use <strong>IPv4<\/strong>. <strong>IPv6<\/strong> can cause accessibility issues as supported by only one-third of devices. However, it is not recommended to disable <strong>IPv6 <\/strong>as it has a solution to many limitations of <strong>IPv4<\/strong>.<\/p>\n<p>In the following specific scenarios, you can disable the <strong>IPv6 <\/strong>on Debian 12:<\/p>\n<ul>\n<li>You are more familiar with the tools of <strong>IPv4 <\/strong>used for managing networks.<\/li>\n<li>Certain Firewall configurations don&#8217;t support <strong>IPv6<\/strong>.<\/li>\n<li><strong>IPv6<\/strong> can be complex in structure and management.<\/li>\n<li>Some users disable <strong>IPv6<\/strong> because they do not run any devices or applications that depend on <strong>IPv6<\/strong>.<\/li>\n<li>Users might want to disable <strong>IPv6 <\/strong>while troubleshooting network issues.<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h2><a id=\"post-24003-_heading=h.4rbg07lzho3w\"><\/a><strong>How to Verify IPv6 Status on Debian 12<\/strong><\/h2>\n<p>By default, <strong>IPv6 <\/strong>is enabled on your system, which you can also check by running the following <strong>sysctl <\/strong>command on Debian:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> sysctl net.ipv6.conf.all.disable_ipv6<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"794\" height=\"77\" class=\"wp-image-24012\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24003-1.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24003-1.png 794w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24003-1-300x29.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24003-1-768x74.png 768w\" sizes=\"auto, (max-width: 794px) 100vw, 794px\" \/><\/p>\n<p>In the above screenshot<strong>, 0<\/strong> is showing that <strong>IPv6<\/strong> is enabled.<\/p>\n<p>You can aslo run the below-given <strong>ifconfig <\/strong>command to check for the status of<strong> IPv6 <\/strong>on your Debian system:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> <span class=\"kw2\">ifconfig<\/span> <span class=\"re5\">-a<\/span> <span class=\"sy0\">|<\/span> <span class=\"kw2\">grep<\/span> inet6<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"798\" height=\"140\" class=\"wp-image-24014\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24003-2.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24003-2.png 798w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24003-2-300x53.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24003-2-768x135.png 768w\" sizes=\"auto, (max-width: 798px) 100vw, 798px\" \/><\/p>\n<p>Or simply run the following ip command to get the similar output if <strong>ifconfig <\/strong>command is not working:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">ip<\/span> <span class=\"re5\">-a<\/span> <span class=\"sy0\">|<\/span> <span class=\"kw2\">grep<\/span> inet6<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"845\" height=\"159\" class=\"wp-image-24018\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24003-3.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24003-3.png 845w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24003-3-300x56.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24003-3-768x145.png 768w\" sizes=\"auto, (max-width: 845px) 100vw, 845px\" \/><\/p>\n<p>&nbsp;<\/p>\n<h2><a id=\"post-24003-_heading=h.8es7rsbthvrq\"><\/a><strong>How to Disable IPv6 on Debian 12<\/strong><\/h2>\n<p>The following are the two ways to disable <strong>IPv6 <\/strong>on Debian 12:<\/p>\n<ul>\n<li><a href=\"#post-24003-_heading=h.tyjcwt\"><strong>Through Terminal<\/strong><\/a><\/li>\n<li><a href=\"#post-24003-_heading=h.2t6a7dzgi8ao\"><strong>Through GUI<\/strong><\/a><\/li>\n<\/ul>\n<h2><a id=\"post-24003-_heading=h.tyjcwt\"><\/a><strong>How to Disable IPv6 on Debian 12 Through Terminal<\/strong><\/h2>\n<p>You can disable <strong>IPv6 <\/strong>on Debian 12 by:<\/p>\n<ul>\n<li><a href=\"#post-24003-bookmark=id.1t3h5sf\"><strong>Using sysctl.config File<\/strong><\/a><\/li>\n<li><a href=\"#post-24003-bookmark=id.trdfuqdcfgho\"><strong>Using GRUB on Terminal<\/strong><\/a><\/li>\n<\/ul>\n<p><strong>Note: <\/strong>You must have root privileges to <strong>disable IPv6 <\/strong>using the above-mentioned methods.<\/p>\n<h3><strong>1: <\/strong><a id=\"post-24003-bookmark=id.1t3h5sf\"><\/a><strong>Use sysctl.config File to Disable IPv6 on Debian 12 Through Terminal<\/strong><\/h3>\n<p>The <strong>sysctl file<\/strong> is a configuration file on Linux system that is used for reading and modifying the current Kernel configuration settings including disabling the <strong>IPv6 <\/strong>as well. You can follow the below-given steps to disable <strong>IPv6<\/strong> by making changes in <strong>sysctl.config<\/strong> file on Debian:<\/p>\n<p><strong>Step 1: <\/strong>On the Debian 12 terminal, execute the following command to open the <strong>sysctl.conf <\/strong>file:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> <span class=\"kw2\">nano<\/span> <span class=\"sy0\">\/<\/span>etc<span class=\"sy0\">\/<\/span>sysctl.conf<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"801\" height=\"416\" class=\"wp-image-24022\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24003-4.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24003-4.png 801w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24003-4-300x156.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24003-4-768x399.png 768w\" sizes=\"auto, (max-width: 801px) 100vw, 801px\" \/><\/p>\n<p>If nano is not installed on your system, execute the following command to install nano or use another file editing utility:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> apt <span class=\"kw2\">install<\/span> <span class=\"kw2\">nano<\/span><\/div><\/div>\n<p><strong>Step 2:<\/strong> Next, scroll down and add the following three lines at the end of the file:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"co0\">#Disable IPV6<\/span><br \/>\n<br \/>\nnet.ipv6.conf.all.disable_ipv6 = <span class=\"nu0\">1<\/span><br \/>\n<br \/>\nnet.ipv6.conf.default.disable_ipv6 = <span class=\"nu0\">1<\/span><br \/>\n<br \/>\nnet.ipv6.conf.lo.disable_ipv6 = <span class=\"nu0\">1<\/span><\/div><\/div>\n<p><strong><br \/>\n<img loading=\"lazy\" decoding=\"async\" width=\"802\" height=\"416\" class=\"wp-image-24028\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24003-5.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24003-5.png 802w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24003-5-300x156.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24003-5-768x398.png 768w\" sizes=\"auto, (max-width: 802px) 100vw, 802px\" \/><\/strong><\/p>\n<p>Press <strong>Ctrl + X<\/strong>, add <strong>Y <\/strong>and press <strong>Enter <\/strong>to save the file and exit back to the terminal.<\/p>\n<p><strong><br \/>\nStep 3:<\/strong> Next, on the terminal, run the following command to apply changes to the configuration file:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> sysctl <span class=\"re5\">-p<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"755\" height=\"135\" class=\"wp-image-24032\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24003-6.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24003-6.png 755w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24003-6-300x54.png 300w\" sizes=\"auto, (max-width: 755px) 100vw, 755px\" \/><\/p>\n<p><strong>Step 4: <\/strong>Now check the status of <strong>IPv6 <\/strong>on Debian by executing the following command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> sysctl net.ipv6.conf.all.disable_ipv6<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"731\" height=\"94\" class=\"wp-image-24038\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24003-7.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24003-7.png 731w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24003-7-300x39.png 300w\" sizes=\"auto, (max-width: 731px) 100vw, 731px\" \/><\/p>\n<p>If you see <strong>1 <\/strong>in the output of the above command, the <strong>IPv6 <\/strong>is not running on your device anymore as the <strong>1 <\/strong>means <strong>IPv6<\/strong> is disabled, whereas the <strong>0<\/strong> means <strong>IPv6<\/strong> is enabled.<\/p>\n<p><strong>Note: <\/strong>To re-enable the <strong>IPv6 <\/strong>repeat the above steps and remove the lines you have added in <strong>Step 2 <\/strong>from the <strong>sysctl.config file<\/strong>, then apply the changes and reboot the system to enable <strong>IPv6<\/strong>.<\/p>\n<h3><strong>2<\/strong><a id=\"post-24003-bookmark=kix.ozvfa3wfj9nm\"><\/a><strong>: Disable IPv6 on Debian Using GRUB on Terminal<\/strong><\/h3>\n<p>You can also disable<strong> IPv6<\/strong> on Debian from the GRUB menu, however, before disabling the <strong>IPv6<\/strong>, first run the following <strong>sysctl <\/strong>command to ensure <strong>IPv6<\/strong> is enabled on Debian:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">ip<\/span> a <span class=\"sy0\">|<\/span> <span class=\"kw2\">grep<\/span> inet6<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"845\" height=\"159\" class=\"wp-image-24046\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24003-8.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24003-8.png 845w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24003-8-300x56.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24003-8-768x145.png 768w\" sizes=\"auto, (max-width: 845px) 100vw, 845px\" \/><\/p>\n<p>The output suggests <strong>IPv6<\/strong> is enabled on your Debian system.<\/p>\n<p>Now, use the following steps to disable <strong>IPv6 <\/strong>using<strong> GRUB<\/strong> on Debian 12:<\/p>\n<p><strong>Step 1: <\/strong>First, open the <strong>GRUB<\/strong> configuration file on Debian using the following command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> <span class=\"kw2\">nano<\/span> <span class=\"sy0\">\/<\/span>etc<span class=\"sy0\">\/<\/span>default<span class=\"sy0\">\/<\/span>grub<\/div><\/div>\n<p><strong>Step 2: <\/strong>Next, find the below-mentioned lines in the file:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"re2\">GRUB_CMDLINE_LINUX_DEFAULT<\/span>=<span class=\"st0\">&quot;quiet&quot;<\/span><br \/>\n<br \/>\n<span class=\"re2\">GRUB_CMDLINE_LINUX<\/span>=<span class=\"st0\">&quot;&quot;<\/span><\/div><\/div>\n<p>Replace these lines with the following lines in the file and save the file:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"re2\">GRUB_CMDLINE_LINUX_DEFAULT<\/span>=<span class=\"st0\">&quot;ipv6.disable=1 quiet splash&quot;<\/span><br \/>\n<br \/>\n<span class=\"re2\">GRUB_CMDLINE_LINUX<\/span>=<span class=\"st0\">&quot;ipv6.disable=1&quot;<\/span><\/div><\/div>\n<p><strong><br \/>\n<img loading=\"lazy\" decoding=\"async\" width=\"797\" height=\"414\" class=\"wp-image-24053\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24003-9.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24003-9.png 797w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24003-9-300x156.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24003-9-768x399.png 768w\" sizes=\"auto, (max-width: 797px) 100vw, 797px\" \/><\/strong><\/p>\n<p><strong>Step 3: <\/strong>Save the<strong> GRUB <\/strong>configuration file using <strong>CTRL+X, add Y <\/strong>and press<strong> Enter,<\/strong> then run the following command to update the <strong>GRUB<\/strong>:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> update-grub<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"763\" height=\"229\" class=\"wp-image-24066\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24003-10.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24003-10.png 763w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24003-10-300x90.png 300w\" sizes=\"auto, (max-width: 763px) 100vw, 763px\" \/><\/p>\n<p>After updating the <strong>GRUB<\/strong>, reboot the system using the <strong>sudo reboot <\/strong>command.<\/p>\n<p><strong>Step 4: <\/strong>After the reboot, verify the status of <strong>IPv6<\/strong> using the following command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">ip<\/span> a <span class=\"sy0\">|<\/span> <span class=\"kw2\">grep<\/span> inet6<\/div><\/div>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"713\" height=\"134\" class=\"wp-image-24078\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24003-11.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24003-11.png 713w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24003-11-300x56.png 300w\" sizes=\"auto, (max-width: 713px) 100vw, 713px\" \/><\/strong><\/p>\n<p>If <strong>IPv6<\/strong> is disabled on your system, no output will appear on your console when you execute this command.<\/p>\n<p><strong>Note:<\/strong> To re-enable <strong>IPv6 <\/strong>on Debian, follow the same steps mentioned above and replace the lines you have added in <strong>Step 2 <\/strong>with the original lines.<\/p>\n<p>&nbsp;<\/p>\n<h2><a id=\"post-24003-_heading=h.2t6a7dzgi8ao\"><\/a><strong>How to Disable IPv6 on Debian 12 Through GUI<\/strong><\/h2>\n<p>You can also disable <strong>IPv6 <\/strong>on Debian 12 through GUI from the <strong>System Settings<\/strong>; to do so, follow these steps properly:<\/p>\n<p><strong>Step 1: <\/strong>Navigate to <strong>Activities<\/strong> and search for <strong>Settings<\/strong>:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"712\" height=\"479\" class=\"wp-image-24097\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24003-12.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24003-12.png 712w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24003-12-300x202.png 300w\" sizes=\"auto, (max-width: 712px) 100vw, 712px\" \/><\/p>\n<p><strong>Step 2: <\/strong>From the left side of the opened window, click on <strong>Network <\/strong>and next click on the <strong>gear icon<\/strong> present in front of the Connected network:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"801\" height=\"461\" class=\"wp-image-24109\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24003-13.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24003-13.png 801w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24003-13-300x173.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24003-13-768x442.png 768w\" sizes=\"auto, (max-width: 801px) 100vw, 801px\" \/><\/p>\n<p><strong>Step 3: <\/strong>Switch to the <strong>IPv6<\/strong> tab, choose <strong>Disable<\/strong>, and click on <strong>Apply <\/strong>to save the changes:<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"812\" height=\"467\" class=\"wp-image-24119\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24003-14.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24003-14.png 812w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24003-14-300x173.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24003-14-768x442.png 768w\" sizes=\"auto, (max-width: 812px) 100vw, 812px\" \/><\/p>\n<h2><strong>How to Temporarily Disable IPv6 on Debian 12 <\/strong><\/h2>\n<p>If you want to disable the <strong>IPv6 <\/strong>temporarily, then run the below-written commands one by one on your terminal:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> sysctl <span class=\"re5\">-w<\/span> net.ipv6.conf.all.disable_ipv6=<span class=\"nu0\">1<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"769\" height=\"109\" class=\"wp-image-24127\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24003-15.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24003-15.png 769w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24003-15-300x43.png 300w\" sizes=\"auto, (max-width: 769px) 100vw, 769px\" \/><\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> sysctl <span class=\"re5\">-w<\/span> net.ipv6.conf.default.disable_ipv6=<span class=\"nu0\">1<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"759\" height=\"87\" class=\"wp-image-24132\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24003-16.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24003-16.png 759w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24003-16-300x34.png 300w\" sizes=\"auto, (max-width: 759px) 100vw, 759px\" \/><\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> sysctl <span class=\"re5\">-w<\/span> net.ipv6.conf.lo.disable_ipv6=<span class=\"nu0\">1<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"776\" height=\"81\" class=\"wp-image-24138\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24003-17.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24003-17.png 776w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24003-17-300x31.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/01\/word-image-24003-17-768x80.png 768w\" sizes=\"auto, (max-width: 776px) 100vw, 776px\" \/><\/p>\n<p>You have successfully disabled the<strong> IPv6<\/strong> temporarily on your system. Next time when you restart your system, it will be enabled again.<\/p>\n<p>&nbsp;<\/p>\n<h2><a id=\"post-24003-_heading=h.tv75peg3ivdc\"><\/a><strong>Conclusion<\/strong><\/h2>\n<p><strong>IPv6<\/strong> has various advantages but sometimes you may require disabling it on your system. We have discussed the two methods to disable <strong>IPv6<\/strong> on Debian 12: through the<strong> terminal<\/strong> and <strong>GUI<\/strong>. On the terminal, you can make changes in the <strong>sysctl.config file<\/strong> or in the <strong>GRUB file<\/strong> for disabling the <strong>IPv6<\/strong>. These methods will permanently disable the <strong>IPv6<\/strong> until you make the necessary changes to enable it back. The GUI method is simple and only requires disabling the <strong>IPv6<\/strong> from the system settings. Further, you will also find commands to disable the <strong>IPv6<\/strong> temporarily on your Debian system in the above section of this guide.<\/p>\n<p>&nbsp;<\/p>","protected":false},"excerpt":{"rendered":"<p>You can disable IPv6 on Debian 12 via terminal or GUI. To disable it from the terminal, modify sysctl.config file, or use GRUB.<\/p>","protected":false},"author":115,"featured_media":24202,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-24003","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-debian"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/24003","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/115"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=24003"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/24003\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/24202"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=24003"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=24003"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=24003"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}