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


MacOS

Restart the sshd service on MacOS

Document how I restart the sshd service on MacOS.

vpn,cli,macos

How do I dial a VPN from the command line on MacOS

I myself will need to use MacOS to dial VPN in the command line. Here I provide my alias and setting method