-
Notifications
You must be signed in to change notification settings - Fork 208
Description
Hi all,
First—I love this project. It's rare to find something that both feels like magic and is also so simple to see exactly how and why it works. So glad to have an option like this over something like Tailscale.
Anyhow, I'm in the early stages of deploying/figuring out how I want to partition my innernet's CIDRs, and am running into an issue where I'm getting a 400 from the server when trying to add a new CIDR.
Current Network
mynetwork (:xxx)
10.1.0.0/16 mynetwork
10.1.0.1/32 innernet-server
| ◉ 10.1.0.1: innernet-server (xxx…)
10.1.8.0/24 fleet
| ◉ 10.1.8.1: a (you, xxx…)
| ◉ 10.1.8.2: b (xxx…)
10.1.16.0/24 cloud
| ◉ 10.1.16.1: c (xxx…)
Goal
What I want to do next, after I started adding machines, is to add a layer of granularity to my cloud block, one for my physical servers that I can see and touch, and another for my virtual servers that I rent from the public cloud. What I'd really like to do is add two CIDRs to 'cloud', a 'physical' 10.1.16.0/25 and a 'virtual' 10.1.16.128/25 block. However, I couldn't figure out if there was a way to "move" an existing peer (in this case 'c') into a child CIDR, even if its IP doesn't change.
Issue
When I try to run either:
sudo innernet add-cidr mynetwork --name physical --cidr '10.1.16.0/25' --parent 'cloud' --yes
or
sudo innernet add-cidr mynetwork --name virtual --cidr '10.1.16.128/25' --parent 'cloud' --yes
I get
[E] http://10.1.0.1:51820/v1/admin/cidrs: status code 400
I feel like I'm getting bitten by the immutability of the network, even though I'm not technically trying to change any IP addresses.
Is my only option to nuke my config and start over? Presumably, with a little more future planning this time.
Thanks!