Disable randomized temporary IPv6 addresses

dletkeman
Contributor II

We are trying to disable the temporary randomized IPv6 addresses.

The Windows command is:

Set-NetIPv6Protocol -UseTemporaryAddresses Disabled -RandomizeIdentifiers Disabled

Does anyone know of the equivalent command in macOS?  I've been trying to track it down but have had no luck.

 

2 REPLIES 2

JeffBugbee
New Contributor III

Not sure if this is the same thing, but we've been setting our IPV6 to link local

#!/bin/sh

# ipv6-linklocal.sh
# Change IPv6 to LinkLocal on all interfaces.

IFS=$'\n'
net=`networksetup -listallnetworkservices | grep -v asterisk`
for i in $net
do
networksetup -setv6LinkLocal "$i"
echo "$i" IPv6 is LinkLocal
done

exit 0

I don't think that's what we are looking for, but I appreciate the reply.