I am searching for a solution to change On/Off IPv4 or IPv6 community from command line on macOS.
Like the outline right here:
Can I flip off IPv4 and simply use IPv6 on my Mac?
one can flip On/Off IPv4 on macOS utilizing the GUI.
Nonetheless, I am making an attempt to handle a number of Mac mini remotely, and due to this fact, wish to do the duty from command line.
In my case significantly, I will entry the macOS shopper by way of VNC viewer, which solely assist IPv4. Due to this fact, after disable the IPv4 from GUI by way of VNC session, I solely have entry to the shopper by way of IPv6 by utilizing SSH. So, if this can’t be accomplished by way of command line, I will not capable of get well the IPv4 until I’ve entry to that machine regionally.
So, I’m trying ahead for the command line that I can use to allow IPv4 on Mac, and even additional, change On/Off IPv6 community as effectively.