Change Subnet
Change Default Subnet¶
View current subnet info, validate changes, and migrate to a new subnet.
Parameters for change_subnet:
| Parameter | Required | Description |
|---|---|---|
new_subnet |
Yes | New subnet in CIDR notation |
confirm |
Yes | Must be true to execute |
Response Model: NetworkMigrationResult
| Field | Type | Description |
|---|---|---|
success |
boolean | Migration completed |
old_subnet |
string | Previous subnet |
new_subnet |
string | New subnet |
clients_updated |
integer | Number of clients updated |
backup_id |
string | Backup identifier |
ip_mapping |
object | Old to new IP mapping |
Important Notes
- Subnet changes are blocked when Ghost Mode or Multihop is active
- All clients will be disconnected during the change
- Client configurations are automatically updated
- Firewall rules (iptables and UFW) are automatically updated
- Full backup is created before changes
- Automatic rollback on error