The Hoof & Paw
DocsCategoriesTagsView the current conditions from the WolfspyreLabs WeatherstationToggle Dark/Light/Auto modeToggle Dark/Light/Auto modeToggle Dark/Light/Auto modeBack to homepage

Disabling IPV6 for fun and profit in OSX

Disabling IPv6 in OSX

This aught be easier

1
networksetup -listallnetworkservices|sed -e 's/\ /\\ /g'|egrep -v \\*

fun, right?

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
for crap in `networksetup -listallnetworkservices|egrep -v \\\*|sed -e 's/ /POOPPOOP/g'`; do 
  int="`echo $crap|sed -e 's/POOPPOOP/ /g'`"; 
  echo "Int: ${int}"; 
  networksetup -getinfo "${int}";
  echo;
  echo "setting v6 off";
  networksetup -setv6off "${int}";
  echo 'validating';
  networksetup -getinfo "${int}";
done