How to set ip address on zerotier's interface manually.

hi, community.
I would like to set ip addr on zerotier's interface manually. so
zerotier-cli set <network-id> allowmanaged=0
rc.conf
Code:
zerotier_enable="YES"
ifconfig_ztxxxxx="inet 172.16.0.1/16"
but reboot the machine didn't assign the ip to the zerotier's interface correctly.

any idea to fix it?
 
Hello. What about the interface name?
ifconfig_ztxxxxx, seens that the xxxx.... is random for each network you create,
there is no way to preview what this name will be before entering the network, right?
So if I want to say something like in my rc.conf:
ifconfig_ztxxxxx="ztlan"

It will work?
I should insert that after "zerotier_enable"?
It will be any issues if the interface dosent exists before that line be loaded?
It would be better to place that in rc.local so I can ensure the interface is up, like I do with wireguard:

rc.local:
/usr/local/bin/wg-quick up wg0


I would also place
rc.local:
/usr/local/bin/wg-quick up wg0
ifconfig_ztxxxxx="ztlan"

?
 
Back
Top