I’m trying to work out what json to use to change the IP address assigned by ZeroTier to a node. I believe the command should be:
curl -X POST “http://127.0.0.1:9993/controller/network/{networkID}/member/{memberID}” -H “X-ZT1-Auth: $(cat /var/lib/zerotier-one/authtoken.secret)” -H “Content-Type: application/json” -d ‘{“config”: {“ipAssignments”: [“172.20.1.22”]}}’
But this doesn’t seem to do anything. It seems like this should be possible.
It just keeps the initial IP address if I do the GET afterwards. There is a 172.20.1.0/24 managed route on the network (assuming I’m working out what I think are typos). I am still on 1.10.1, I’m looking to update the controller (and clients soon), but do you think that would make a difference?
Also, just so I’m sure, updating the controller is just updating the zerotier rpm on the system right?