by Devin Yang
(This article was automatically translated.)

Published - 6 years ago ( Updated - 6 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


macos

Say command voice list on macOS

How to speak Mandarin or Cantonese on the terminal on macOS? Click to see

MacOS

How do I compile tree instructions on MacOS?

I believe that Linux users have probably used the tree command. We can directly install the tree command through homebrew. But if we want to compile and install by ourselves, how should we do it? This article introduces how to compile tree instructions and install on your own MacOS.  

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: