by Devin Yang
(This article was automatically translated.)

Published - 7 years ago ( Updated - 7 years ago )

How to disable or enable IPV6 on your own MacOS, you can use networksetup -listallnetworkservices to list all MacOS network devices, and then execute the disable command.

List all MacOS network devices
networksetup -listallnetworkservices
Will have the following result:
An asterisk (*) denotes that a network service is disabled.
Ethernet
iPad USB
Wi-Fi
iPhone USB
Bluetooth PAN
Thunderbolt Bridge
Disable Disable IPV6 on that device, eg Wifi
networksetup -setv6off Wi-Fi
Re-enable IPV6 on Wi-Fi:
networksetup -setv6automatic Wi-Fi

Tags: MacOS

Devin Yang

Feel free to ask me, if you don't get it.:)

No Comment

Post your comment

Login is required to leave comments

Similar Stories


cli,linux,macos

How to use find to delete old files based on the creation time

This function is very useful, but be very careful, read it first and then delete it, if you make a wrong directory, you will die miserably 

macos

About ditto instructions on MacOS

The ditto command appeared in Mac OS X (10.0) for the first time. In some cases, it is more intuitive than the cp command. Those who are interested can study and test it by themselves. Assuming that there is an envs folder in my directory, my test is as follows: