Adding IP to managed IP doesnt work unless you have 2 addresses

Hello,

I am trying to assign an IP of 192.168.192.2 to a host but it doesn’t seem to work. If i run “ip add” it doesn’t show the static address. The only time the static address shows up is if i also have the dynamically assigned address. Is there something im missing?

Two addresses 192.168.192.148(dynamic), and 192.168.192.2(static)

41: ZTR: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 2800 qdisc pfifo_fast state UNKNOWN group default qlen 1000
    link/ether 2a:85:42:7d:16:9f brd ff:ff:ff:ff:ff:ff
    inet 192.168.192.148/24 brd 192.168.192.255 scope global ZTR
       valid_lft forever preferred_lft forever
    inet 192.168.192.2/24 brd 192.168.192.255 scope global secondary ZTR
       valid_lft forever preferred_lft forever
    inet6 fe80::2885:42ff:fe7d:169f/64 scope link 
       valid_lft forever preferred_lft forever

Removed 192.168.192.148(Dynamic)

41: ZTR: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 2800 qdisc pfifo_fast state UNKNOWN group default qlen 1000
    link/ether 2a:85:42:7d:16:9f brd ff:ff:ff:ff:ff:ff
    inet6 fe80::2885:42ff:fe7d:169f/64 scope link 
       valid_lft forever preferred_lft forever

Hi
You can change .148 to .2 in the web ui, if you want to.

To tell the client not to touch your addresses locally: zerotier-cli set <networkId> allowManaged=0. You’ll have to add any routes yourself too.

That’s not the issue the issue is if i add the address .2 to the web ui while i have .148 it works fine. However if i remove .148 it removes .2 as well and i don’t get any ip set. If i run “Zerotier-cli get (Network_ID) ip” it shows .2 but it doesn’t show in “ip add”/“ifconfig”

I’m not able to reproduce that. Not sure I understand. What operating system?

After you set the web ui how you want it, have the client leave and join the network again.

Currently using proxmox/debian I will try to have them leave and join after i set the address

Update having the client leave and rejoin the network seems to fix the issue of no ip after changing from a allocated address