Hello.
Does anybody have a script that disables ipv6 over ethernet connections that works.
Thanks
D
Hello.
Does anybody have a script that disables ipv6 over ethernet connections that works.
Thanks
D
Best answer by sdagley
@DaveB1 This script will do it for all active interfaces:
#!/bin/bash
# Sets any network interface to IPv6 Link-Local Only mode
SAVEIFS=$IFS
IFS=$'\\n'
interfaceList=($(networksetup -listallnetworkservices | grep -v -i -E "\\*"))
interfaceCount=${#interfaceList[@]}
IFS=$SAVEIFS
for (( i = 0; i < interfaceCount; i++ ));
do
echo "Working on interface ${interfaceList[$i]}"
/usr/sbin/networksetup -setv6linklocal "${interfaceList[$i]}"
/bin/sleep 1
done
exit 0Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.