3

I want to create a pure IPv6 environment or disable IPv4 completely, not just on the interface. If it is impossible, I want to disable IPv4 on boot via the command line or a configuration file.

Kevin Bowen
  • 20,055
  • 57
  • 82
  • 84

1 Answers1

0

To make completely disabling ipv4 entirely impossible. After a quick check on make menuconfig on kernel 4.4.189. I could not find a way of disabling ipv4 without disabling the entire TCP/IP stack. enter image description here

But you can disable IPv4 on interfaces with Network Manager: To list the active connections:

$ nmcli connection show --active

NAME     UUID                                               TYPE                     DEVICE 
Wired1   63e9c617-f3f8-416c-a40c-fbb460549169               802-3-ethernet           ens33  

Modify the property of ipv4.method to disabled

$ nmcli connection modify 63e9c617-f3f8-416c-a40c-fbb460549169 ipv4.method disabled

To apply the new settings. Let’s restart the networking:

$ nmcli networking off

$ nmcli networking on