Abilita Disabilita IPv6: differenze tra le versioni

Da ElettraWiki.
Nessun oggetto della modifica
Nessun oggetto della modifica
Riga 13: Riga 13:
</div>
</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:
<p>I comandi precedenti disabiliteranno temporaneamente IPv6, il che significa che le impostazioni non persisteranno dopo il riavvio.<br>
Per riattivare IPv6, riavviare il sistema o eseguire nuovamente i comandi precedenti, la logica viene invertita modificando i valori da 1 a 0.</p>
 
<p>Nel caso in cui sia necessaria una soluzione permanente per disabilitare IPv6 anche dopo il riavvio del sistema, seguire i passaggi seguenti:</p>
 
Come utente amministratore, edita il file '''<code>/etc/default/grub</code>''' e apporta le seguenti modifica:


As an administrative user open up the /etc/default/grub file using your favourite text editor and make to following changes:
FROM:
FROM:
GRUB_CMDLINE_LINUX_DEFAULT=""
GRUB_CMDLINE_LINUX_DEFAULT=""
Riga 22: Riga 26:


Once ready update Grub menu:
Once ready update Grub menu:
<div id="atscreen">
$ sudo update-grub
$ sudo update-grub
 
</div>
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.
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.

Versione delle 16:11, 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

I comandi precedenti disabiliteranno temporaneamente IPv6, il che significa che le impostazioni non persisteranno dopo il riavvio.
Per riattivare IPv6, riavviare il sistema o eseguire nuovamente i comandi precedenti, la logica viene invertita modificando i valori da 1 a 0.

Nel caso in cui sia necessaria una soluzione permanente per disabilitare IPv6 anche dopo il riavvio del sistema, seguire i passaggi seguenti:

Come utente amministratore, edita il file /etc/default/grub e apporta le seguenti modifica:

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.