When adding a Managed Route "192.168.1.0/23" under the Advanced section it adds as "192.168.0.0/23"

I have followed the instructions as contained here: https://zerotier.atlassian.net/wiki/spaces/SD/pages/193134593/Bridge+your+ZeroTier+and+local+network+with+a+RaspberryPi

I have used 192.168.1.0 as opposed to 192.168.192.0 as per the example to align with my existing network.

Unfortunately when attempting to complete the UI step to delete all existing managed routes and add my own managed route when entering “192.168.1.0/24” as the Destination under “Add Route”, although it adds the route successfully it appears as "192.168.0.0/23 (LAN).

Is this a known limitation or issue?

It’s working correctly because that’s just how the math works out when calculating network sizes. With a /23, the third octet will always be even. It’s not possible to specify a network that goes from 192.168.1.0 to 192.168.2.255 without going to a /22, and that would be 192.168.0.0/22 and would range form 192.168.0.0 to 192.168.3.255

2 Likes

ipcalc is a nice tool to have around

apt install ipcalc

# ipcalc 192.168.101.0/23
Address:   192.168.101.0        11000000.10101000.0110010 1.00000000
Netmask:   255.255.254.0 = 23   11111111.11111111.1111111 0.00000000
Wildcard:  0.0.1.255            00000000.00000000.0000000 1.11111111
=>
Network:   192.168.100.0/23     11000000.10101000.0110010 0.00000000
HostMin:   192.168.100.1        11000000.10101000.0110010 0.00000001
HostMax:   192.168.101.254      11000000.10101000.0110010 1.11111110
Broadcast: 192.168.101.255      11000000.10101000.0110010 1.11111111
Hosts/Net: 510                   Class C, Private Internet
3 Likes

There is a similar one online that I use quite often called “IP Subnet Calculator”.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.