Disabling IPv6 on OSX
Disable IPv6 on your machine with the following commands in Terminal
To Get List of Hardware
networksetup -listallhardwareports
To Disable IPv6 on WiFi Adapter
sudo networksetup -setv6off wi-fi
To Disable IPv6 on Built-in Ethernet Adapter
sudo networksetup -setv6off Ethernet
To Disable IPv6 on Thunderbolt-base Ethernet Adapter
sudo networksetup -setv6off "Thunderbolt Ethernet"
Enabling IPv6 on OSX
Enable IPv6 on your machine with the following commands in Terminal
To Enable IPv6 on WiFi Adapter
sudo networksetup -setv6automatic wi-fi
To Enable IPv6 on Built-in Ethernet Adapter
sudo networksetup -setv6automatic Ethernet
To Enable IPv6 on Thunderbolt-base Ethernet Adapter
sudo networksetup -setv6automatic "Thunderbolt Ethernet"