1. Home
  2. How To Guides
  3. How To Disable IPv6 on a MacOS

How To Disable IPv6 on a MacOS

To disable IPv6 on macOS, you can use the following steps:

Using the Terminal:

Open Terminal: You can find it in Applications > Utilities > Terminal.

List Network Interfaces: Run the following command to list all network interfaces:

networksetup -listallnetworkservices

This will show you all available network services like Wi-Fi, Ethernet, etc.

Disable IPv6: For each network service you want to disable IPv6 on, run the following command, replacing Wi-Fi with the appropriate service name (e.g., Ethernet):

sudo networksetup -setv6off "Wi-Fi"

Verify: You can verify that IPv6 is disabled by running:

networksetup -getinfo "Wi-Fi"

You can disable IPv6 for both Wi-Fi and Ethernet in a single command by chaining the commands together using &&. Here’s how you can do it:

sudo networksetup -setv6off "Wi-Fi" && sudo networksetup -setv6off "Ethernet"

Note:

  • This change is specific to the network service you specify. If you have multiple network services, you’ll need to repeat the process for each one.
  • Disabling IPv6 may cause issues with some network configurations or applications that rely on it. Ensure that disabling it won’t negatively impact your network performance or application usage.

If you need to re-enable IPv6 later, you can use the following command:

sudo networksetup -setv6automatic "Wi-Fi"
Updated on October 21, 2024
Was this article helpful?

Related Articles

Need Support?
Can’t find the answer you’re looking for? Don’t worry we’re here to help!
Contact Support