Abilita Disabilita IPv6: differenze tra le versioni

Da ElettraWiki.
m Protetto "Abilita Disabilita IPv6" ([Modifica=Consentito solo agli utenti autoconvalidati] (infinito) [Spostamento=Consentito solo agli utenti autoconvalidati] (infinito))
Nessun oggetto della modifica
Riga 3: Riga 3:
[[Category:sysadmin]]
[[Category:sysadmin]]


To temporarily disable IPv6 address on Ubuntu 20.04 LTS Focal Fossa execute the following commands:
<p>Per disabilitare temporaneamente l'indirizzo IPv6 su Ubuntu 20.04 LTS Focal Fossa eseguire i seguenti comandi:</p>


# sysctl -w net.ipv6.conf.all.disable_ipv6=1
<div id="atscreen">
$ sudo sysctl -w net.ipv6.conf.all.disable_ipv6=1
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.all.disable_ipv6 = 1
# sysctl -w net.ipv6.conf.default.disable_ipv6=1
$ sudo sysctl -w net.ipv6.conf.default.disable_ipv6=1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
</div>


The above commands will temporarily disable IPv6, meaning that the settings will not persist after reboot. To re-enable IPv6 reboot your system or execute the above commands again however reverse the logic and change 1 to 0. In case you need more permanent solution to disable IPv6 even after system reboot follow the steps below:
The above commands will temporarily disable IPv6, meaning that the settings will not persist after reboot. To re-enable IPv6 reboot your system or execute the above commands again however reverse the logic and change 1 to 0. In case you need more permanent solution to disable IPv6 even after system reboot follow the steps below:

Versione delle 15:51, 16 apr 2023


Per disabilitare temporaneamente l'indirizzo IPv6 su Ubuntu 20.04 LTS Focal Fossa eseguire i seguenti comandi:

$ sudo sysctl -w net.ipv6.conf.all.disable_ipv6=1 net.ipv6.conf.all.disable_ipv6 = 1 $ sudo sysctl -w net.ipv6.conf.default.disable_ipv6=1 net.ipv6.conf.default.disable_ipv6 = 1

The above commands will temporarily disable IPv6, meaning that the settings will not persist after reboot. To re-enable IPv6 reboot your system or execute the above commands again however reverse the logic and change 1 to 0. In case you need more permanent solution to disable IPv6 even after system reboot follow the steps below:

As an administrative user open up the /etc/default/grub file using your favourite text editor and make to following changes: FROM: GRUB_CMDLINE_LINUX_DEFAULT="" TO: GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1"

Once ready update Grub menu: $ sudo update-grub

In case you need to re-enable the IPv6 network addresses simply remove the ipv6.disable=1 from the /etc/default/grub file and run the update-grub command.